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

Unified Diff: ash/display/resolution_notification_controller_unittest.cc

Issue 2799963003: Fix errors in display resolution change notifications (Closed)
Patch Set: Update commit message 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/resolution_notification_controller_unittest.cc
diff --git a/ash/display/resolution_notification_controller_unittest.cc b/ash/display/resolution_notification_controller_unittest.cc
index 977eaccc1483b1026cc9c45a24716e31d5cffdca..b1064f98ae2e20ad7af041500db8f64e60a9480b 100644
--- a/ash/display/resolution_notification_controller_unittest.cc
+++ b/ash/display/resolution_notification_controller_unittest.cc
@@ -66,12 +66,10 @@ class ResolutionNotificationControllerTest : public ash::test::AshTestBase {
old_mode->native(), old_mode->ui_scale(),
old_mode->device_scale_factor()));
- if (display_manager()->SetDisplayMode(display.id(), new_mode)) {
- controller()->PrepareNotification(
- display.id(), old_mode, new_mode,
- base::Bind(&ResolutionNotificationControllerTest::OnAccepted,
- base::Unretained(this)));
- }
+ EXPECT_TRUE(controller()->PrepareNotificationAndSetDisplayMode(
+ display.id(), old_mode, new_mode,
+ base::Bind(&ResolutionNotificationControllerTest::OnAccepted,
+ base::Unretained(this))));
// OnConfigurationChanged event won't be emitted in the test environment,
// so invoke UpdateDisplay() to emit that event explicitly.
« no previous file with comments | « ash/display/resolution_notification_controller.cc ('k') | chrome/browser/chromeos/display/display_preferences_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698