Skip to content

Commit 92a7c9c

Browse files
stuartmorgan-gmauricioluz
authored andcommitted
[google_sign_in] Switch unit tests to mock platform implementation (flutter#5703)
1 parent 9f141f7 commit 92a7c9c

4 files changed

Lines changed: 260 additions & 251 deletions

File tree

packages/google_sign_in/google_sign_in/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## NEXT
22

3-
* Fixes tests to recognize new default `forceCodeForRefreshToken` request attribute.
3+
* Updates tests to use a mock platform instead of relying on default
4+
method channel implementation internals.
45

56
## 5.3.1
67

packages/google_sign_in/google_sign_in/pubspec.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,15 @@ dependencies:
2929
google_sign_in_web: ^0.10.0
3030

3131
dev_dependencies:
32+
build_runner: ^2.1.10
3233
flutter_driver:
3334
sdk: flutter
3435
flutter_test:
3536
sdk: flutter
3637
http: ^0.13.0
3738
integration_test:
3839
sdk: flutter
40+
mockito: ^5.1.0
3941

4042
# The example deliberately includes limited-use secrets.
4143
false_secrets:

0 commit comments

Comments
 (0)