| 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 CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ |
| 6 #define CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ | 6 #define CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "content/public/browser/render_frame_host.h" | 10 #include "content/public/browser/render_frame_host.h" |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 // Cover for |contents()->NavigateAndCommit(url)|. See | 196 // Cover for |contents()->NavigateAndCommit(url)|. See |
| 197 // WebContentsTester::NavigateAndCommit for details. | 197 // WebContentsTester::NavigateAndCommit for details. |
| 198 void NavigateAndCommit(const GURL& url); | 198 void NavigateAndCommit(const GURL& url); |
| 199 | 199 |
| 200 // Simulates a reload of the current page. | 200 // Simulates a reload of the current page. |
| 201 void Reload(); | 201 void Reload(); |
| 202 void FailedReload(); | 202 void FailedReload(); |
| 203 | 203 |
| 204 protected: | 204 protected: |
| 205 // testing::Test | 205 // testing::Test |
| 206 virtual void SetUp() OVERRIDE; | 206 virtual void SetUp() override; |
| 207 virtual void TearDown() OVERRIDE; | 207 virtual void TearDown() override; |
| 208 | 208 |
| 209 // Derived classes should override this method to use a custom BrowserContext. | 209 // Derived classes should override this method to use a custom BrowserContext. |
| 210 // It is invoked by SetUp after threads were started. | 210 // It is invoked by SetUp after threads were started. |
| 211 // RenderViewHostTestHarness will take ownership of the returned | 211 // RenderViewHostTestHarness will take ownership of the returned |
| 212 // BrowserContext. | 212 // BrowserContext. |
| 213 virtual BrowserContext* CreateBrowserContext(); | 213 virtual BrowserContext* CreateBrowserContext(); |
| 214 | 214 |
| 215 // Configures which TestBrowserThreads inside |thread_bundle| are backed by | 215 // Configures which TestBrowserThreads inside |thread_bundle| are backed by |
| 216 // real threads. Must be called before SetUp(). | 216 // real threads. Must be called before SetUp(). |
| 217 void SetThreadBundleOptions(int options) { | 217 void SetThreadBundleOptions(int options) { |
| (...skipping 24 matching lines...) Expand all Loading... |
| 242 | 242 |
| 243 int thread_bundle_options_; | 243 int thread_bundle_options_; |
| 244 scoped_ptr<TestBrowserThreadBundle> thread_bundle_; | 244 scoped_ptr<TestBrowserThreadBundle> thread_bundle_; |
| 245 | 245 |
| 246 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); | 246 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); |
| 247 }; | 247 }; |
| 248 | 248 |
| 249 } // namespace content | 249 } // namespace content |
| 250 | 250 |
| 251 #endif // CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ | 251 #endif // CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ |
| OLD | NEW |