[in_app_purchase_storekit] Remove OCMock#6862
Merged
LouiseHsu merged 56 commits intoflutter:mainfrom Jun 22, 2024
Merged
Conversation
| PaymentQueueHandlerStub *handlerStub = [[PaymentQueueHandlerStub alloc] init]; | ||
| self.plugin.paymentQueueHandler = handlerStub; | ||
|
|
||
| __block NSInteger presentCodeRedemptionSheetCount = 0; |
| plugin.transactionObserverCallbackChannel = mockChannel; | ||
| OCMStub([mockChannel invokeMethod:[OCMArg any] arguments:[OCMArg any]]); | ||
| MethodChannelStub *channelStub = [[MethodChannelStub alloc] init]; | ||
| __block NSInteger invokeMethodCount = 0; |
|
|
||
| NS_ASSUME_NONNULL_BEGIN | ||
|
|
||
| // An interface representing a stubbed DefaultPaymentQueue |
| @end | ||
|
|
||
| #if TARGET_OS_IOS | ||
| @interface FlutterPluginRegistrarStub : NSObject <FlutterPluginRegistrar> |
Contributor
There was a problem hiding this comment.
it's worth checking if it's possible to just use the real registrar in other tests.
|
|
||
| __block NSInteger TransactionCacheKeyUpdatedTransactionsInvoked = 0; | ||
| __block NSInteger TransactionCacheKeyUpdatedDownloadsInvoked = 0; | ||
| __block NSInteger TransactionCacheKeyRemovedTransactionsInvoked = 0; |
| FIATransactionCache *mockCache = OCMClassMock(FIATransactionCache.class); | ||
| SKPaymentTransaction *mockTransaction = [[SKPaymentTransactionStub alloc] init]; | ||
| SKDownload *mockDownload = [[SKDownload alloc] init]; | ||
| TransactionCacheStub *mockCache = [[TransactionCacheStub alloc] init]; |
|
|
||
| __block NSInteger clearInvoked = 0; | ||
| mockCache.clearStub = ^{ | ||
| clearInvoked++; |
| [handler paymentQueue:queue updatedDownloads:@[ mockDownload ]]; | ||
| [handler paymentQueue:[[SKPaymentQueueStub alloc] init] updatedTransactions:@[ mockTransaction ]]; | ||
| [handler paymentQueue:[[SKPaymentQueueStub alloc] init] removedTransactions:@[ mockTransaction ]]; | ||
| [handler paymentQueue:[[SKPaymentQueueStub alloc] init] updatedDownloads:@[ mockDownload ]]; |
Contributor
There was a problem hiding this comment.
nit: use the same instance as before
hellohuanlin
approved these changes
Jun 18, 2024
Contributor
|
auto label is removed for flutter/packages/6862, due to - The status or check suite Mac_arm64 ios_platform_tests_shard_1 master has failed. Please fix the issues identified (or deflake) before re-applying this label. |
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/flutter
that referenced
this pull request
Jun 24, 2024
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/flutter
that referenced
this pull request
Jun 24, 2024
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/flutter
that referenced
this pull request
Jun 24, 2024
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/flutter
that referenced
this pull request
Jun 25, 2024
auto-submit bot
pushed a commit
to flutter/flutter
that referenced
this pull request
Jun 25, 2024
flutter/packages@711b4ac...03f5f6d 2024-06-24 [email protected] [interactive_media_ads] Fix README badge image URL (flutter/packages#6979) 2024-06-24 [email protected] [multicast_dns] Optimized Socket Binding: Always bind to 0.0.0.0 for simplicity and efficiency - #79772 (flutter/packages#6700) 2024-06-24 [email protected] [flutter_adaptive_scaffold] Allows for the animation duration to be adjusted using SlotLayout.from() (flutter/packages#6510) 2024-06-22 [email protected] [in_app_purchase_storekit] Remove OCMock (flutter/packages#6862) 2024-06-22 [email protected] [google_maps_flutter] Add iOS SDK 9.x support (flutter/packages#6902) 2024-06-21 [email protected] [google_maps_flutter] Partial Android host API Pigeon conversion (flutter/packages#6967) 2024-06-21 [email protected] Revert "Migrate `camera/android` from `SurfaceTexture`->`SurfaceProducer`." (flutter/packages#6964) 2024-06-21 [email protected] [quick_actions] Update to Pigeon 20 (flutter/packages#6961) 2024-06-20 [email protected] [google_maps_flutter] Move Android inspector to Pigeon (flutter/packages#6958) 2024-06-20 [email protected] Manual roll Flutter from ccf3abe to 6c06abb (21 revisions) (flutter/packages#6954) 2024-06-20 [email protected] [many] More v1 embedding deletion that was missed in flutter/packages#6494 (flutter/packages#6923) 2024-06-20 [email protected] [google_maps_flutter] deprecate old BitmapDescriptor methods (flutter/packages#6905) 2024-06-18 [email protected] [pigeon] Fully-qualify types in Equatable extension test (flutter/packages#6946) 2024-06-18 [email protected] [flutter_markdown] fixes null check operator used on null value if onSelectionChanged is� (flutter/packages#6883) 2024-06-17 [email protected] Roll Flutter from 5187cab to ccf3abe (6 revisions) (flutter/packages#6940) 2024-06-17 [email protected] [google_sign_in_web] README.md typo (flutter/packages#6642) 2024-06-17 49699333+dependabot[bot]@users.noreply.github.com [camera]: Bump com.google.guava:guava from 32.0.1-android to 33.2.1-android and CameraX version to 1.3.4 in /packages/camera/camera_android_camerax/android (flutter/packages#6847) 2024-06-17 49699333+dependabot[bot]@users.noreply.github.com [sign_in]: Bump com.google.guava:guava from 32.0.1-android to 33.2.1-android in /packages/google_sign_in/google_sign_in_android/android (flutter/packages#6846) 2024-06-17 49699333+dependabot[bot]@users.noreply.github.com [quick_actions]: Bump com.android.tools.build:gradle from 7.2.1 to 8.4.1 in /packages/quick_actions/quick_actions_android/android (flutter/packages#6799) 2024-06-17 49699333+dependabot[bot]@users.noreply.github.com [path_provider]: Bump androidx.annotation:annotation from 1.7.1 to 1.8.0 in /packages/path_provider/path_provider_android/android (flutter/packages#6773) 2024-06-17 49699333+dependabot[bot]@users.noreply.github.com [camera]: Bump androidx.annotation:annotation from 1.7.1 to 1.8.0 in /packages/camera/camera_android/android (flutter/packages#6766) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
11 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes flutter/flutter#149849
Also fixes the broken symlinking between test files.
Pre-launch Checklist
dart format.)[shared_preferences]pubspec.yamlwith an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.mdto add a description of the change, following repository CHANGELOG style, or this PR is exempt from CHANGELOG changes.///).If you need help, consider asking for advice on the #hackers-new channel on Discord.