blob: f1388ce86d679e2b1f81395f8d44278ee759fbf9 [file] [log] [blame]
// Copyright 2013 The Flutter 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_test/flutter_test.dart';
import 'package:google_sign_in_platform_interface/google_sign_in_platform_interface.dart';
import 'package:integration_test/integration_test.dart';
void main() {
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
testWidgets('Can initialize the plugin', (WidgetTester tester) async {
final GoogleSignInPlatform signIn = GoogleSignInPlatform.instance;
expect(signIn, isNotNull);
});
testWidgets('Method channel handler is present', (WidgetTester tester) async {
// isSignedIn can be called without initialization, so use it to validate
// that the native method handler is present (e.g., that the channel name
// is correct).
final GoogleSignInPlatform signIn = GoogleSignInPlatform.instance;
await expectLater(signIn.isSignedIn(), completes);
});
}