Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Side by Side Diff: cc/trees/proxy_impl_unittest.cc

Issue 1866203004: Convert //cc from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptrcc: rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/trees/proxy_impl.cc ('k') | cc/trees/proxy_main.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « cc/trees/proxy_impl.cc ('k') | cc/trees/proxy_main.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698