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

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

Issue 9645003: Introduce abstractions to allow embedders to test RenderViewHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head. 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.h
diff --git a/content/browser/tab_contents/test_tab_contents.h b/content/browser/tab_contents/test_tab_contents.h
index 9842038b89f3f383b2c8b3e97b68237ef6f50d29..74096274233cad4bf84716d61bdd110c99b0fecd 100644
--- a/content/browser/tab_contents/test_tab_contents.h
+++ b/content/browser/tab_contents/test_tab_contents.h
@@ -13,18 +13,23 @@
class SiteInstanceImpl;
namespace content {
+class RenderViewHost;
class TestRenderViewHost;
}
-// Subclass TabContents to ensure it creates TestRenderViewHosts and does
-// not do anything involving views.
+// Subclass TabContents to ensure it creates TestRenderViewHosts
+// and does not do anything involving views.
class TestTabContents : public TabContents {
public:
TestTabContents(content::BrowserContext* browser_context,
content::SiteInstance* instance);
virtual ~TestTabContents();
- content::TestRenderViewHost* pending_rvh() const;
+ content::RenderViewHost* pending_rvh() const;
+
+ // TODO(joi): Make sure this one is hidden once TestTabContents
+ // hides internal types from embedders.
+ content::TestRenderViewHost* pending_test_rvh() const;
// State accessor.
bool cross_navigation_pending() {
« no previous file with comments | « content/browser/tab_contents/tab_contents_unittest.cc ('k') | content/browser/tab_contents/test_tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698