OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "cc/test/fake_channel_impl.h" | 5 #include "cc/test/fake_channel_impl.h" |
6 #include "cc/test/fake_layer_tree_host.h" | 6 #include "cc/test/fake_layer_tree_host.h" |
7 #include "cc/test/fake_layer_tree_host_client.h" | 7 #include "cc/test/fake_layer_tree_host_client.h" |
8 #include "cc/test/proxy_impl_for_test.h" | 8 #include "cc/test/proxy_impl_for_test.h" |
9 #include "cc/test/test_hooks.h" | 9 #include "cc/test/test_hooks.h" |
10 #include "cc/test/test_task_graph_runner.h" | 10 #include "cc/test/test_task_graph_runner.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 ProxyImplForTest::Create(this, &channel_impl_, layer_tree_host_.get(), | 38 ProxyImplForTest::Create(this, &channel_impl_, layer_tree_host_.get(), |
39 task_runner_provider_, nullptr); | 39 task_runner_provider_, nullptr); |
40 } | 40 } |
41 } | 41 } |
42 | 42 |
43 TestTaskGraphRunner task_graph_runner_; | 43 TestTaskGraphRunner task_graph_runner_; |
44 LayerTreeSettings settings_; | 44 LayerTreeSettings settings_; |
45 FakeLayerTreeHostClient host_client_; | 45 FakeLayerTreeHostClient host_client_; |
46 FakeChannelImpl channel_impl_; | 46 FakeChannelImpl channel_impl_; |
47 TaskRunnerProvider* task_runner_provider_; | 47 TaskRunnerProvider* task_runner_provider_; |
48 scoped_ptr<ProxyImplForTest> proxy_impl_; | 48 std::unique_ptr<ProxyImplForTest> proxy_impl_; |
49 scoped_ptr<FakeLayerTreeHost> layer_tree_host_; | 49 std::unique_ptr<FakeLayerTreeHost> layer_tree_host_; |
50 }; | 50 }; |
51 | 51 |
52 // This is a regression test. See crbug/568120. | 52 // This is a regression test. See crbug/568120. |
53 TEST_F(ProxyImplTest, NonZeroSmoothnessPriorityExpiration) { | 53 TEST_F(ProxyImplTest, NonZeroSmoothnessPriorityExpiration) { |
54 Initialize(CompositorMode::THREADED); | 54 Initialize(CompositorMode::THREADED); |
55 DebugScopedSetImplThread impl_thread(task_runner_provider_); | 55 DebugScopedSetImplThread impl_thread(task_runner_provider_); |
56 EXPECT_FALSE( | 56 EXPECT_FALSE( |
57 proxy_impl_->smoothness_priority_expiration_notifier().delay().is_zero()); | 57 proxy_impl_->smoothness_priority_expiration_notifier().delay().is_zero()); |
58 } | 58 } |
59 | 59 |
60 } // namespace cc | 60 } // namespace cc |
OLD | NEW |