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

Unified Diff: cc/input/layer_selection_bound_unittest.cc

Issue 2030033003: Replace cc::ViewportSelectionBound with gfx::SelectionBound (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android build compiles locally Created 4 years, 6 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
Index: cc/input/layer_selection_bound_unittest.cc
diff --git a/cc/input/layer_selection_bound_unittest.cc b/cc/input/layer_selection_bound_unittest.cc
index e1ad56b53b8de39b2279760fc07e3d13d02779fe..25a9f25808874a91a0febd87eaf45ed1278c6f3a 100644
--- a/cc/input/layer_selection_bound_unittest.cc
+++ b/cc/input/layer_selection_bound_unittest.cc
@@ -30,29 +30,29 @@ void VerifySerializeAndDeserializeLayerSelectionProto(
TEST(LayerSelectionBoundTest, AllTypePermutations) {
LayerSelectionBound bound;
- bound.type = SelectionBoundType::SELECTION_BOUND_LEFT;
+ bound.type = gfx::SelectionBound::LEFT;
bound.edge_top = gfx::Point(3, 14);
bound.edge_bottom = gfx::Point(6, 28);
bound.layer_id = 42;
VerifySerializeAndDeserializeProto(bound);
- bound.type = SelectionBoundType::SELECTION_BOUND_RIGHT;
+ bound.type = gfx::SelectionBound::RIGHT;
VerifySerializeAndDeserializeProto(bound);
- bound.type = SelectionBoundType::SELECTION_BOUND_CENTER;
+ bound.type = gfx::SelectionBound::CENTER;
VerifySerializeAndDeserializeProto(bound);
- bound.type = SelectionBoundType::SELECTION_BOUND_EMPTY;
+ bound.type = gfx::SelectionBound::EMPTY;
VerifySerializeAndDeserializeProto(bound);
}
TEST(LayerSelectionTest, AllSelectionPermutations) {
LayerSelectionBound start;
- start.type = SelectionBoundType::SELECTION_BOUND_LEFT;
+ start.type = gfx::SelectionBound::LEFT;
start.edge_top = gfx::Point(3, 14);
start.edge_bottom = gfx::Point(6, 28);
start.layer_id = 42;
LayerSelectionBound end;
- end.type = SelectionBoundType::SELECTION_BOUND_RIGHT;
+ end.type = gfx::SelectionBound::RIGHT;
end.edge_top = gfx::Point(14, 3);
end.edge_bottom = gfx::Point(28, 6);
end.layer_id = 24;

Powered by Google App Engine
This is Rietveld 408576698