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

Unified Diff: cc/layers/layer_unittest.cc

Issue 2860293002: Change cc::ElementId to be a uint64_t (Closed)
Patch Set: Merge branch 'master' into secondaryid Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/layer_impl_unittest.cc ('k') | cc/test/animation_timelines_test_common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_unittest.cc
diff --git a/cc/layers/layer_unittest.cc b/cc/layers/layer_unittest.cc
index 1a227ca01aeb877cc50b945bcdd2676d320102d6..e6ef4d578fcda4b15003f8f44942b1254bbfee30 100644
--- a/cc/layers/layer_unittest.cc
+++ b/cc/layers/layer_unittest.cc
@@ -929,7 +929,7 @@ TEST_F(LayerTest, CheckPropertyChangeCausesCorrectBehavior) {
gfx::Rect(10, 10)));
EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetForceRenderSurfaceForTesting(true));
EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetHideLayerAndSubtree(true));
- EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetElementId(ElementId(2, 0)));
+ EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetElementId(ElementId(2)));
EXPECT_SET_NEEDS_COMMIT(
1, test_layer->SetMutableProperties(MutableProperty::kTransform));
@@ -1385,7 +1385,7 @@ TEST_F(LayerTest, AnimationSchedulesLayerUpdate) {
// though currently there is no good place for this unittest to go. Move to
// LayerTreeHost unittest when there is a good setup.
scoped_refptr<Layer> layer = Layer::Create();
- layer->SetElementId(ElementId(2, 0));
+ layer->SetElementId(ElementId(2));
EXPECT_SET_NEEDS_FULL_TREE_SYNC(1, layer_tree_host_->SetRootLayer(layer));
auto element_id = layer->element_id();
@@ -1419,7 +1419,7 @@ TEST_F(LayerTest, ElementIdAndMutablePropertiesArePushed) {
EXPECT_CALL(*layer_tree_host_, SetNeedsCommit()).Times(2);
- test_layer->SetElementId(ElementId(2, 0));
+ test_layer->SetElementId(ElementId(2));
test_layer->SetMutableProperties(MutableProperty::kTransform);
EXPECT_FALSE(impl_layer->element_id());
@@ -1427,7 +1427,7 @@ TEST_F(LayerTest, ElementIdAndMutablePropertiesArePushed) {
test_layer->PushPropertiesTo(impl_layer.get());
- EXPECT_EQ(ElementId(2, 0), impl_layer->element_id());
+ EXPECT_EQ(ElementId(2), impl_layer->element_id());
EXPECT_EQ(MutableProperty::kTransform, impl_layer->mutable_properties());
}
« no previous file with comments | « cc/layers/layer_impl_unittest.cc ('k') | cc/test/animation_timelines_test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698