Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(619)

Unified Diff: chrome/android/junit/src/org/chromium/chrome/browser/page_info/ConnectionInfoPopupTest.java

Issue 2948453002: Add ConnectionInfoPopupTest. (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/android/java_sources.gni ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
+ }
+}
« no previous file with comments | « chrome/android/java_sources.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698