OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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" |
11 #include "chrome/test/base/test_browser_window.h" | 11 #include "chrome/test/base/test_browser_window.h" |
| 12 #include "chrome/test/base/testing_browser_process_test.h" |
12 #include "chrome/test/base/testing_profile.h" | 13 #include "chrome/test/base/testing_profile.h" |
13 #include "chrome/test/testing_browser_process_test.h" | |
14 #include "content/browser/browser_thread.h" | 14 #include "content/browser/browser_thread.h" |
15 #include "content/browser/renderer_host/test_render_view_host.h" | 15 #include "content/browser/renderer_host/test_render_view_host.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 | 17 |
18 class GURL; | 18 class GURL; |
19 class NavigationController; | 19 class NavigationController; |
20 | 20 |
21 // Base class for browser based unit tests. BrowserWithTestWindowTest creates a | 21 // Base class for browser based unit tests. BrowserWithTestWindowTest creates a |
22 // Browser with a TestingProfile and TestBrowserWindow. To add a tab use | 22 // Browser with a TestingProfile and TestBrowserWindow. To add a tab use |
23 // AddTestingTab. For example, the following adds a tab and navigates to | 23 // AddTestingTab. For example, the following adds a tab and navigates to |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 scoped_ptr<TestBrowserWindow> window_; | 104 scoped_ptr<TestBrowserWindow> window_; |
105 scoped_ptr<Browser> browser_; | 105 scoped_ptr<Browser> browser_; |
106 | 106 |
107 MockRenderProcessHostFactory rph_factory_; | 107 MockRenderProcessHostFactory rph_factory_; |
108 TestRenderViewHostFactory rvh_factory_; | 108 TestRenderViewHostFactory rvh_factory_; |
109 | 109 |
110 DISALLOW_COPY_AND_ASSIGN(BrowserWithTestWindowTest); | 110 DISALLOW_COPY_AND_ASSIGN(BrowserWithTestWindowTest); |
111 }; | 111 }; |
112 | 112 |
113 #endif // CHROME_TEST_BASE_BROWSER_WITH_TEST_WINDOW_TEST_H_ | 113 #endif // CHROME_TEST_BASE_BROWSER_WITH_TEST_WINDOW_TEST_H_ |
OLD | NEW |