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

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

Issue 1264013005: customtabs: Add throttling to mayLaunchUrl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test. Created 5 years, 4 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/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java ('k') | no next file » | 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 0ff8620f23eac2142d42c096e514dbb7773ed602..fc8133d289cc10682b890727cfb563bb37bea26a 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
@@ -9,6 +9,7 @@ import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import android.os.IBinder;
+import android.os.Process;
import android.support.customtabs.ICustomTabsCallback;
import android.test.InstrumentationTestCase;
import android.test.suitebuilder.annotation.SmallTest;
@@ -25,6 +26,7 @@ public class CustomTabsConnectionTest extends InstrumentationTestCase {
super.setUp();
Context context = getInstrumentation().getTargetContext().getApplicationContext();
mCustomTabsConnection = CustomTabsConnection.getInstance((Application) context);
+ mCustomTabsConnection.resetThrottling(Process.myUid());
}
@Override
@@ -120,7 +122,9 @@ public class CustomTabsConnectionTest extends InstrumentationTestCase {
@SmallTest
public void testMultipleMayLaunchUrl() {
ICustomTabsCallback cb = assertWarmupAndMayLaunchUrl(null, URL, true);
+ mCustomTabsConnection.resetThrottling(Process.myUid());
assertWarmupAndMayLaunchUrl(cb, URL, true);
+ mCustomTabsConnection.resetThrottling(Process.myUid());
assertWarmupAndMayLaunchUrl(cb, URL2, true);
}
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698