From 0a9ef4320a36672ac12519063ead9a90098f0a89 Mon Sep 17 00:00:00 2001 From: Kevin Moore Date: Thu, 14 Nov 2024 17:08:46 -0800 Subject: [PATCH] fix(firebase_core_platform_interface)!: move test APIs to test.dart BREAKING CHANGE: move testing apis to a new library: test.dart This fixes analysis of this package and dependents --- packages/cloud_firestore/cloud_firestore/test/mock.dart | 2 +- packages/cloud_functions/cloud_functions/test/mock.dart | 1 + .../cloud_functions_platform_interface/test/mock.dart | 2 +- packages/firebase_analytics/firebase_analytics/test/mock.dart | 2 +- .../firebase_analytics_platform_interface/test/mock.dart | 2 +- packages/firebase_app_check/firebase_app_check/test/mock.dart | 2 +- .../firebase_app_check_platform_interface/test/mock.dart | 2 +- .../test/firebase_installations_test.dart | 2 +- packages/firebase_auth/firebase_auth/test/mock.dart | 2 +- .../firebase_auth_platform_interface/test/mock.dart | 1 + .../lib/firebase_core_platform_interface.dart | 4 ---- .../lib/src/pigeon/mocks.dart | 1 + .../firebase_core_platform_interface/lib/test.dart | 3 +++ .../test/firebase_options_test.dart | 1 + .../firebase_crashlytics/firebase_crashlytics/test/mock.dart | 1 + .../firebase_crashlytics_platform_interface/test/mock.dart | 1 + packages/firebase_database/firebase_database/test/mock.dart | 2 +- .../test/test_common.dart | 2 +- .../firebase_dynamic_links/test/mock.dart | 2 +- .../firebase_dynamic_links_platform_interface/test/mock.dart | 1 + .../test/firebase_in_app_messaging_test.dart | 2 +- .../test/mock.dart | 2 +- packages/firebase_messaging/firebase_messaging/test/mock.dart | 2 +- .../firebase_messaging_platform_interface/test/mock.dart | 1 + .../firebase_ml_model_downloader/test/mock.dart | 2 +- .../test/mock.dart | 1 + .../firebase_performance/firebase_performance/test/mock.dart | 2 +- .../firebase_performance_platform_interface/test/mock.dart | 1 + .../firebase_remote_config/test/mock.dart | 2 +- packages/firebase_storage/firebase_storage/test/mock.dart | 2 +- .../firebase_storage_platform_interface/test/mock.dart | 1 + packages/firebase_vertexai/firebase_vertexai/test/mock.dart | 1 + 32 files changed, 33 insertions(+), 22 deletions(-) create mode 100644 packages/firebase_core/firebase_core_platform_interface/lib/test.dart diff --git a/packages/cloud_firestore/cloud_firestore/test/mock.dart b/packages/cloud_firestore/cloud_firestore/test/mock.dart index 2ed847aa2d45..71e0fde83765 100644 --- a/packages/cloud_firestore/cloud_firestore/test/mock.dart +++ b/packages/cloud_firestore/cloud_firestore/test/mock.dart @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import 'package:firebase_core_platform_interface/firebase_core_platform_interface.dart'; +import 'package:firebase_core_platform_interface/test.dart'; import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; diff --git a/packages/cloud_functions/cloud_functions/test/mock.dart b/packages/cloud_functions/cloud_functions/test/mock.dart index c5a8b7f583df..aa9a67961ece 100644 --- a/packages/cloud_functions/cloud_functions/test/mock.dart +++ b/packages/cloud_functions/cloud_functions/test/mock.dart @@ -6,6 +6,7 @@ import 'package:cloud_functions_platform_interface/cloud_functions_platform_interface.dart'; import 'package:firebase_core/firebase_core.dart'; import 'package:firebase_core_platform_interface/firebase_core_platform_interface.dart'; +import 'package:firebase_core_platform_interface/test.dart'; import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; diff --git a/packages/cloud_functions/cloud_functions_platform_interface/test/mock.dart b/packages/cloud_functions/cloud_functions_platform_interface/test/mock.dart index 8403dd979278..f990f975a132 100644 --- a/packages/cloud_functions/cloud_functions_platform_interface/test/mock.dart +++ b/packages/cloud_functions/cloud_functions_platform_interface/test/mock.dart @@ -5,7 +5,7 @@ import 'package:cloud_functions_platform_interface/src/firebase_functions_exception.dart'; import 'package:cloud_functions_platform_interface/src/method_channel/method_channel_firebase_functions.dart'; -import 'package:firebase_core_platform_interface/firebase_core_platform_interface.dart'; +import 'package:firebase_core_platform_interface/test.dart'; import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; diff --git a/packages/firebase_analytics/firebase_analytics/test/mock.dart b/packages/firebase_analytics/firebase_analytics/test/mock.dart index 887fa9160055..117f0cd5662f 100644 --- a/packages/firebase_analytics/firebase_analytics/test/mock.dart +++ b/packages/firebase_analytics/firebase_analytics/test/mock.dart @@ -3,7 +3,7 @@ // found in the LICENSE file. import 'package:firebase_analytics_platform_interface/firebase_analytics_platform_interface.dart'; -import 'package:firebase_core_platform_interface/firebase_core_platform_interface.dart'; +import 'package:firebase_core_platform_interface/test.dart'; import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; diff --git a/packages/firebase_analytics/firebase_analytics_platform_interface/test/mock.dart b/packages/firebase_analytics/firebase_analytics_platform_interface/test/mock.dart index ddbc5b4a424a..f63b0507d302 100644 --- a/packages/firebase_analytics/firebase_analytics_platform_interface/test/mock.dart +++ b/packages/firebase_analytics/firebase_analytics_platform_interface/test/mock.dart @@ -3,7 +3,7 @@ // found in the LICENSE file. import 'package:firebase_analytics_platform_interface/firebase_analytics_platform_interface.dart'; -import 'package:firebase_core_platform_interface/firebase_core_platform_interface.dart'; +import 'package:firebase_core_platform_interface/test.dart'; import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; diff --git a/packages/firebase_app_check/firebase_app_check/test/mock.dart b/packages/firebase_app_check/firebase_app_check/test/mock.dart index 90cb5851b3fe..2da26a89c239 100644 --- a/packages/firebase_app_check/firebase_app_check/test/mock.dart +++ b/packages/firebase_app_check/firebase_app_check/test/mock.dart @@ -3,7 +3,7 @@ // found in the LICENSE file. import 'package:firebase_app_check_platform_interface/firebase_app_check_platform_interface.dart'; -import 'package:firebase_core_platform_interface/firebase_core_platform_interface.dart'; +import 'package:firebase_core_platform_interface/test.dart'; import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; diff --git a/packages/firebase_app_check/firebase_app_check_platform_interface/test/mock.dart b/packages/firebase_app_check/firebase_app_check_platform_interface/test/mock.dart index d8cb3f127115..9cefc319fe4c 100644 --- a/packages/firebase_app_check/firebase_app_check_platform_interface/test/mock.dart +++ b/packages/firebase_app_check/firebase_app_check_platform_interface/test/mock.dart @@ -4,7 +4,7 @@ import 'package:firebase_app_check_platform_interface/firebase_app_check_platform_interface.dart'; import 'package:firebase_app_check_platform_interface/src/method_channel/method_channel_firebase_app_check.dart'; -import 'package:firebase_core_platform_interface/firebase_core_platform_interface.dart'; +import 'package:firebase_core_platform_interface/test.dart'; import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; diff --git a/packages/firebase_app_installations/firebase_app_installations/test/firebase_installations_test.dart b/packages/firebase_app_installations/firebase_app_installations/test/firebase_installations_test.dart index 1bd0df0f6940..5440ae72ac6b 100644 --- a/packages/firebase_app_installations/firebase_app_installations/test/firebase_installations_test.dart +++ b/packages/firebase_app_installations/firebase_app_installations/test/firebase_installations_test.dart @@ -6,7 +6,7 @@ import 'package:firebase_app_installations/firebase_app_installations.dart'; import 'package:firebase_app_installations_platform_interface/firebase_app_installations_platform_interface.dart'; import 'package:firebase_core/firebase_core.dart'; -import 'package:firebase_core_platform_interface/firebase_core_platform_interface.dart'; +import 'package:firebase_core_platform_interface/test.dart'; import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:mockito/mockito.dart'; diff --git a/packages/firebase_auth/firebase_auth/test/mock.dart b/packages/firebase_auth/firebase_auth/test/mock.dart index a4a3178685bd..028d96c38558 100644 --- a/packages/firebase_auth/firebase_auth/test/mock.dart +++ b/packages/firebase_auth/firebase_auth/test/mock.dart @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import 'package:firebase_core_platform_interface/firebase_core_platform_interface.dart'; +import 'package:firebase_core_platform_interface/test.dart'; import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; diff --git a/packages/firebase_auth/firebase_auth_platform_interface/test/mock.dart b/packages/firebase_auth/firebase_auth_platform_interface/test/mock.dart index 4d1fc2a24a20..99b0b6c123d3 100644 --- a/packages/firebase_auth/firebase_auth_platform_interface/test/mock.dart +++ b/packages/firebase_auth/firebase_auth_platform_interface/test/mock.dart @@ -5,6 +5,7 @@ import 'package:firebase_auth_platform_interface/firebase_auth_platform_interface.dart'; import 'package:firebase_auth_platform_interface/src/method_channel/method_channel_firebase_auth.dart'; import 'package:firebase_core_platform_interface/firebase_core_platform_interface.dart'; +import 'package:firebase_core_platform_interface/test.dart'; import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; diff --git a/packages/firebase_core/firebase_core_platform_interface/lib/firebase_core_platform_interface.dart b/packages/firebase_core/firebase_core_platform_interface/lib/firebase_core_platform_interface.dart index 66c4b2a830e3..b55bb12090db 100644 --- a/packages/firebase_core/firebase_core_platform_interface/lib/firebase_core_platform_interface.dart +++ b/packages/firebase_core/firebase_core_platform_interface/lib/firebase_core_platform_interface.dart @@ -14,10 +14,6 @@ import 'package:flutter/foundation.dart'; import 'package:flutter/services.dart'; import 'package:plugin_platform_interface/plugin_platform_interface.dart'; -export 'package:firebase_core_platform_interface/src/pigeon/messages.pigeon.dart'; -export 'package:firebase_core_platform_interface/src/pigeon/mocks.dart'; -export 'package:firebase_core_platform_interface/src/pigeon/test_api.dart'; - part 'src/firebase_core_exceptions.dart'; part 'src/firebase_exception.dart'; part 'src/firebase_options.dart'; diff --git a/packages/firebase_core/firebase_core_platform_interface/lib/src/pigeon/mocks.dart b/packages/firebase_core/firebase_core_platform_interface/lib/src/pigeon/mocks.dart index 6d90d6507f34..13d7b3f8808e 100644 --- a/packages/firebase_core/firebase_core_platform_interface/lib/src/pigeon/mocks.dart +++ b/packages/firebase_core/firebase_core_platform_interface/lib/src/pigeon/mocks.dart @@ -3,6 +3,7 @@ // BSD-style license that can be found in the LICENSE file. import 'package:firebase_core_platform_interface/firebase_core_platform_interface.dart'; +import 'package:firebase_core_platform_interface/test.dart'; class MockFirebaseApp implements TestFirebaseCoreHostApi { @override diff --git a/packages/firebase_core/firebase_core_platform_interface/lib/test.dart b/packages/firebase_core/firebase_core_platform_interface/lib/test.dart new file mode 100644 index 000000000000..efe38fee905a --- /dev/null +++ b/packages/firebase_core/firebase_core_platform_interface/lib/test.dart @@ -0,0 +1,3 @@ +export 'package:firebase_core_platform_interface/src/pigeon/messages.pigeon.dart'; +export 'package:firebase_core_platform_interface/src/pigeon/mocks.dart'; +export 'package:firebase_core_platform_interface/src/pigeon/test_api.dart'; diff --git a/packages/firebase_core/firebase_core_platform_interface/test/firebase_options_test.dart b/packages/firebase_core/firebase_core_platform_interface/test/firebase_options_test.dart index 110c10e647a5..98a904060e39 100644 --- a/packages/firebase_core/firebase_core_platform_interface/test/firebase_options_test.dart +++ b/packages/firebase_core/firebase_core_platform_interface/test/firebase_options_test.dart @@ -4,6 +4,7 @@ // found in the LICENSE file. import 'package:firebase_core_platform_interface/firebase_core_platform_interface.dart'; +import 'package:firebase_core_platform_interface/test.dart'; import 'package:flutter_test/flutter_test.dart'; void main() { diff --git a/packages/firebase_crashlytics/firebase_crashlytics/test/mock.dart b/packages/firebase_crashlytics/firebase_crashlytics/test/mock.dart index 41c859bfad16..9fc67af01ba9 100644 --- a/packages/firebase_crashlytics/firebase_crashlytics/test/mock.dart +++ b/packages/firebase_crashlytics/firebase_crashlytics/test/mock.dart @@ -4,6 +4,7 @@ // found in the LICENSE file. import 'package:firebase_core_platform_interface/firebase_core_platform_interface.dart'; +import 'package:firebase_core_platform_interface/test.dart'; import 'package:firebase_crashlytics_platform_interface/firebase_crashlytics_platform_interface.dart'; import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; diff --git a/packages/firebase_crashlytics/firebase_crashlytics_platform_interface/test/mock.dart b/packages/firebase_crashlytics/firebase_crashlytics_platform_interface/test/mock.dart index ded98e2a711d..15e42383f03c 100644 --- a/packages/firebase_crashlytics/firebase_crashlytics_platform_interface/test/mock.dart +++ b/packages/firebase_crashlytics/firebase_crashlytics_platform_interface/test/mock.dart @@ -4,6 +4,7 @@ // found in the LICENSE file. import 'package:firebase_core_platform_interface/firebase_core_platform_interface.dart'; +import 'package:firebase_core_platform_interface/test.dart'; import 'package:firebase_crashlytics_platform_interface/src/method_channel/method_channel_crashlytics.dart'; import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; diff --git a/packages/firebase_database/firebase_database/test/mock.dart b/packages/firebase_database/firebase_database/test/mock.dart index 7f286b2bf2ad..fa4e465063fe 100644 --- a/packages/firebase_database/firebase_database/test/mock.dart +++ b/packages/firebase_database/firebase_database/test/mock.dart @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import 'package:firebase_core_platform_interface/firebase_core_platform_interface.dart'; +import 'package:firebase_core_platform_interface/test.dart'; import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; diff --git a/packages/firebase_database/firebase_database_platform_interface/test/test_common.dart b/packages/firebase_database/firebase_database_platform_interface/test/test_common.dart index dc9c175a53a2..e8272a3f348c 100644 --- a/packages/firebase_database/firebase_database_platform_interface/test/test_common.dart +++ b/packages/firebase_database/firebase_database_platform_interface/test/test_common.dart @@ -2,7 +2,7 @@ // 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:firebase_core_platform_interface/firebase_core_platform_interface.dart'; +import 'package:firebase_core_platform_interface/test.dart'; import 'package:flutter_test/flutter_test.dart'; void initializeMethodChannel() { diff --git a/packages/firebase_dynamic_links/firebase_dynamic_links/test/mock.dart b/packages/firebase_dynamic_links/firebase_dynamic_links/test/mock.dart index b7a22309dc80..ff5f77bad688 100644 --- a/packages/firebase_dynamic_links/firebase_dynamic_links/test/mock.dart +++ b/packages/firebase_dynamic_links/firebase_dynamic_links/test/mock.dart @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import 'package:firebase_core_platform_interface/firebase_core_platform_interface.dart'; +import 'package:firebase_core_platform_interface/test.dart'; import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; diff --git a/packages/firebase_dynamic_links/firebase_dynamic_links_platform_interface/test/mock.dart b/packages/firebase_dynamic_links/firebase_dynamic_links_platform_interface/test/mock.dart index 9a8e959ef2e1..daa46be29a45 100644 --- a/packages/firebase_dynamic_links/firebase_dynamic_links_platform_interface/test/mock.dart +++ b/packages/firebase_dynamic_links/firebase_dynamic_links_platform_interface/test/mock.dart @@ -3,6 +3,7 @@ // found in the LICENSE file. import 'package:firebase_core_platform_interface/firebase_core_platform_interface.dart'; +import 'package:firebase_core_platform_interface/test.dart'; import 'package:firebase_dynamic_links_platform_interface/src/method_channel/method_channel_firebase_dynamic_links.dart'; import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; diff --git a/packages/firebase_in_app_messaging/firebase_in_app_messaging/test/firebase_in_app_messaging_test.dart b/packages/firebase_in_app_messaging/firebase_in_app_messaging/test/firebase_in_app_messaging_test.dart index 2440c46f7720..8af599eb222e 100644 --- a/packages/firebase_in_app_messaging/firebase_in_app_messaging/test/firebase_in_app_messaging_test.dart +++ b/packages/firebase_in_app_messaging/firebase_in_app_messaging/test/firebase_in_app_messaging_test.dart @@ -3,7 +3,7 @@ // found in the LICENSE file. import 'package:firebase_core/firebase_core.dart'; -import 'package:firebase_core_platform_interface/firebase_core_platform_interface.dart'; +import 'package:firebase_core_platform_interface/test.dart'; import 'package:firebase_in_app_messaging/firebase_in_app_messaging.dart'; import 'package:firebase_in_app_messaging_platform_interface/firebase_in_app_messaging_platform_interface.dart'; import 'package:flutter/services.dart'; diff --git a/packages/firebase_in_app_messaging/firebase_in_app_messaging_platform_interface/test/mock.dart b/packages/firebase_in_app_messaging/firebase_in_app_messaging_platform_interface/test/mock.dart index e8697c4e1e8f..07d9796577fb 100644 --- a/packages/firebase_in_app_messaging/firebase_in_app_messaging_platform_interface/test/mock.dart +++ b/packages/firebase_in_app_messaging/firebase_in_app_messaging_platform_interface/test/mock.dart @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import 'package:firebase_core_platform_interface/firebase_core_platform_interface.dart'; +import 'package:firebase_core_platform_interface/test.dart'; import 'package:firebase_in_app_messaging_platform_interface/src/method_channel/method_channel_firebase_in_app_messaging.dart'; import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; diff --git a/packages/firebase_messaging/firebase_messaging/test/mock.dart b/packages/firebase_messaging/firebase_messaging/test/mock.dart index 515e3d2aa869..4f326ac2dbb5 100644 --- a/packages/firebase_messaging/firebase_messaging/test/mock.dart +++ b/packages/firebase_messaging/firebase_messaging/test/mock.dart @@ -4,7 +4,7 @@ // found in the LICENSE file. import 'package:firebase_core/firebase_core.dart'; -import 'package:firebase_core_platform_interface/firebase_core_platform_interface.dart'; +import 'package:firebase_core_platform_interface/test.dart'; import 'package:firebase_messaging_platform_interface/firebase_messaging_platform_interface.dart'; import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; diff --git a/packages/firebase_messaging/firebase_messaging_platform_interface/test/mock.dart b/packages/firebase_messaging/firebase_messaging_platform_interface/test/mock.dart index c98de46f49ae..b2b47fb88295 100644 --- a/packages/firebase_messaging/firebase_messaging_platform_interface/test/mock.dart +++ b/packages/firebase_messaging/firebase_messaging_platform_interface/test/mock.dart @@ -4,6 +4,7 @@ // BSD-style license that can be found in the LICENSE file. import 'package:firebase_core_platform_interface/firebase_core_platform_interface.dart'; +import 'package:firebase_core_platform_interface/test.dart'; import 'package:firebase_messaging_platform_interface/src/method_channel/method_channel_messaging.dart'; import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; diff --git a/packages/firebase_ml_model_downloader/firebase_ml_model_downloader/test/mock.dart b/packages/firebase_ml_model_downloader/firebase_ml_model_downloader/test/mock.dart index abc7ef03877b..147a74550d98 100644 --- a/packages/firebase_ml_model_downloader/firebase_ml_model_downloader/test/mock.dart +++ b/packages/firebase_ml_model_downloader/firebase_ml_model_downloader/test/mock.dart @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import 'package:firebase_core_platform_interface/firebase_core_platform_interface.dart'; +import 'package:firebase_core_platform_interface/test.dart'; import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; diff --git a/packages/firebase_ml_model_downloader/firebase_ml_model_downloader_platform_interface/test/mock.dart b/packages/firebase_ml_model_downloader/firebase_ml_model_downloader_platform_interface/test/mock.dart index dc23b2dedc71..655358e4cdf4 100644 --- a/packages/firebase_ml_model_downloader/firebase_ml_model_downloader_platform_interface/test/mock.dart +++ b/packages/firebase_ml_model_downloader/firebase_ml_model_downloader_platform_interface/test/mock.dart @@ -3,6 +3,7 @@ // BSD-style license that can be found in the LICENSE file. import 'package:firebase_core_platform_interface/firebase_core_platform_interface.dart'; +import 'package:firebase_core_platform_interface/test.dart'; import 'package:firebase_ml_model_downloader_platform_interface/src/method_channel/method_channel_firebase_ml_model_downloader.dart'; import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; diff --git a/packages/firebase_performance/firebase_performance/test/mock.dart b/packages/firebase_performance/firebase_performance/test/mock.dart index 131273481d79..59d85c89ab98 100644 --- a/packages/firebase_performance/firebase_performance/test/mock.dart +++ b/packages/firebase_performance/firebase_performance/test/mock.dart @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import 'package:firebase_core_platform_interface/firebase_core_platform_interface.dart'; +import 'package:firebase_core_platform_interface/test.dart'; import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; diff --git a/packages/firebase_performance/firebase_performance_platform_interface/test/mock.dart b/packages/firebase_performance/firebase_performance_platform_interface/test/mock.dart index 967271256f10..9bcbb3f6ce07 100644 --- a/packages/firebase_performance/firebase_performance_platform_interface/test/mock.dart +++ b/packages/firebase_performance/firebase_performance_platform_interface/test/mock.dart @@ -3,6 +3,7 @@ // found in the LICENSE file. import 'package:firebase_core_platform_interface/firebase_core_platform_interface.dart'; +import 'package:firebase_core_platform_interface/test.dart'; import 'package:firebase_performance_platform_interface/src/method_channel/method_channel_firebase_performance.dart'; import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; diff --git a/packages/firebase_remote_config/firebase_remote_config/test/mock.dart b/packages/firebase_remote_config/firebase_remote_config/test/mock.dart index 823e5f2a7877..4c73b4ae5beb 100644 --- a/packages/firebase_remote_config/firebase_remote_config/test/mock.dart +++ b/packages/firebase_remote_config/firebase_remote_config/test/mock.dart @@ -2,7 +2,7 @@ // 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:firebase_core_platform_interface/firebase_core_platform_interface.dart'; +import 'package:firebase_core_platform_interface/test.dart'; import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; diff --git a/packages/firebase_storage/firebase_storage/test/mock.dart b/packages/firebase_storage/firebase_storage/test/mock.dart index 282dce05882f..45a40af8042a 100644 --- a/packages/firebase_storage/firebase_storage/test/mock.dart +++ b/packages/firebase_storage/firebase_storage/test/mock.dart @@ -10,7 +10,7 @@ import 'dart:io'; import 'dart:typed_data'; import 'package:firebase_core/firebase_core.dart'; -import 'package:firebase_core_platform_interface/firebase_core_platform_interface.dart'; +import 'package:firebase_core_platform_interface/test.dart'; import 'package:firebase_storage_platform_interface/firebase_storage_platform_interface.dart'; import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; diff --git a/packages/firebase_storage/firebase_storage_platform_interface/test/mock.dart b/packages/firebase_storage/firebase_storage_platform_interface/test/mock.dart index ce0ffd1907de..7e6328a0a6c8 100644 --- a/packages/firebase_storage/firebase_storage_platform_interface/test/mock.dart +++ b/packages/firebase_storage/firebase_storage_platform_interface/test/mock.dart @@ -4,6 +4,7 @@ // found in the LICENSE file. import 'package:firebase_core_platform_interface/firebase_core_platform_interface.dart'; +import 'package:firebase_core_platform_interface/test.dart'; import 'package:firebase_storage_platform_interface/src/method_channel/method_channel_firebase_storage.dart'; import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; diff --git a/packages/firebase_vertexai/firebase_vertexai/test/mock.dart b/packages/firebase_vertexai/firebase_vertexai/test/mock.dart index 5e8faec08656..ed883d924371 100644 --- a/packages/firebase_vertexai/firebase_vertexai/test/mock.dart +++ b/packages/firebase_vertexai/firebase_vertexai/test/mock.dart @@ -13,6 +13,7 @@ // limitations under the License. import 'package:firebase_core_platform_interface/firebase_core_platform_interface.dart'; +import 'package:firebase_core_platform_interface/test.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:mockito/mockito.dart'; import 'package:plugin_platform_interface/plugin_platform_interface.dart';