| 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_RENDER_VIEW_TEST_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ |
| 6 #define CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ | 6 #define CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 public: | 54 public: |
| 55 // A special BlinkPlatformImpl class with overrides that are useful for | 55 // A special BlinkPlatformImpl class with overrides that are useful for |
| 56 // RenderViewTest. | 56 // RenderViewTest. |
| 57 class RendererBlinkPlatformImplTestOverride { | 57 class RendererBlinkPlatformImplTestOverride { |
| 58 public: | 58 public: |
| 59 RendererBlinkPlatformImplTestOverride(); | 59 RendererBlinkPlatformImplTestOverride(); |
| 60 ~RendererBlinkPlatformImplTestOverride(); | 60 ~RendererBlinkPlatformImplTestOverride(); |
| 61 blink::Platform* Get() const; | 61 blink::Platform* Get() const; |
| 62 void Shutdown(); | 62 void Shutdown(); |
| 63 | 63 |
| 64 using WebURLLoaderFactory = base::Callback<blink::WebURLLoader*()>; |
| 65 |
| 66 void SetWebURLLoaderFactory(const WebURLLoaderFactory& factory); |
| 67 |
| 64 private: | 68 private: |
| 65 std::unique_ptr<scheduler::RendererScheduler> renderer_scheduler_; | 69 std::unique_ptr<scheduler::RendererScheduler> renderer_scheduler_; |
| 66 std::unique_ptr<RendererBlinkPlatformImplTestOverrideImpl> | 70 std::unique_ptr<RendererBlinkPlatformImplTestOverrideImpl> |
| 67 blink_platform_impl_; | 71 blink_platform_impl_; |
| 68 }; | 72 }; |
| 69 | 73 |
| 70 RenderViewTest(); | 74 RenderViewTest(); |
| 71 ~RenderViewTest() override; | 75 ~RenderViewTest() override; |
| 72 | 76 |
| 73 protected: | 77 protected: |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 std::unique_ptr<base::mac::ScopedNSAutoreleasePool> autorelease_pool_; | 217 std::unique_ptr<base::mac::ScopedNSAutoreleasePool> autorelease_pool_; |
| 214 #endif | 218 #endif |
| 215 | 219 |
| 216 private: | 220 private: |
| 217 void GoToOffset(int offset, const GURL& url, const PageState& state); | 221 void GoToOffset(int offset, const GURL& url, const PageState& state); |
| 218 }; | 222 }; |
| 219 | 223 |
| 220 } // namespace content | 224 } // namespace content |
| 221 | 225 |
| 222 #endif // CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ | 226 #endif // CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ |
| OLD | NEW |