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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/instantapps/InstantAppsHandlerTest.java

Issue 2668553003: Instant Apps: Remove experiment. (Closed)
Patch Set: Rebase Created 3 years, 10 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/instantapps/InstantAppsHandlerTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/instantapps/InstantAppsHandlerTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/instantapps/InstantAppsHandlerTest.java
index 2d1888973743031c090c47c9dae8e75e79f898ea..a1407422c549a14bdd233b15c4aac439dc94ca09 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/instantapps/InstantAppsHandlerTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/instantapps/InstantAppsHandlerTest.java
@@ -62,17 +62,6 @@ public class InstantAppsHandlerTest extends ChromeActivityTestCaseBase<ChromeAct
}
@SmallTest
- public void testInstantAppsDisabled_disabledByFlag() {
- SharedPreferences prefs = ContextUtils.getAppSharedPreferences();
- SharedPreferences.Editor editor = prefs.edit();
- editor.putBoolean("applink.app_link_enabled", false);
- editor.apply();
-
- assertFalse(mHandler.handleIncomingIntent(mContext, createViewIntent(), false));
- assertFalse(mHandler.handleIncomingIntent(mContext, createViewIntent(), true));
- }
-
- @SmallTest
public void testInstantAppsDisabled_incognito() {
Intent i = createViewIntent();
i.putExtra(IntentHandler.EXTRA_OPEN_NEW_INCOGNITO_TAB, true);
@@ -153,18 +142,6 @@ public class InstantAppsHandlerTest extends ChromeActivityTestCaseBase<ChromeAct
}
@SmallTest
- public void testHandleNavigation_noExperiment() {
- SharedPreferences prefs = ContextUtils.getAppSharedPreferences();
- SharedPreferences.Editor editor = prefs.edit();
- editor.putBoolean("applink.app_link_enabled", false);
- editor.apply();
-
- assertFalse(mHandler.handleNavigation(mContext, INSTANT_APP_URL, REFERRER_URI, null));
- assertFalse(mHandler.mLaunchInstantApp);
- assertFalse(mHandler.mStartedAsyncCall);
- }
-
- @SmallTest
public void testHandleNavigation_startAsyncCheck() {
ThreadUtils.runOnUiThreadBlocking(new Runnable() {
@Override
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java ('k') | chrome/app/generated_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698