Commit 3b6170f
authored
[google_sign_in] Remove use of OCMock (#10290)
Wraps Google Sign In SDK classes with protocols, so that we can inject fakes that implement the protocols instead of using OCMock to mock the actual classes. This will allow conversion of the tests to Swift, in preparation for migrating the entire plugin to Swift.
For now the protocols are implemented in production with passthrough wrappers, so this adds a fair amount of boilerplate code to the plugin, but almost all of it will be removed when the plugin implementation is converted to Swift since we will be able to use extensions to make the SDK classes conform to the protocol instead of maintaining wrappers.
Unblocks flutter/flutter#119103
## Pre-Review Checklist
[^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.1 parent 0718bf1 commit 3b6170f
File tree
12 files changed
+985
-333
lines changed- packages/google_sign_in/google_sign_in_ios
- darwin
- Tests
- google_sign_in_ios/Sources/google_sign_in_ios
- include
- google_sign_in_ios
- example
- ios/Runner.xcodeproj
- macos/Runner.xcodeproj
12 files changed
+985
-333
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
1 | 5 | | |
2 | 6 | | |
3 | 7 | | |
| |||
0 commit comments