| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 void SetContents(WebContents* contents); | 234 void SetContents(WebContents* contents); |
| 235 | 235 |
| 236 // Creates a new test-enabled WebContents. Ownership passes to the | 236 // Creates a new test-enabled WebContents. Ownership passes to the |
| 237 // caller. | 237 // caller. |
| 238 WebContents* CreateTestWebContents(); | 238 WebContents* CreateTestWebContents(); |
| 239 | 239 |
| 240 // Cover for |contents()->NavigateAndCommit(url)|. See | 240 // Cover for |contents()->NavigateAndCommit(url)|. See |
| 241 // WebContentsTester::NavigateAndCommit for details. | 241 // WebContentsTester::NavigateAndCommit for details. |
| 242 void NavigateAndCommit(const GURL& url); | 242 void NavigateAndCommit(const GURL& url); |
| 243 | 243 |
| 244 void SetSimulateUsedDataReductionProxy(bool enabled); |
| 245 |
| 244 // Simulates a reload of the current page. | 246 // Simulates a reload of the current page. |
| 245 void Reload(); | 247 void Reload(); |
| 246 void FailedReload(); | 248 void FailedReload(); |
| 247 | 249 |
| 248 protected: | 250 protected: |
| 249 // testing::Test | 251 // testing::Test |
| 250 void SetUp() override; | 252 void SetUp() override; |
| 251 void TearDown() override; | 253 void TearDown() override; |
| 252 | 254 |
| 253 // Derived classes should override this method to use a custom BrowserContext. | 255 // Derived classes should override this method to use a custom BrowserContext. |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 scoped_ptr<aura::test::AuraTestHelper> aura_test_helper_; | 290 scoped_ptr<aura::test::AuraTestHelper> aura_test_helper_; |
| 289 #endif | 291 #endif |
| 290 RenderViewHostTestEnabler rvh_test_enabler_; | 292 RenderViewHostTestEnabler rvh_test_enabler_; |
| 291 | 293 |
| 292 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); | 294 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); |
| 293 }; | 295 }; |
| 294 | 296 |
| 295 } // namespace content | 297 } // namespace content |
| 296 | 298 |
| 297 #endif // CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ | 299 #endif // CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ |
| OLD | NEW |