create mocks for playstore

This commit is contained in:
Sabrina
2020-01-28 13:31:57 -08:00
parent 3fcc899200
commit 8359bd764f
3 changed files with 161 additions and 0 deletions

View File

@@ -17,6 +17,8 @@ import (
androidpublisher "google.golang.org/api/androidpublisher/v3"
)
//go:generate mockgen -destination=mocks/mock_playstore.go -package=mocks github.com/awa/go-iap/playstore IABProduct,IABSubscription
// The IABProduct type is an interface for product service
type IABProduct interface {
VerifyProduct(context.Context, string, string, string) (*androidpublisher.ProductPurchase, error)