| OLD | NEW |
| 1 // Copyright (c) 2012 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 TabContents; |
| 13 typedef TabContents TabContentsWrapper; |
| 13 | 14 |
| 14 namespace content { | 15 namespace content { |
| 15 class WebContents; | 16 class WebContents; |
| 16 } | 17 } |
| 17 | 18 |
| 18 class TabContentsWrapperTestHarness : public ChromeRenderViewHostTestHarness { | 19 class TabContentsWrapperTestHarness : public ChromeRenderViewHostTestHarness { |
| 19 public: | 20 public: |
| 20 TabContentsWrapperTestHarness(); | 21 TabContentsWrapperTestHarness(); |
| 21 virtual ~TabContentsWrapperTestHarness(); | 22 virtual ~TabContentsWrapperTestHarness(); |
| 22 | 23 |
| 23 virtual content::WebContents* web_contents() OVERRIDE; | 24 virtual content::WebContents* web_contents() OVERRIDE; |
| 24 TabContentsWrapper* contents_wrapper(); | 25 TabContentsWrapper* contents_wrapper(); |
| 25 | 26 |
| 26 virtual void SetContents(content::WebContents* contents) OVERRIDE; | 27 virtual void SetContents(content::WebContents* contents) OVERRIDE; |
| 27 | 28 |
| 28 protected: | 29 protected: |
| 29 // testing::Test | 30 // testing::Test |
| 30 virtual void SetUp() OVERRIDE; | 31 virtual void SetUp() OVERRIDE; |
| 31 virtual void TearDown() OVERRIDE; | 32 virtual void TearDown() OVERRIDE; |
| 32 | 33 |
| 33 scoped_ptr<TabContentsWrapper> contents_wrapper_; | 34 scoped_ptr<TabContentsWrapper> contents_wrapper_; |
| 34 | 35 |
| 35 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapperTestHarness); | 36 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapperTestHarness); |
| 36 }; | 37 }; |
| 37 | 38 |
| 38 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TEST_TAB_CONTENTS_WRAPPER_H_ | 39 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TEST_TAB_CONTENTS_WRAPPER_H_ |
| OLD | NEW |