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

Unified Diff: cc/trees/layer_sorter_unittest.cc

Issue 951673002: Revert "Pull chromium at 2c3ffb2355a27c32f45e508ef861416b820c823b" (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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/trees/layer_sorter.cc ('k') | cc/trees/layer_tree_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_sorter_unittest.cc
diff --git a/cc/trees/layer_sorter_unittest.cc b/cc/trees/layer_sorter_unittest.cc
index 74d3cf5a2cf32bc9ffb9b5d2fa24bbf59767cb98..ba7765bd6fb19c94b29e966571eb1c6af4cdfa02 100644
--- a/cc/trees/layer_sorter_unittest.cc
+++ b/cc/trees/layer_sorter_unittest.cc
@@ -37,12 +37,12 @@ TEST(LayerSorterTest, BasicOverlap) {
overlap_result =
LayerSorter::CheckOverlap(&front, &back, z_threshold, &weight);
- EXPECT_EQ(LayerSorter::B_BEFORE_A, overlap_result);
+ EXPECT_EQ(LayerSorter::BBeforeA, overlap_result);
EXPECT_EQ(1.f, weight);
overlap_result =
LayerSorter::CheckOverlap(&back, &front, z_threshold, &weight);
- EXPECT_EQ(LayerSorter::A_BEFORE_B, overlap_result);
+ EXPECT_EQ(LayerSorter::ABeforeB, overlap_result);
EXPECT_EQ(1.f, weight);
// One layer translated off to the right. No overlap should be detected.
@@ -51,7 +51,7 @@ TEST(LayerSorterTest, BasicOverlap) {
LayerShape back_right(2.f, 2.f, right_translate);
overlap_result =
LayerSorter::CheckOverlap(&front, &back_right, z_threshold, &weight);
- EXPECT_EQ(LayerSorter::NONE, overlap_result);
+ EXPECT_EQ(LayerSorter::None, overlap_result);
// When comparing a layer with itself, z difference is always 0.
overlap_result =
@@ -80,7 +80,7 @@ TEST(LayerSorterTest, RightAngleOverlap) {
overlap_result =
LayerSorter::CheckOverlap(&front_face, &left_face, z_threshold, &weight);
- EXPECT_EQ(LayerSorter::B_BEFORE_A, overlap_result);
+ EXPECT_EQ(LayerSorter::BBeforeA, overlap_result);
}
TEST(LayerSorterTest, IntersectingLayerOverlap) {
@@ -107,7 +107,7 @@ TEST(LayerSorterTest, IntersectingLayerOverlap) {
&rotated_face,
z_threshold,
&weight);
- EXPECT_NE(LayerSorter::NONE, overlap_result);
+ EXPECT_NE(LayerSorter::None, overlap_result);
EXPECT_EQ(0.f, weight);
}
@@ -145,13 +145,13 @@ TEST(LayerSorterTest, LayersAtAngleOverlap) {
overlap_result =
LayerSorter::CheckOverlap(&layer_a, &layer_c, z_threshold, &weight);
- EXPECT_EQ(LayerSorter::A_BEFORE_B, overlap_result);
+ EXPECT_EQ(LayerSorter::ABeforeB, overlap_result);
overlap_result =
LayerSorter::CheckOverlap(&layer_c, &layer_b, z_threshold, &weight);
- EXPECT_EQ(LayerSorter::A_BEFORE_B, overlap_result);
+ EXPECT_EQ(LayerSorter::ABeforeB, overlap_result);
overlap_result =
LayerSorter::CheckOverlap(&layer_a, &layer_b, z_threshold, &weight);
- EXPECT_EQ(LayerSorter::NONE, overlap_result);
+ EXPECT_EQ(LayerSorter::None, overlap_result);
}
TEST(LayerSorterTest, LayersUnderPathologicalPerspectiveTransform) {
@@ -192,7 +192,7 @@ TEST(LayerSorterTest, LayersUnderPathologicalPerspectiveTransform) {
overlap_result =
LayerSorter::CheckOverlap(&layer_a, &layer_b, z_threshold, &weight);
- EXPECT_EQ(LayerSorter::A_BEFORE_B, overlap_result);
+ EXPECT_EQ(LayerSorter::ABeforeB, overlap_result);
}
TEST(LayerSorterTest, VerifyExistingOrderingPreservedWhenNoZDiff) {
« no previous file with comments | « cc/trees/layer_sorter.cc ('k') | cc/trees/layer_tree_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698