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

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

Issue 1267243003: Add custom tabs tests using intents with non-null sessions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added the utils class 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
Index: chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabExternalNavigationTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabExternalNavigationTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabExternalNavigationTest.java
index a96cb4242a2823734d8c1a6a98476e34fafea94a..3d865be5ee68902f57c8b14cef3485747a3bf40e 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabExternalNavigationTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabExternalNavigationTest.java
@@ -58,7 +58,8 @@ public class CustomTabExternalNavigationTest extends CustomTabActivityTestBase {
@Override
public void startMainActivity() throws InterruptedException {
super.startMainActivity();
- startCustomTabActivityWithIntent(createMinimalCustomTabIntent(TEST_URL));
+ startCustomTabActivityWithIntent(CustomTabsTestUtils.createMinimalCustomTabIntent(
+ getInstrumentation().getTargetContext(), TEST_URL, null));
Tab tab = getActivity().getActivityTab();
assertTrue("A custom tab is not present in the activity.", tab instanceof CustomTab);
CustomTab customTab = (CustomTab) tab;

Powered by Google App Engine
This is Rietveld 408576698