Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

[video_player][camera] fix video_player camera tests #3892

Merged
merged 1 commit into from
May 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions packages/camera/camera/test/camera_image_stream_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@

import 'package:camera/camera.dart';
import 'package:camera_platform_interface/camera_platform_interface.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_test/flutter_test.dart';

import 'camera_test.dart';
import 'utils/method_channel_mock.dart';

void main() {
WidgetsFlutterBinding.ensureInitialized();
TestWidgetsFlutterBinding.ensureInitialized();

setUp(() {
CameraPlatform.instance = MockCameraPlatform();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:flutter/widgets.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:video_player/video_player.dart';

Expand All @@ -12,7 +11,7 @@ void main() {
// This test needs to run first and therefore needs to be the only test
// in this file.
test('plugin initialized', () async {
WidgetsFlutterBinding.ensureInitialized();
TestWidgetsFlutterBinding.ensureInitialized();
FakeVideoPlayerPlatform fakeVideoPlayerPlatform = FakeVideoPlayerPlatform();

final VideoPlayerController controller = VideoPlayerController.network(
Expand Down