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

Unified Diff: cc/layers/layer_position_constraint_unittest.cc

Issue 2646623002: cc: Remove all blimp code from cc. (Closed)
Patch Set: test build Created 3 years, 11 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_position_constraint.cc ('k') | cc/layers/layer_sticky_position_constraint.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_position_constraint_unittest.cc
diff --git a/cc/layers/layer_position_constraint_unittest.cc b/cc/layers/layer_position_constraint_unittest.cc
index b4bea8e2c44c90c86e9e0a01bfb5c45b3b8a5481..fb0b80586e0e67666ae231d77b6caf477dc2b392 100644
--- a/cc/layers/layer_position_constraint_unittest.cc
+++ b/cc/layers/layer_position_constraint_unittest.cc
@@ -9,7 +9,6 @@
#include "cc/animation/animation_host.h"
#include "cc/layers/layer.h"
#include "cc/layers/layer_impl.h"
-#include "cc/proto/layer_position_constraint.pb.h"
#include "cc/test/fake_layer_tree_host.h"
#include "cc/test/fake_proxy.h"
#include "cc/test/geometry_test_utils.h"
@@ -1147,31 +1146,5 @@ TEST_F(LayerPositionConstraintTest,
fixed_child_impl->DrawTransform());
}
-void VerifySerializeAndDeserializeProto(bool is_fixed_position,
- bool is_fixed_to_right_edge,
- bool is_fixed_to_bottom_edge) {
- LayerPositionConstraint constraint;
- constraint.set_is_fixed_position(is_fixed_position);
- constraint.set_is_fixed_to_right_edge(is_fixed_to_right_edge);
- constraint.set_is_fixed_to_bottom_edge(is_fixed_to_bottom_edge);
- proto::LayerPositionConstraint proto;
- constraint.ToProtobuf(&proto);
-
- LayerPositionConstraint constraint2;
- constraint2.FromProtobuf(proto);
- EXPECT_EQ(constraint, constraint2);
-}
-
-TEST(LayerPositionConstraintSerializationTest, SerializeAndDeserializeProto) {
- VerifySerializeAndDeserializeProto(true, true, true);
- VerifySerializeAndDeserializeProto(true, true, false);
- VerifySerializeAndDeserializeProto(true, false, true);
- VerifySerializeAndDeserializeProto(true, false, false);
- VerifySerializeAndDeserializeProto(false, true, true);
- VerifySerializeAndDeserializeProto(false, true, false);
- VerifySerializeAndDeserializeProto(false, false, true);
- VerifySerializeAndDeserializeProto(false, false, false);
-}
-
} // namespace
} // namespace cc
« no previous file with comments | « cc/layers/layer_position_constraint.cc ('k') | cc/layers/layer_sticky_position_constraint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698