| 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_TEST_TEST_RENDER_VIEW_HOST_H_ | 5 #ifndef CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ |
| 6 #define CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ | 6 #define CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 }; | 274 }; |
| 275 | 275 |
| 276 #if defined(COMPILER_MSVC) | 276 #if defined(COMPILER_MSVC) |
| 277 #pragma warning(pop) | 277 #pragma warning(pop) |
| 278 #endif | 278 #endif |
| 279 | 279 |
| 280 // Adds methods to get straight at the impl classes. | 280 // Adds methods to get straight at the impl classes. |
| 281 class RenderViewHostImplTestHarness : public RenderViewHostTestHarness { | 281 class RenderViewHostImplTestHarness : public RenderViewHostTestHarness { |
| 282 public: | 282 public: |
| 283 RenderViewHostImplTestHarness(); | 283 RenderViewHostImplTestHarness(); |
| 284 virtual ~RenderViewHostImplTestHarness(); | 284 ~RenderViewHostImplTestHarness() override; |
| 285 | 285 |
| 286 // contents() is equivalent to static_cast<TestWebContents*>(web_contents()) | 286 // contents() is equivalent to static_cast<TestWebContents*>(web_contents()) |
| 287 TestWebContents* contents(); | 287 TestWebContents* contents(); |
| 288 | 288 |
| 289 // RVH/RFH getters are shorthand for oft-used bits of web_contents(). | 289 // RVH/RFH getters are shorthand for oft-used bits of web_contents(). |
| 290 | 290 |
| 291 // test_rvh() is equivalent to any of the following: | 291 // test_rvh() is equivalent to any of the following: |
| 292 // contents()->GetMainFrame()->GetRenderViewHost() | 292 // contents()->GetMainFrame()->GetRenderViewHost() |
| 293 // contents()->GetRenderViewHost() | 293 // contents()->GetRenderViewHost() |
| 294 // static_cast<TestRenderViewHost*>(rvh()) | 294 // static_cast<TestRenderViewHost*>(rvh()) |
| (...skipping 24 matching lines...) Expand all Loading... |
| 319 private: | 319 private: |
| 320 typedef scoped_ptr<ui::test::ScopedSetSupportedScaleFactors> | 320 typedef scoped_ptr<ui::test::ScopedSetSupportedScaleFactors> |
| 321 ScopedSetSupportedScaleFactors; | 321 ScopedSetSupportedScaleFactors; |
| 322 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; | 322 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; |
| 323 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); | 323 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); |
| 324 }; | 324 }; |
| 325 | 325 |
| 326 } // namespace content | 326 } // namespace content |
| 327 | 327 |
| 328 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ | 328 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |