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

Unified Diff: chrome/browser/ui/tab_contents/test_tab_contents.h

Issue 10542010: TabContentsWrapper -> TabContents, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, rename Created 8 years, 6 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.h
diff --git a/chrome/browser/ui/tab_contents/test_tab_contents.h b/chrome/browser/ui/tab_contents/test_tab_contents.h
new file mode 100644
index 0000000000000000000000000000000000000000..99d599be2df277f859d4ae9477b6ed3e76f51178
--- /dev/null
+++ b/chrome/browser/ui/tab_contents/test_tab_contents.h
@@ -0,0 +1,38 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_TAB_CONTENTS_TEST_TAB_CONTENTS_H_
+#define CHROME_BROWSER_UI_TAB_CONTENTS_TEST_TAB_CONTENTS_H_
+#pragma once
+
+#include "base/compiler_specific.h"
+#include "chrome/test/base/chrome_render_view_host_test_harness.h"
+
+class TabContents;
+
+namespace content {
+class WebContents;
+}
+
+class TabContentsTestHarness : public ChromeRenderViewHostTestHarness {
+ public:
+ TabContentsTestHarness();
+ virtual ~TabContentsTestHarness();
+
+ virtual content::WebContents* web_contents() OVERRIDE;
+ TabContents* tab_contents();
+
+ virtual void SetContents(content::WebContents* contents) OVERRIDE;
+
+ protected:
+ // testing::Test
+ virtual void SetUp() OVERRIDE;
+ virtual void TearDown() OVERRIDE;
+
+ scoped_ptr<TabContents> tab_contents_;
+
+ DISALLOW_COPY_AND_ASSIGN(TabContentsTestHarness);
+};
+
+#endif // CHROME_BROWSER_UI_TAB_CONTENTS_TEST_TAB_CONTENTS_H_
« no previous file with comments | « chrome/browser/ui/tab_contents/tab_contents_iterator_unittest.cc ('k') | chrome/browser/ui/tab_contents/test_tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698