| 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_
|
|
|