| Index: chrome/android/junit/src/org/chromium/chrome/browser/page_info/ConnectionInfoPopupTest.java
|
| diff --git a/chrome/android/junit/src/org/chromium/chrome/browser/page_info/ConnectionInfoPopupTest.java b/chrome/android/junit/src/org/chromium/chrome/browser/page_info/ConnectionInfoPopupTest.java
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2dcf10116892336c62830a8344b90eb503ad136a
|
| --- /dev/null
|
| +++ b/chrome/android/junit/src/org/chromium/chrome/browser/page_info/ConnectionInfoPopupTest.java
|
| @@ -0,0 +1,38 @@
|
| +// Copyright 2017 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 org.chromium.chrome.browser.page_info;
|
| +
|
| +import android.content.Context;
|
| +
|
| +import org.junit.Before;
|
| +import org.junit.Test;
|
| +import org.junit.runner.RunWith;
|
| +import org.mockito.Mock;
|
| +import org.mockito.MockitoAnnotations;
|
| +import org.robolectric.annotation.Config;
|
| +
|
| +import org.chromium.base.ContextUtils;
|
| +import org.chromium.content_public.browser.WebContents;
|
| +import org.chromium.testing.local.LocalRobolectricTestRunner;
|
| +
|
| +/**
|
| + * Unit tests for {@link ConnectionInfoPopup} class.
|
| + */
|
| +@RunWith(LocalRobolectricTestRunner.class)
|
| +@Config(manifest = Config.NONE)
|
| +public final class ConnectionInfoPopupTest {
|
| + @Mock
|
| + private WebContents mWebContents;
|
| +
|
| + @Before
|
| + public void setUp() {
|
| + MockitoAnnotations.initMocks(this);
|
| + }
|
| +
|
| + @Test
|
| + public void showConnectionInfoPopup() {
|
| + Context activity = ContextUtils.getApplicationContext();
|
| + ConnectionInfoPopup.show(activity, mWebContents);
|
| + }
|
| +}
|
|
|