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

Side by Side Diff: cc/trees/layer_tree_host_unittest_serialization.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: 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
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/trees/layer_tree_host.h" 5 #include "cc/trees/layer_tree_host.h"
6 6
7 #include "cc/layers/heads_up_display_layer.h" 7 #include "cc/layers/heads_up_display_layer.h"
8 #include "cc/layers/layer.h" 8 #include "cc/layers/layer.h"
9 #include "cc/proto/layer.pb.h" 9 #include "cc/proto/layer.pb.h"
10 #include "cc/proto/layer_tree_host.pb.h" 10 #include "cc/proto/layer_tree_host.pb.h"
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 layer_src_root->AddChild(layer_src_c); 342 layer_src_root->AddChild(layer_src_c);
343 layer_src_c->AddChild(layer_src_d); 343 layer_src_c->AddChild(layer_src_d);
344 344
345 VerifySerializationAndDeserialization(); 345 VerifySerializationAndDeserialization();
346 VerifyHostHasAllExpectedLayersInTree(layer_tree_host_dst_->root_layer()); 346 VerifyHostHasAllExpectedLayersInTree(layer_tree_host_dst_->root_layer());
347 } 347 }
348 348
349 private: 349 private:
350 TestTaskGraphRunner task_graph_runner_src_; 350 TestTaskGraphRunner task_graph_runner_src_;
351 FakeLayerTreeHostClient client_src_; 351 FakeLayerTreeHostClient client_src_;
352 scoped_ptr<LayerTreeHost> layer_tree_host_src_; 352 std::unique_ptr<LayerTreeHost> layer_tree_host_src_;
353 353
354 TestTaskGraphRunner task_graph_runner_dst_; 354 TestTaskGraphRunner task_graph_runner_dst_;
355 FakeLayerTreeHostClient client_dst_; 355 FakeLayerTreeHostClient client_dst_;
356 scoped_ptr<LayerTreeHost> layer_tree_host_dst_; 356 std::unique_ptr<LayerTreeHost> layer_tree_host_dst_;
357 }; 357 };
358 358
359 TEST_F(LayerTreeHostSerializationTest, AllMembersChanged) { 359 TEST_F(LayerTreeHostSerializationTest, AllMembersChanged) {
360 RunAllMembersChangedTest(); 360 RunAllMembersChangedTest();
361 } 361 }
362 362
363 TEST_F(LayerTreeHostSerializationTest, LayersChanged) { 363 TEST_F(LayerTreeHostSerializationTest, LayersChanged) {
364 RunLayersChangedTest(); 364 RunLayersChangedTest();
365 } 365 }
366 366
367 TEST_F(LayerTreeHostSerializationTest, LayersChangedMultipleSerializations) { 367 TEST_F(LayerTreeHostSerializationTest, LayersChangedMultipleSerializations) {
368 RunLayersChangedMultipleSerializations(); 368 RunLayersChangedMultipleSerializations();
369 } 369 }
370 370
371 TEST_F(LayerTreeHostSerializationTest, AddAndRemoveNodeFromLayerTree) { 371 TEST_F(LayerTreeHostSerializationTest, AddAndRemoveNodeFromLayerTree) {
372 RunAddAndRemoveNodeFromLayerTree(); 372 RunAddAndRemoveNodeFromLayerTree();
373 } 373 }
374 374
375 } // namespace cc 375 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698