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 #include <map> | 5 #include <map> |
6 #include <queue> | 6 #include <queue> |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "android_webview/browser/browser_view_renderer.h" | 9 #include "android_webview/browser/browser_view_renderer.h" |
10 #include "android_webview/browser/child_frame.h" | 10 #include "android_webview/browser/child_frame.h" |
11 #include "android_webview/browser/compositor_frame_consumer.h" | 11 #include "android_webview/browser/compositor_frame_consumer.h" |
12 #include "android_webview/browser/render_thread_manager.h" | 12 #include "android_webview/browser/render_thread_manager.h" |
13 #include "android_webview/browser/test/rendering_test.h" | 13 #include "android_webview/browser/test/rendering_test.h" |
14 #include "base/location.h" | 14 #include "base/location.h" |
| 15 #include "base/memory/ptr_util.h" |
15 #include "base/single_thread_task_runner.h" | 16 #include "base/single_thread_task_runner.h" |
16 #include "base/threading/thread_task_runner_handle.h" | 17 #include "base/threading/thread_task_runner_handle.h" |
17 #include "cc/output/compositor_frame.h" | 18 #include "cc/output/compositor_frame.h" |
18 #include "content/public/test/test_synchronous_compositor_android.h" | 19 #include "content/public/test/test_synchronous_compositor_android.h" |
19 | 20 |
20 namespace android_webview { | 21 namespace android_webview { |
21 | 22 |
22 class SmokeTest : public RenderingTest { | 23 class SmokeTest : public RenderingTest { |
23 void StartTest() override { | 24 void StartTest() override { |
24 browser_view_renderer_->PostInvalidate(ActiveCompositor()); | 25 browser_view_renderer_->PostInvalidate(ActiveCompositor()); |
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 } | 497 } |
497 | 498 |
498 private: | 499 private: |
499 std::unique_ptr<FakeFunctor> saved_functor_; | 500 std::unique_ptr<FakeFunctor> saved_functor_; |
500 CompositorFrameSinkResourceCountMap expected_return_count_; | 501 CompositorFrameSinkResourceCountMap expected_return_count_; |
501 }; | 502 }; |
502 | 503 |
503 RENDERING_TEST_F(RenderThreadManagerSwitchTest); | 504 RENDERING_TEST_F(RenderThreadManagerSwitchTest); |
504 | 505 |
505 } // namespace android_webview | 506 } // namespace android_webview |
OLD | NEW |