| Index: chrome/browser/chromeos/display/display_preferences_unittest.cc
|
| diff --git a/chrome/browser/chromeos/display/display_preferences_unittest.cc b/chrome/browser/chromeos/display/display_preferences_unittest.cc
|
| index 0f17f5d3c05fcf3d5f22352a23d7779f41212e74..4c63885fab6fb8b18728a45ff6318b1ee1e7a7a0 100644
|
| --- a/chrome/browser/chromeos/display/display_preferences_unittest.cc
|
| +++ b/chrome/browser/chromeos/display/display_preferences_unittest.cc
|
| @@ -191,7 +191,7 @@ TEST_F(DisplayPreferencesTest, PairedLayoutOverrides) {
|
| LoadDisplayPreferences(true);
|
| // DisplayPowerState should be ignored at boot.
|
| EXPECT_EQ(chromeos::DISPLAY_POWER_ALL_ON,
|
| - shell->display_configurator()->power_state());
|
| + shell->display_configurator()->requested_power_state());
|
|
|
| shell->display_manager()->UpdateDisplays();
|
| // Check if the layout settings are notified to the system properly.
|
| @@ -623,7 +623,8 @@ TEST_F(DisplayPreferencesTest, DisplayPowerStateAfterRestart) {
|
| chromeos::DISPLAY_POWER_INTERNAL_OFF_EXTERNAL_ON);
|
| LoadDisplayPreferences(false);
|
| EXPECT_EQ(chromeos::DISPLAY_POWER_INTERNAL_OFF_EXTERNAL_ON,
|
| - ash::Shell::GetInstance()->display_configurator()->power_state());
|
| + ash::Shell::GetInstance()->display_configurator()->
|
| + requested_power_state());
|
| }
|
|
|
| TEST_F(DisplayPreferencesTest, DontSaveAndRestoreAllOff) {
|
| @@ -633,12 +634,12 @@ TEST_F(DisplayPreferencesTest, DontSaveAndRestoreAllOff) {
|
| LoadDisplayPreferences(false);
|
| // DisplayPowerState should be ignored at boot.
|
| EXPECT_EQ(chromeos::DISPLAY_POWER_INTERNAL_OFF_EXTERNAL_ON,
|
| - shell->display_configurator()->power_state());
|
| + shell->display_configurator()->requested_power_state());
|
|
|
| StoreDisplayPowerStateForTest(
|
| chromeos::DISPLAY_POWER_ALL_OFF);
|
| EXPECT_EQ(chromeos::DISPLAY_POWER_INTERNAL_OFF_EXTERNAL_ON,
|
| - shell->display_configurator()->power_state());
|
| + shell->display_configurator()->requested_power_state());
|
| EXPECT_EQ("internal_off_external_on",
|
| local_state()->GetString(prefs::kDisplayPowerState));
|
|
|
| @@ -646,7 +647,7 @@ TEST_F(DisplayPreferencesTest, DontSaveAndRestoreAllOff) {
|
| local_state()->SetString(prefs::kDisplayPowerState, "all_off");
|
| LoadDisplayPreferences(false);
|
| EXPECT_EQ(chromeos::DISPLAY_POWER_INTERNAL_OFF_EXTERNAL_ON,
|
| - shell->display_configurator()->power_state());
|
| + shell->display_configurator()->requested_power_state());
|
| }
|
|
|
| // Tests that display configuration changes caused by MaximizeModeController
|
|
|