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

Unified Diff: content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellShellManagementTest.java

Issue 481803004: Removing ContentViewCore dependencies from few functions which acts as direct wrapper to WebContents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed review comments and rebased the patch. Created 6 years, 3 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: content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellShellManagementTest.java
diff --git a/content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellShellManagementTest.java b/content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellShellManagementTest.java
index ddeac731fb0f5f85c2d5aa559fc61cb3bb574e79..a1ef29294cb036b897a620c2999c0d5ae25e083c 100644
--- a/content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellShellManagementTest.java
+++ b/content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellShellManagementTest.java
@@ -25,7 +25,8 @@ public class ContentShellShellManagementTest extends ContentShellTestBase {
@Feature({"Main"})
public void testMultipleShellsLaunched() throws InterruptedException {
final ContentShellActivity activity = launchContentShellWithUrl(TEST_PAGE_1);
- assertEquals(TEST_PAGE_1, activity.getActiveShell().getContentViewCore().getUrl());
+ assertEquals(TEST_PAGE_1, activity.getActiveShell().getContentViewCore()
+ .getWebContents().getUrl());
Shell previousActiveShell = activity.getActiveShell();
assertFalse(previousActiveShell.isDestroyed());
@@ -37,7 +38,8 @@ public class ContentShellShellManagementTest extends ContentShellTestBase {
}
});
waitForActiveShellToBeDoneLoading();
- assertEquals(TEST_PAGE_2, activity.getActiveShell().getContentViewCore().getUrl());
+ assertEquals(TEST_PAGE_2, activity.getActiveShell().getContentViewCore()
+ .getWebContents().getUrl());
assertNotSame(previousActiveShell, activity.getActiveShell());
assertTrue(previousActiveShell.isDestroyed());

Powered by Google App Engine
This is Rietveld 408576698