blob: 1a09ed9f718c37a3c8ca8b15887a52f8a310ce5f [file] [log] [blame]
// Copyright 2019 The Chromium Authors. 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:flutter/widgets.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:video_player/video_player.dart';
import 'video_player_test.dart' show FakeVideoPlayerPlatform;
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();
FakeVideoPlayerPlatform fakeVideoPlayerPlatform = FakeVideoPlayerPlatform();
final VideoPlayerController controller = VideoPlayerController.network(
'https://127.0.0.1',
);
await controller.initialize();
expect(fakeVideoPlayerPlatform.calls.first, 'init');
});
}