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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/test/ModalDialogTest.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: chrome/android/javatests/src/org/chromium/chrome/browser/test/ModalDialogTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/test/ModalDialogTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/test/ModalDialogTest.java
index 38181b5f2efb89259904334c4c2a2ebac2d0903c..e2242301e753f08e2604b7c791c5ec05fda71593 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/test/ModalDialogTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/test/ModalDialogTest.java
@@ -184,7 +184,8 @@ public class ModalDialogTest extends ChromeShellTestBase {
"Stay on this page");
clickCancel(jsDialog);
- assertEquals(BEFORE_UNLOAD_URL, getActivity().getActiveContentViewCore().getUrl());
+ assertEquals(BEFORE_UNLOAD_URL, getActivity().getActiveContentViewCore()
+ .getWebContents().getUrl());
executeJavaScriptAndWaitForDialog("history.back();");
jsDialog = getCurrentDialog();
@@ -198,7 +199,8 @@ public class ModalDialogTest extends ChromeShellTestBase {
int callCount = onPageLoaded.getCallCount();
clickOk(jsDialog);
onPageLoaded.waitForCallback(callCount);
- assertEquals(EMPTY_PAGE, getActivity().getActiveContentViewCore().getUrl());
+ assertEquals(EMPTY_PAGE, getActivity().getActiveContentViewCore()
+ .getWebContents().getUrl());
}
/**

Powered by Google App Engine
This is Rietveld 408576698