Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
180 additions
and
69 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
34 changes: 34 additions & 0 deletions
34
...essaging/firebase_in_app_messaging/example/test_driver/firebase_in_app_messaging_e2e.dart
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// @dart = 2.9 | ||
|
||
import 'package:firebase_core/firebase_core.dart'; | ||
import 'package:firebase_in_app_messaging/firebase_in_app_messaging.dart'; | ||
import 'package:flutter_test/flutter_test.dart'; | ||
import 'package:drive/drive.dart' as drive; | ||
|
||
void main() => drive.main(testsMain); | ||
|
||
void testsMain() { | ||
group('$FirebaseInAppMessaging', () { | ||
setUpAll(() async { | ||
await Firebase.initializeApp(); | ||
}); | ||
|
||
test('triggerEvent', () async { | ||
expect( | ||
FirebaseInAppMessaging.instance.triggerEvent('someEvent'), | ||
completes, | ||
); | ||
}); | ||
|
||
test('logging', () async { | ||
expect( | ||
FirebaseInAppMessaging.instance.setMessagesSuppressed(true), | ||
completes, | ||
); | ||
expect( | ||
FirebaseInAppMessaging.instance.setAutomaticDataCollectionEnabled(true), | ||
completes, | ||
); | ||
}); | ||
}); | ||
} |
8 changes: 8 additions & 0 deletions
8
...ing/firebase_in_app_messaging/example/test_driver/firebase_in_app_messaging_e2e_test.dart
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// @dart = 2.9 | ||
// Copyright 2020, the Chromium project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
|
||
import 'package:drive/drive_driver.dart' as drive; | ||
|
||
void main() => drive.main(); |
This file contains 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
This file contains 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
This file contains 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
22 changes: 0 additions & 22 deletions
22
...rebase_in_app_messaging/firebase_in_app_messaging/test/firebase_in_app_messaging_e2e.dart
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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