OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 <memory> | 5 #include <memory> |
6 | 6 |
7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
8 #include "base/thread_task_runner_handle.h" | 8 #include "base/threading/thread_task_runner_handle.h" |
9 #include "cc/test/fake_image_serialization_processor.h" | 9 #include "cc/test/fake_image_serialization_processor.h" |
10 #include "cc/test/test_task_graph_runner.h" | 10 #include "cc/test/test_task_graph_runner.h" |
11 #include "cc/trees/layer_tree_host.h" | 11 #include "cc/trees/layer_tree_host.h" |
12 #include "cc/trees/layer_tree_host_client.h" | 12 #include "cc/trees/layer_tree_host_client.h" |
13 #include "cc/trees/proxy_common.h" | 13 #include "cc/trees/proxy_common.h" |
14 #include "cc/trees/proxy_main.h" | 14 #include "cc/trees/proxy_main.h" |
15 #include "cc/trees/remote_proto_channel.h" | 15 #include "cc/trees/remote_proto_channel.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 | 17 |
18 namespace cc { | 18 namespace cc { |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 begin_frame_state.reset(new BeginMainFrameAndCommitState()); | 92 begin_frame_state.reset(new BeginMainFrameAndCommitState()); |
93 begin_frame_state->scroll_info.reset(new ScrollAndScaleSet()); | 93 begin_frame_state->scroll_info.reset(new ScrollAndScaleSet()); |
94 | 94 |
95 static_cast<ProxyMain*>(layer_tree_host_->proxy()) | 95 static_cast<ProxyMain*>(layer_tree_host_->proxy()) |
96 ->BeginMainFrame(std::move(begin_frame_state)); | 96 ->BeginMainFrame(std::move(begin_frame_state)); |
97 EXPECT_EQ(calls_received_, 1); | 97 EXPECT_EQ(calls_received_, 1); |
98 } | 98 } |
99 | 99 |
100 } // namespace | 100 } // namespace |
101 } // namespace cc | 101 } // namespace cc |
OLD | NEW |