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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/webapps/WebappVisibilityTest.java

Issue 1169213006: Make ConnectionSecurityHelper a namespace instead of a class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 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
Index: chrome/android/javatests/src/org/chromium/chrome/browser/webapps/WebappVisibilityTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/webapps/WebappVisibilityTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/webapps/WebappVisibilityTest.java
index 07aa8c392295fcfee157c5f18ca551e15c47b0d1..60e4b264cfcf7c9b493ef6f6eea6ec23f0353f18 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/webapps/WebappVisibilityTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/webapps/WebappVisibilityTest.java
@@ -7,7 +7,7 @@ package org.chromium.chrome.browser.webapps;
import android.test.suitebuilder.annotation.MediumTest;
import org.chromium.base.test.util.Feature;
-import org.chromium.chrome.browser.ssl.ConnectionSecurityHelperSecurityLevel;
+import org.chromium.chrome.browser.ssl.ConnectionSecurityLevel;
import org.chromium.content_public.common.ScreenOrientationValues;
/**
@@ -24,46 +24,38 @@ public class WebappVisibilityTest extends WebappActivityTestBase {
// Show top controls for out-of-domain URLs.
assertTrue(getActivity().shouldShowTopControls(
- "http://notoriginalwebsite.com", ConnectionSecurityHelperSecurityLevel.NONE));
+ "http://notoriginalwebsite.com", ConnectionSecurityLevel.NONE));
assertTrue(getActivity().shouldShowTopControls(
- "http://otherwebsite.com", ConnectionSecurityHelperSecurityLevel.NONE));
+ "http://otherwebsite.com", ConnectionSecurityLevel.NONE));
// Do not show top controls for subdomains and private registries that are secure.
assertFalse(getActivity().shouldShowTopControls(
- "http://sub.originalwebsite.com", ConnectionSecurityHelperSecurityLevel.NONE));
+ "http://sub.originalwebsite.com", ConnectionSecurityLevel.NONE));
assertFalse(getActivity().shouldShowTopControls(
- "http://thing.originalwebsite.com", ConnectionSecurityHelperSecurityLevel.NONE));
- assertFalse(getActivity().shouldShowTopControls(webappUrl,
- ConnectionSecurityHelperSecurityLevel.NONE));
+ "http://thing.originalwebsite.com", ConnectionSecurityLevel.NONE));
+ assertFalse(getActivity().shouldShowTopControls(webappUrl, ConnectionSecurityLevel.NONE));
assertFalse(getActivity().shouldShowTopControls(
- webappUrl + "/things.html", ConnectionSecurityHelperSecurityLevel.NONE));
+ webappUrl + "/things.html", ConnectionSecurityLevel.NONE));
assertFalse(getActivity().shouldShowTopControls(
- webappUrl + "/stuff.html", ConnectionSecurityHelperSecurityLevel.NONE));
+ webappUrl + "/stuff.html", ConnectionSecurityLevel.NONE));
// Do not show top controls when URL is not available yet.
- assertFalse(getActivity().shouldShowTopControls("",
- ConnectionSecurityHelperSecurityLevel.NONE));
+ assertFalse(getActivity().shouldShowTopControls("", ConnectionSecurityLevel.NONE));
// Show top controls for non secure URLs.
assertTrue(getActivity().shouldShowTopControls(
- "http://sub.originalwebsite.com",
- ConnectionSecurityHelperSecurityLevel.SECURITY_WARNING));
+ "http://sub.originalwebsite.com", ConnectionSecurityLevel.SECURITY_WARNING));
assertTrue(getActivity().shouldShowTopControls(
- "http://notoriginalwebsite.com",
- ConnectionSecurityHelperSecurityLevel.SECURITY_ERROR));
+ "http://notoriginalwebsite.com", ConnectionSecurityLevel.SECURITY_ERROR));
assertTrue(getActivity().shouldShowTopControls(
- "http://otherwebsite.com",
- ConnectionSecurityHelperSecurityLevel.SECURITY_ERROR));
+ "http://otherwebsite.com", ConnectionSecurityLevel.SECURITY_ERROR));
assertTrue(getActivity().shouldShowTopControls(
- "http://thing.originalwebsite.com",
- ConnectionSecurityHelperSecurityLevel.SECURITY_ERROR));
+ "http://thing.originalwebsite.com", ConnectionSecurityLevel.SECURITY_ERROR));
assertTrue(getActivity().shouldShowTopControls(
- webappUrl, ConnectionSecurityHelperSecurityLevel.SECURITY_WARNING));
+ webappUrl, ConnectionSecurityLevel.SECURITY_WARNING));
assertTrue(getActivity().shouldShowTopControls(
- webappUrl + "/things.html",
- ConnectionSecurityHelperSecurityLevel.SECURITY_WARNING));
+ webappUrl + "/things.html", ConnectionSecurityLevel.SECURITY_WARNING));
assertTrue(getActivity().shouldShowTopControls(
- webappUrl + "/stuff.html",
- ConnectionSecurityHelperSecurityLevel.SECURITY_WARNING));
+ webappUrl + "/stuff.html", ConnectionSecurityLevel.SECURITY_WARNING));
}
}

Powered by Google App Engine
This is Rietveld 408576698