Revert "[Android] Cleanup ExternalNavigationHandlerTest"
This reverts commit e4c53ce3. Reason for revert: Breaks Marshmallow Tester bot: https://uberchromegw.corp.google.com/i/chromium.android/builders/Marshmallow%2064%20bit%20Tester/builds/19160 Original change's description: > [Android] Cleanup ExternalNavigationHandlerTest > > This CL: > - Replaces calls to > ExternalNavigationDelegateImpl#isSpecializedHandlerAvailable() with calls to > #countSpecializedHandlers() because #isSpecializedHandlerAvailable() has just > one caller > - Replaces ChromeBrowserTestRule with NativeLibraryTestRule > - Uses a mock context for both ContextUtils#getApplicationContext() and for > TabRedirectHandler instead of just for TabRedirectHandler > - Makes TestPackageManager#queryIntentActivities() and > TestExternalNavigationDelegate#queryIntentActivities() use same > implementation. > - Changes tests to register relevant http:// and https:// handlers at the > beginning of the test. This is a change of behavior. Previously, most URLs > would be handled by the "foo" external app > - Changes TestExternalNavigationDelegate#mQueryIntentOverride from tristate to > boolean. The "true behavior" was nuked but the "false behavior" was > preserved. > > BUG=None > > Change-Id: If212afde6e4c12d4f08576c4bd26392b8732bc09 > Reviewed-on: https://chromium-review.googlesource.com/891744 > Commit-Queue: Peter Kotwicz <pkotwicz@chromium.org> > Reviewed-by: Maria Khomenko <mariakhomenko@chromium.org> > Cr-Commit-Position: refs/heads/master@{#532970} TBR=mariakhomenko@chromium.org,pkotwicz@chromium.org,thildebr@chromium.org Change-Id: Ifb044a014ac4d94a74fffaf493cc3aad32b42ad5 No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: None Reviewed-on: https://chromium-review.googlesource.com/894684Reviewed-by:Maria Khomenko <mariakhomenko@chromium.org> Commit-Queue: Maria Khomenko <mariakhomenko@chromium.org> Cr-Commit-Position: refs/heads/master@{#533123}
Showing
Please register or sign in to comment