| 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_TEST_BASE_BROWSER_WITH_TEST_WINDOW_TEST_H_ | 5 #ifndef CHROME_TEST_BASE_BROWSER_WITH_TEST_WINDOW_TEST_H_ |
| 6 #define CHROME_TEST_BASE_BROWSER_WITH_TEST_WINDOW_TEST_H_ | 6 #define CHROME_TEST_BASE_BROWSER_WITH_TEST_WINDOW_TEST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 class BrowserWithTestWindowTest : public testing::Test { | 56 class BrowserWithTestWindowTest : public testing::Test { |
| 57 public: | 57 public: |
| 58 BrowserWithTestWindowTest(); | 58 BrowserWithTestWindowTest(); |
| 59 virtual ~BrowserWithTestWindowTest(); | 59 virtual ~BrowserWithTestWindowTest(); |
| 60 | 60 |
| 61 virtual void SetUp() OVERRIDE; | 61 virtual void SetUp() OVERRIDE; |
| 62 virtual void TearDown() OVERRIDE; | 62 virtual void TearDown() OVERRIDE; |
| 63 | 63 |
| 64 // Returns the current RenderViewHost for the current tab as a | 64 // Returns the current RenderViewHost for the current tab as a |
| 65 // TestRenderViewHost. | 65 // TestRenderViewHost. |
| 66 TestRenderViewHost* TestRenderViewHostForTab( | 66 content::TestRenderViewHost* TestRenderViewHostForTab( |
| 67 content::WebContents* web_contents); | 67 content::WebContents* web_contents); |
| 68 | 68 |
| 69 protected: | 69 protected: |
| 70 TestBrowserWindow* window() const { return window_.get(); } | 70 TestBrowserWindow* window() const { return window_.get(); } |
| 71 void set_window(TestBrowserWindow* window) { | 71 void set_window(TestBrowserWindow* window) { |
| 72 window_.reset(window); | 72 window_.reset(window); |
| 73 } | 73 } |
| 74 | 74 |
| 75 Browser* browser() const { return browser_.get(); } | 75 Browser* browser() const { return browser_.get(); } |
| 76 void set_browser(Browser* browser) { | 76 void set_browser(Browser* browser) { |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 #if defined(USE_AURA) | 127 #if defined(USE_AURA) |
| 128 scoped_ptr<aura::RootWindow> root_window_; | 128 scoped_ptr<aura::RootWindow> root_window_; |
| 129 scoped_ptr<aura::test::TestActivationClient> test_activation_client_; | 129 scoped_ptr<aura::test::TestActivationClient> test_activation_client_; |
| 130 scoped_ptr<aura::test::TestStackingClient> test_stacking_client_; | 130 scoped_ptr<aura::test::TestStackingClient> test_stacking_client_; |
| 131 #endif | 131 #endif |
| 132 | 132 |
| 133 DISALLOW_COPY_AND_ASSIGN(BrowserWithTestWindowTest); | 133 DISALLOW_COPY_AND_ASSIGN(BrowserWithTestWindowTest); |
| 134 }; | 134 }; |
| 135 | 135 |
| 136 #endif // CHROME_TEST_BASE_BROWSER_WITH_TEST_WINDOW_TEST_H_ | 136 #endif // CHROME_TEST_BASE_BROWSER_WITH_TEST_WINDOW_TEST_H_ |
| OLD | NEW |