private static IInAppBillingService withOwnedSkus(String... ownedSkus) { final Bundle bundle = populateLSuccessfulList(RESPONSE_ITEM_LIST, ownedSkus); return new BillingServiceStub() { @Override public Bundle getPurchases(int apiVersion, String packageName, String type, String continuationToken) throws RemoteException { return bundle; } }; }
private static IInAppBillingService withJsonSkus(String... jsonSkus) { final Bundle bundle = populateLSuccessfulList(RESPONSE_DETAILS_LIST, jsonSkus); return new BillingServiceStub() { @Override public Bundle getSkuDetails(int apiVersion, String packageName, String type, Bundle skusBundle) throws RemoteException { return bundle; } }; }