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

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

Issue 2505063003: Support native app redirects to herb. (Closed)
Patch Set: Created 4 years, 1 month 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/CustomTabDelegateFactory.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/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 3e6788850a984d9b270912bb9aabd0531ad15a90..83051ffe081cba2afeade3494544f0ffa505b017 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
@@ -71,9 +71,13 @@ public class CustomTabExternalNavigationTest extends CustomTabActivityTestBase {
getInstrumentation().getTargetContext(), mTestServer.getURL(TEST_PATH)));
Tab tab = getActivity().getActivityTab();
TabDelegateFactory delegateFactory = tab.getDelegateFactory();
- assert delegateFactory instanceof CustomTabDelegateFactory;
- mUrlHandler = ((CustomTabDelegateFactory) delegateFactory).getExternalNavigationHandler();
- mNavigationDelegate = ((CustomTabDelegateFactory) delegateFactory)
+ assertTrue(delegateFactory instanceof CustomTabDelegateFactory);
+ CustomTabDelegateFactory customTabDelegateFactory =
+ ((CustomTabDelegateFactory) delegateFactory);
+ mUrlHandler = customTabDelegateFactory.getExternalNavigationHandler();
+ assertTrue(customTabDelegateFactory.getExternalNavigationDelegate()
+ instanceof CustomTabNavigationDelegate);
+ mNavigationDelegate = (CustomTabNavigationDelegate) customTabDelegateFactory
.getExternalNavigationDelegate();
}
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabDelegateFactory.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698