OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 ANDROID_WEBVIEW_BROWSER_TEST_RENDERING_TEST_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_TEST_RENDERING_TEST_H_ |
6 #define ANDROID_WEBVIEW_BROWSER_TEST_RENDERING_TEST_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_TEST_RENDERING_TEST_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "android_webview/browser/browser_view_renderer_client.h" | 10 #include "android_webview/browser/browser_view_renderer_client.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 namespace ui { | 32 namespace ui { |
33 class TouchHandleDrawable; | 33 class TouchHandleDrawable; |
34 } | 34 } |
35 | 35 |
36 namespace android_webview { | 36 namespace android_webview { |
37 | 37 |
38 class BrowserViewRenderer; | 38 class BrowserViewRenderer; |
39 class CompositorFrameConsumer; | 39 class CompositorFrameConsumer; |
40 class CompositorFrameProducer; | 40 class CompositorFrameProducer; |
41 class FakeWindow; | 41 class FakeWindow; |
42 class RenderThreadManager; | |
43 struct ParentCompositorDrawConstraints; | |
44 | 42 |
45 class RenderingTest : public testing::Test, | 43 class RenderingTest : public testing::Test, |
46 public BrowserViewRendererClient, | 44 public BrowserViewRendererClient, |
47 public WindowHooks { | 45 public WindowHooks { |
48 public: | 46 public: |
49 // BrowserViewRendererClient overrides. | 47 // BrowserViewRendererClient overrides. |
50 void OnNewPicture() override; | 48 void OnNewPicture() override; |
51 void PostInvalidate() override; | 49 void PostInvalidate() override; |
52 gfx::Point GetLocationOnScreen() override; | 50 gfx::Point GetLocationOnScreen() override; |
53 void ScrollContainerViewTo(const gfx::Vector2d& new_value) override {} | 51 void ScrollContainerViewTo(const gfx::Vector2d& new_value) override {} |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 DISALLOW_COPY_AND_ASSIGN(RenderingTest); | 104 DISALLOW_COPY_AND_ASSIGN(RenderingTest); |
107 }; | 105 }; |
108 | 106 |
109 #define RENDERING_TEST_F(TEST_FIXTURE_NAME) \ | 107 #define RENDERING_TEST_F(TEST_FIXTURE_NAME) \ |
110 TEST_F(TEST_FIXTURE_NAME, RunTest) { RunTest(); } \ | 108 TEST_F(TEST_FIXTURE_NAME, RunTest) { RunTest(); } \ |
111 class NeedsSemicolon##TEST_FIXTURE_NAME {} | 109 class NeedsSemicolon##TEST_FIXTURE_NAME {} |
112 | 110 |
113 } // namespace android_webview | 111 } // namespace android_webview |
114 | 112 |
115 #endif // ANDROID_WEBVIEW_BROWSER_TEST_RENDERING_TEST_H_ | 113 #endif // ANDROID_WEBVIEW_BROWSER_TEST_RENDERING_TEST_H_ |
OLD | NEW |