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

Unified Diff: content/browser/tab_contents/test_tab_contents.cc

Issue 9706012: Add abstractions that let embedders drive tests of WebContents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove CONTENT_EXPORT on statically linked functions. Merge to head for commit. Created 8 years, 9 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/browser/tab_contents/test_tab_contents.cc
diff --git a/content/browser/tab_contents/test_tab_contents.cc b/content/browser/tab_contents/test_tab_contents.cc
index dc582f2321ea9878a554c6c58e312983c61a0ae5..c2feabfee254fbe993c014e7c3eb3b7caae02786 100644
--- a/content/browser/tab_contents/test_tab_contents.cc
+++ b/content/browser/tab_contents/test_tab_contents.cc
@@ -83,6 +83,10 @@ void TestTabContents::TestDidNavigateWithReferrer(
DidNavigate(render_view_host, params);
}
+WebPreferences TestTabContents::TestGetWebkitPrefs() {
+ return GetWebkitPrefs();
+}
+
bool TestTabContents::CreateRenderViewForRenderManager(
RenderViewHost* render_view_host) {
// This will go to a TestRenderViewHost.
@@ -137,6 +141,11 @@ void TestTabContents::CommitPendingNavigation() {
static_cast<RenderViewHostImpl*>(old_rvh)->OnSwapOutACK();
}
+int TestTabContents::GetNumberOfFocusCalls() {
+ NOTREACHED();
+ return 0;
+}
+
void TestTabContents::ProceedWithCrossSiteNavigation() {
if (!pending_rvh())
return;
« no previous file with comments | « content/browser/tab_contents/test_tab_contents.h ('k') | content/browser/tab_contents/web_drag_dest_mac_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698