| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/chromeos/display/display_preferences.h" | 5 #include "chrome/browser/chromeos/display/display_preferences.h" |
| 6 | 6 |
| 7 #include "ash/display/display_controller.h" | 7 #include "ash/display/display_controller.h" |
| 8 #include "ash/display/display_layout_store.h" | 8 #include "ash/display/display_layout_store.h" |
| 9 #include "ash/display/display_manager.h" | 9 #include "ash/display/display_manager.h" |
| 10 #include "ash/display/resolution_notification_controller.h" | 10 #include "ash/display/resolution_notification_controller.h" |
| 11 #include "ash/screen_util.h" | 11 #include "ash/screen_util.h" |
| 12 #include "ash/shell.h" | 12 #include "ash/shell.h" |
| 13 #include "ash/test/ash_test_base.h" | 13 #include "ash/test/ash_test_base.h" |
| 14 #include "base/prefs/scoped_user_pref_update.h" | 14 #include "base/prefs/scoped_user_pref_update.h" |
| 15 #include "base/prefs/testing_pref_service.h" | 15 #include "base/prefs/testing_pref_service.h" |
| 16 #include "base/strings/string_number_conversions.h" | 16 #include "base/strings/string_number_conversions.h" |
| 17 #include "base/values.h" | 17 #include "base/values.h" |
| 18 #include "chrome/browser/chromeos/display/display_configuration_observer.h" | 18 #include "chrome/browser/chromeos/display/display_configuration_observer.h" |
| 19 #include "chrome/browser/chromeos/login/mock_user_manager.h" | 19 #include "chrome/browser/chromeos/login/mock_user_manager.h" |
| 20 #include "chrome/browser/chromeos/login/user_manager.h" | 20 #include "chrome/browser/chromeos/login/user_manager.h" |
| 21 #include "chrome/common/pref_names.h" | 21 #include "chrome/common/pref_names.h" |
| 22 #include "chrome/test/base/testing_browser_process.h" | 22 #include "chrome/test/base/testing_browser_process.h" |
| 23 #include "chromeos/display/output_configurator.h" | 23 #include "ui/display/chromeos/output_configurator.h" |
| 24 #include "ui/message_center/message_center.h" | 24 #include "ui/message_center/message_center.h" |
| 25 | 25 |
| 26 using ash::internal::ResolutionNotificationController; | 26 using ash::internal::ResolutionNotificationController; |
| 27 | 27 |
| 28 namespace chromeos { | 28 namespace chromeos { |
| 29 namespace { | 29 namespace { |
| 30 const char kPrimaryIdKey[] = "primary-id"; | 30 const char kPrimaryIdKey[] = "primary-id"; |
| 31 const char kMirroredKey[] = "mirrored"; | 31 const char kMirroredKey[] = "mirrored"; |
| 32 const char kPositionKey[] = "position"; | 32 const char kPositionKey[] = "position"; |
| 33 const char kOffsetKey[] = "offset"; | 33 const char kOffsetKey[] = "offset"; |
| (...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 555 local_state()->GetString(prefs::kDisplayPowerState)); | 555 local_state()->GetString(prefs::kDisplayPowerState)); |
| 556 | 556 |
| 557 // Don't try to load | 557 // Don't try to load |
| 558 local_state()->SetString(prefs::kDisplayPowerState, "all_off"); | 558 local_state()->SetString(prefs::kDisplayPowerState, "all_off"); |
| 559 LoadDisplayPreferences(false); | 559 LoadDisplayPreferences(false); |
| 560 EXPECT_EQ(chromeos::DISPLAY_POWER_INTERNAL_OFF_EXTERNAL_ON, | 560 EXPECT_EQ(chromeos::DISPLAY_POWER_INTERNAL_OFF_EXTERNAL_ON, |
| 561 shell->output_configurator()->power_state()); | 561 shell->output_configurator()->power_state()); |
| 562 } | 562 } |
| 563 | 563 |
| 564 } // namespace chromeos | 564 } // namespace chromeos |
| OLD | NEW |