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

Unified Diff: ash/display/display_configuration_controller_unittest.cc

Issue 2790583004: Add second copy request after screen rotation to flatten the layers in animation. (Closed)
Patch Set: Do not observe screen rotation animator in display_configuration_controller. Created 3 years, 8 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: ash/display/display_configuration_controller_unittest.cc
diff --git a/ash/display/display_configuration_controller_unittest.cc b/ash/display/display_configuration_controller_unittest.cc
index d1658af667d8dfe07f2cece874d62e604384af25..c11a18127f9ff8e4a7f06e7125501fbc89dcb03f 100644
--- a/ash/display/display_configuration_controller_unittest.cc
+++ b/ash/display/display_configuration_controller_unittest.cc
@@ -14,7 +14,7 @@ namespace ash {
using DisplayConfigurationControllerTest = test::AshTestBase;
-TEST_F(DisplayConfigurationControllerTest, ErasesAnimatorOnAnimationEnded) {
+TEST_F(DisplayConfigurationControllerTest, KeepsAnimatorOnAnimationEnded) {
// TODO(wutao): needs display_configuration_controller
// http://crbug.com/686839.
if (Shell::GetAshConfig() == Config::MASH)
@@ -33,7 +33,7 @@ TEST_F(DisplayConfigurationControllerTest, ErasesAnimatorOnAnimationEnded) {
screen_rotation_animator->Rotate(
display::Display::ROTATE_90,
display::Display::RotationSource::ROTATION_SOURCE_USER);
- EXPECT_EQ(0, testapi.DisplayScreenRotationAnimatorMapSize());
+ EXPECT_EQ(1, testapi.DisplayScreenRotationAnimatorMapSize());
}
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698