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

Unified Diff: chrome/browser/ui/tab_contents/test_tab_contents_wrapper.cc

Issue 6720050: Make contents settable in RVHTH. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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: chrome/browser/ui/tab_contents/test_tab_contents_wrapper.cc
diff --git a/chrome/browser/ui/tab_contents/test_tab_contents_wrapper.cc b/chrome/browser/ui/tab_contents/test_tab_contents_wrapper.cc
index 28aa5a448081fa00f31851804e835983d011cf82..8ae1173cd6a82e6447707cc303dbbd3643d588bb 100644
--- a/chrome/browser/ui/tab_contents/test_tab_contents_wrapper.cc
+++ b/chrome/browser/ui/tab_contents/test_tab_contents_wrapper.cc
@@ -23,8 +23,12 @@ TabContentsWrapper* TabContentsWrapperTestHarness::contents_wrapper() {
return contents_wrapper_.get();
}
+void TabContentsWrapperTestHarness::SetContents(TestTabContents* contents) {
+ contents_wrapper_.reset(new TabContentsWrapper(contents));
+}
+
void TabContentsWrapperTestHarness::SetUp() {
- contents_wrapper_.reset(new TabContentsWrapper(CreateTestTabContents()));
+ SetContents(CreateTestTabContents());
}
void TabContentsWrapperTestHarness::TearDown() {
« no previous file with comments | « chrome/browser/ui/tab_contents/test_tab_contents_wrapper.h ('k') | content/browser/renderer_host/test_render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698