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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabsConnectionTest.java

Issue 2828143003: NoStatePrefetch: update the fieldtrial_testing_config (Closed)
Patch Set: force prerendering in customtabs tests Created 3 years, 8 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 | « no previous file | chrome/browser/extensions/activity_log/activity_log_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabsConnectionTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabsConnectionTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabsConnectionTest.java
index 211100f19fb5d2a5a426ce9d68f1792e43da034f..96d4bc8667cd78c36fc07ce887d86f83ec89e448 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabsConnectionTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabsConnectionTest.java
@@ -155,6 +155,7 @@ public class CustomTabsConnectionTest {
@SmallTest
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
public void testPrerenderDestroysSpareRenderer() {
+ CustomTabsConnection.getInstance((Application) mAppContext).setForcePrerender(true);
droger 2017/04/24 11:02:12 Do we need to set it back to false at the end, to
pasko 2017/04/24 12:40:26 the forcing of prerender is a per-session (=connec
final CustomTabsSessionToken token = assertWarmupAndMayLaunchUrl(null, URL, true);
ThreadUtils.runOnUiThreadBlocking(new Runnable() {
@Override
@@ -304,6 +305,7 @@ public class CustomTabsConnectionTest {
@SmallTest
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
public void testStillHighConfidenceMayLaunchUrlWithSeveralUrls() {
+ CustomTabsConnection.getInstance((Application) mAppContext).setForcePrerender(true);
final CustomTabsSessionToken token =
CustomTabsSessionToken.createDummySessionTokenForTesting();
Assert.assertTrue(mCustomTabsConnection.newSession(token));
@@ -350,6 +352,7 @@ public class CustomTabsConnectionTest {
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
@RetryOnFailure
public void testCanCancelPrerender() {
+ CustomTabsConnection.getInstance((Application) mAppContext).setForcePrerender(true);
final CustomTabsSessionToken token = assertWarmupAndMayLaunchUrl(null, URL, true);
ThreadUtils.runOnUiThreadBlocking(new Runnable() {
@Override
« no previous file with comments | « no previous file | chrome/browser/extensions/activity_log/activity_log_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698