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

Unified Diff: cc/layers/layer_unittest.cc

Issue 2185973005: cc: Move solid color scrollbar layer data in a seperate struct. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: .. Created 4 years, 5 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 | « no previous file | cc/layers/picture_layer.h » ('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 adc789400088ebb229c23f1374bba10f3b884bed..a0f483136cc8d445454dbf29cfafe9da5189ca02 100644
--- a/cc/layers/layer_unittest.cc
+++ b/cc/layers/layer_unittest.cc
@@ -389,16 +389,24 @@ class LayerSerializationTest : public testing::Test {
deserialized_scrollbar->FromLayerSpecificPropertiesProto(
serialized_scrollbar);
- EXPECT_EQ(source_scrollbar->track_start_,
- deserialized_scrollbar->track_start_);
- EXPECT_EQ(source_scrollbar->thumb_thickness_,
- deserialized_scrollbar->thumb_thickness_);
- EXPECT_EQ(source_scrollbar->scroll_layer_id_,
- deserialized_scrollbar->scroll_layer_id_);
- EXPECT_EQ(source_scrollbar->is_left_side_vertical_scrollbar_,
- deserialized_scrollbar->is_left_side_vertical_scrollbar_);
- EXPECT_EQ(source_scrollbar->orientation_,
- deserialized_scrollbar->orientation_);
+ EXPECT_EQ(source_scrollbar->solid_color_scrollbar_layer_inputs_.track_start,
+ deserialized_scrollbar->solid_color_scrollbar_layer_inputs_
+ .track_start);
+ EXPECT_EQ(
+ source_scrollbar->solid_color_scrollbar_layer_inputs_.thumb_thickness,
+ deserialized_scrollbar->solid_color_scrollbar_layer_inputs_
+ .thumb_thickness);
+ EXPECT_EQ(
+ source_scrollbar->solid_color_scrollbar_layer_inputs_.scroll_layer_id,
+ deserialized_scrollbar->solid_color_scrollbar_layer_inputs_
+ .scroll_layer_id);
+ EXPECT_EQ(source_scrollbar->solid_color_scrollbar_layer_inputs_
+ .is_left_side_vertical_scrollbar,
+ deserialized_scrollbar->solid_color_scrollbar_layer_inputs_
+ .is_left_side_vertical_scrollbar);
+ EXPECT_EQ(source_scrollbar->solid_color_scrollbar_layer_inputs_.orientation,
+ deserialized_scrollbar->solid_color_scrollbar_layer_inputs_
+ .orientation);
deserialized_scrollbar->SetLayerTreeHost(nullptr);
}
« no previous file with comments | « no previous file | cc/layers/picture_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698