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

Unified Diff: ash/display/resolution_notification_controller_unittest.cc

Issue 2799963003: Fix errors in display resolution change notifications (Closed)
Patch Set: Fix compile errors on non-cros systems 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 0c43487b3cb19da6d60520f3f70b1aee72598e51..81b978e8a2615a803b9ba96c29a0358199cdf111 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.

Powered by Google App Engine
This is Rietveld 408576698