Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into docs2
Browse files Browse the repository at this point in the history
  • Loading branch information
collinjackson committed Aug 23, 2019
2 parents 2a2ee92 + 3630aa9 commit 65d0b0d
Show file tree
Hide file tree
Showing 17 changed files with 36 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/cloud_firestore/test/cloud_firestore_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';

void main() {
TestWidgetsFlutterBinding.ensureInitialized();

group('$Firestore', () {
int mockHandleId = 0;
FirebaseApp app;
Expand Down
2 changes: 2 additions & 0 deletions packages/cloud_functions/test/cloud_functions_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';

void main() {
TestWidgetsFlutterBinding.ensureInitialized();

group('$CloudFunctions', () {
final List<MethodCall> log = <MethodCall>[];

Expand Down
2 changes: 2 additions & 0 deletions packages/firebase_admob/test/firebase_admob_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';

void main() {
TestWidgetsFlutterBinding.ensureInitialized();

group('FirebaseAdMob', () {
const MethodChannel channel =
MethodChannel('plugins.flutter.io/firebase_admob');
Expand Down
2 changes: 2 additions & 0 deletions packages/firebase_analytics/test/firebase_analytics_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import 'package:firebase_analytics/firebase_analytics.dart';
import 'package:flutter/services.dart';

void main() {
TestWidgetsFlutterBinding.ensureInitialized();

final FirebaseAnalytics analytics = FirebaseAnalytics();
const MethodChannel channel =
MethodChannel('plugins.flutter.io/firebase_analytics');
Expand Down
2 changes: 2 additions & 0 deletions packages/firebase_analytics/test/observer_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import 'package:firebase_analytics/firebase_analytics.dart';
import 'package:firebase_analytics/observer.dart';

void main() {
TestWidgetsFlutterBinding.ensureInitialized();

group('FirebaseAnalyticsObserver', () {
FirebaseAnalytics analytics;
FirebaseAnalyticsObserver observer;
Expand Down
2 changes: 2 additions & 0 deletions packages/firebase_auth/test/firebase_auth_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ const Map<String, dynamic> kMockAdditionalUserInfo = <String, dynamic>{
};

void main() {
TestWidgetsFlutterBinding.ensureInitialized();

group('$FirebaseAuth', () {
final String appName = 'testApp';
final FirebaseApp app = FirebaseApp(name: appName);
Expand Down
2 changes: 2 additions & 0 deletions packages/firebase_core/test/firebase_core_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';

void main() {
TestWidgetsFlutterBinding.ensureInitialized();

group('$FirebaseApp', () {
final List<MethodCall> log = <MethodCall>[];
const FirebaseApp testApp = FirebaseApp(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';

void main() {
TestWidgetsFlutterBinding.ensureInitialized();

group('$Crashlytics', () {
final List<MethodCall> log = <MethodCall>[];

Expand Down
2 changes: 2 additions & 0 deletions packages/firebase_database/test/firebase_database_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';

void main() {
TestWidgetsFlutterBinding.ensureInitialized();

group('$FirebaseDatabase', () {
const MethodChannel channel = MethodChannel(
'plugins.flutter.io/firebase_database',
Expand Down
3 changes: 3 additions & 0 deletions packages/firebase_database/test/firebase_list_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ import 'dart:async';

import 'package:firebase_database/firebase_database.dart';
import 'package:firebase_database/ui/firebase_list.dart';
import 'package:flutter_test/flutter_test.dart' show TestWidgetsFlutterBinding;
import 'package:mockito/mockito.dart';
import 'package:test/test.dart';

void main() {
TestWidgetsFlutterBinding.ensureInitialized();

group('FirebaseList', () {
StreamController<Event> onChildAddedStreamController;
StreamController<Event> onChildRemovedStreamController;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import 'package:firebase_dynamic_links/firebase_dynamic_links.dart';
import 'package:flutter_test/flutter_test.dart';

void main() {
TestWidgetsFlutterBinding.ensureInitialized();

group('$FirebaseDynamicLinks', () {
final List<MethodCall> log = <MethodCall>[];

Expand Down
3 changes: 3 additions & 0 deletions packages/firebase_messaging/test/firebase_messaging_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ import 'dart:async';

import 'package:flutter/services.dart';
import 'package:firebase_messaging/firebase_messaging.dart';
import 'package:flutter_test/flutter_test.dart' show TestWidgetsFlutterBinding;
import 'package:mockito/mockito.dart';
import 'package:platform/platform.dart';
import 'package:test/test.dart';

void main() {
TestWidgetsFlutterBinding.ensureInitialized();

MockMethodChannel mockChannel;
FirebaseMessaging firebaseMessaging;

Expand Down
2 changes: 2 additions & 0 deletions packages/firebase_ml_vision/test/firebase_ml_vision_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';

void main() {
TestWidgetsFlutterBinding.ensureInitialized();

group('$FirebaseVision', () {
final List<MethodCall> log = <MethodCall>[];
dynamic returnValue;
Expand Down
2 changes: 2 additions & 0 deletions packages/firebase_ml_vision/test/image_labeler_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';

void main() {
TestWidgetsFlutterBinding.ensureInitialized();

group('$FirebaseVision', () {
final List<MethodCall> log = <MethodCall>[];
dynamic returnValue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import 'package:firebase_performance/firebase_performance.dart';
import 'package:flutter_test/flutter_test.dart';

void main() {
TestWidgetsFlutterBinding.ensureInitialized();

group('$FirebasePerformance', () {
final List<MethodCall> performanceLog = <MethodCall>[];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';

void main() {
TestWidgetsFlutterBinding.ensureInitialized();

final int lastFetchTime = 1520618753782;
Map<String, dynamic> getDefaultInstance() {
return <String, dynamic>{
Expand Down
2 changes: 2 additions & 0 deletions packages/firebase_storage/test/firebase_storage_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';

void main() {
TestWidgetsFlutterBinding.ensureInitialized();

group('FirebaseStorage', () {
final FirebaseApp app = const FirebaseApp(
name: 'testApp',
Expand Down

0 comments on commit 65d0b0d

Please sign in to comment.