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

Unified Diff: content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestBase.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 the nit. Created 6 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: content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestBase.java
diff --git a/content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestBase.java b/content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestBase.java
index e57807bb530ac272d7e4bf103ddd247c71852164..a9df20667732fd729b43e20111687cee1c138c53 100644
--- a/content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestBase.java
+++ b/content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestBase.java
@@ -86,7 +86,7 @@ public class ContentShellTestBase extends ActivityInstrumentationTestCase2<Conte
launchContentShellWithUrl(UrlUtils.getTestFileUrl(url));
assertNotNull(getActivity());
assertTrue(waitForActiveShellToBeDoneLoading());
- assertEquals(UrlUtils.getTestFileUrl(url), getContentViewCore().getUrl());
+ assertEquals(UrlUtils.getTestFileUrl(url), getContentViewCore().getWebContents().getUrl());
}
/**
@@ -138,7 +138,8 @@ public class ContentShellTestBase extends ActivityInstrumentationTestCase2<Conte
// loading because it has no URL set yet. The second is that
// we've set a URL and it actually is loading.
isLoaded.set(!shell.isLoading()
- && !TextUtils.isEmpty(shell.getContentViewCore().getUrl()));
+ && !TextUtils.isEmpty(shell.getContentViewCore().
+ getWebContents().getUrl()));
} else {
isLoaded.set(false);
}

Powered by Google App Engine
This is Rietveld 408576698