Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
update
  • Loading branch information
Chris Yang authored and emerssso committed Mar 19, 2020
commit 8d5b4dff20f893b95826f8e908ffa2b0109c3948
4 changes: 2 additions & 2 deletions packages/google_sign_in/google_sign_in/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ android {
dependencies {
implementation 'com.google.android.gms:play-services-auth:16.0.1'
implementation 'com.google.guava:guava:20.0'
testImplementation 'junit:junit:4.12'
testImplementation 'org.mockito:mockito-core:2.17.0'
testCompile 'junit:junit:4.12'
testCompile 'org.mockito:mockito-core:2.17.0'
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// 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.

package io.flutter.plugins.googlesignintests;

import static org.mockito.Mockito.when;

import android.app.Activity;
import android.app.Application;
import android.content.Context;
import io.flutter.plugin.common.BinaryMessenger;
import io.flutter.plugin.common.PluginRegistry;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;

public class GoogleSignInPluginTests {

@Mock Activity activity;
@Mock Context context;
@Mock PluginRegistry.Registrar mockRegistrar;
@Mock BinaryMessenger mockMessenger;
@Mock Application mockApplication;

@Before
public void setUp() {
MockitoAnnotations.initMocks(this);
when(mockRegistrar.activity()).thenReturn(activity);
when(mockRegistrar.messenger()).thenReturn(mockMessenger);
when(mockRegistrar.context()).thenReturn(context);
}
//
// @Test
// public void registerWith_doNotCrashWhenRegisterContextIsActivity_V1Embedding() {
// when(mockRegistrar.context()).thenReturn(activity);
// when(activity.getApplicationContext()).thenReturn(mockApplication);
// InAppPurchasePlugin.registerWith(mockRegistrar);
// }
}