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

Side by Side Diff: chrome/browser/ui/tab_contents/test_tab_contents_wrapper.h

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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_TAB_CONTENTS_TEST_TAB_CONTENTS_WRAPPER_H_ 5 #ifndef CHROME_BROWSER_UI_TAB_CONTENTS_TEST_TAB_CONTENTS_WRAPPER_H_
6 #define CHROME_BROWSER_UI_TAB_CONTENTS_TEST_TAB_CONTENTS_WRAPPER_H_ 6 #define CHROME_BROWSER_UI_TAB_CONTENTS_TEST_TAB_CONTENTS_WRAPPER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "chrome/test/base/chrome_render_view_host_test_harness.h" 10 #include "chrome/test/base/chrome_render_view_host_test_harness.h"
11 11
12 class TabContentsWrapper; 12 class TabContentsWrapper;
13 13
14 namespace content {
15 class WebContents;
16 }
17
14 class TabContentsWrapperTestHarness : public ChromeRenderViewHostTestHarness { 18 class TabContentsWrapperTestHarness : public ChromeRenderViewHostTestHarness {
15 public: 19 public:
16 TabContentsWrapperTestHarness(); 20 TabContentsWrapperTestHarness();
17 virtual ~TabContentsWrapperTestHarness(); 21 virtual ~TabContentsWrapperTestHarness();
18 22
19 virtual TestTabContents* contents() OVERRIDE; 23 virtual content::WebContents* web_contents() OVERRIDE;
20 TabContentsWrapper* contents_wrapper(); 24 TabContentsWrapper* contents_wrapper();
21 25
22 virtual void SetContents(TestTabContents* contents) OVERRIDE; 26 virtual void SetContents(content::WebContents* contents) OVERRIDE;
23 27
24 protected: 28 protected:
25 // testing::Test 29 // testing::Test
26 virtual void SetUp() OVERRIDE; 30 virtual void SetUp() OVERRIDE;
27 virtual void TearDown() OVERRIDE; 31 virtual void TearDown() OVERRIDE;
28 32
29 scoped_ptr<TabContentsWrapper> contents_wrapper_; 33 scoped_ptr<TabContentsWrapper> contents_wrapper_;
30 34
31 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapperTestHarness); 35 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapperTestHarness);
32 }; 36 };
33 37
34 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TEST_TAB_CONTENTS_WRAPPER_H_ 38 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TEST_TAB_CONTENTS_WRAPPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/select_file_dialog.cc ('k') | chrome/browser/ui/tab_contents/test_tab_contents_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698