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

Unified Diff: ash/system/chromeos/tray_display_unittest.cc

Issue 138003007: [Cleanup] Screen cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make sure screen_for_shutdown is reset everytime Created 6 years, 11 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
« no previous file with comments | « ash/shell/toplevel_window.cc ('k') | ash/system/tray/tray_background_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/chromeos/tray_display_unittest.cc
diff --git a/ash/system/chromeos/tray_display_unittest.cc b/ash/system/chromeos/tray_display_unittest.cc
index 647c5196f21d6f36fa0bb68efb657cda7d252223..ab0f18501f4f23df68857fcd20541579c2635a22 100644
--- a/ash/system/chromeos/tray_display_unittest.cc
+++ b/ash/system/chromeos/tray_display_unittest.cc
@@ -6,7 +6,7 @@
#include "ash/display/display_manager.h"
#include "ash/root_window_controller.h"
-#include "ash/screen_ash.h"
+#include "ash/screen_util.h"
#include "ash/shell.h"
#include "ash/system/tray/system_tray.h"
#include "ash/test/ash_test_base.h"
@@ -61,7 +61,7 @@ base::string16 GetFirstDisplayName() {
base::string16 GetSecondDisplayName() {
return base::UTF8ToUTF16(
Shell::GetInstance()->display_manager()->GetDisplayNameForId(
- ScreenAsh::GetSecondaryDisplay().id()));
+ ScreenUtil::GetSecondaryDisplay().id()));
}
base::string16 GetMirroredDisplayName() {
@@ -263,7 +263,7 @@ TEST_F(TrayDisplayTest, InternalDisplayResized) {
// Closed lid mode.
display_manager->SetSoftwareMirroring(false);
UpdateDisplay("400x400@1.5,200x200");
- gfx::Display::SetInternalDisplayId(ScreenAsh::GetSecondaryDisplay().id());
+ gfx::Display::SetInternalDisplayId(ScreenUtil::GetSecondaryDisplay().id());
UpdateDisplay("400x400@1.5");
tray()->ShowDefaultView(BUBBLE_USE_EXISTING);
EXPECT_TRUE(IsDisplayVisibleInTray());
@@ -286,7 +286,7 @@ TEST_F(TrayDisplayTest, ExternalDisplayResized) {
// Extended
UpdateDisplay("400x400,200x200@1.5");
- const gfx::Display& secondary_display = ScreenAsh::GetSecondaryDisplay();
+ const gfx::Display& secondary_display = ScreenUtil::GetSecondaryDisplay();
tray()->ShowDefaultView(BUBBLE_USE_EXISTING);
EXPECT_TRUE(IsDisplayVisibleInTray());
@@ -339,7 +339,7 @@ TEST_F(TrayDisplayTest, OverscanDisplay) {
// reset the overscan.
display_manager->SetOverscanInsets(
- ScreenAsh::GetSecondaryDisplay().id(), gfx::Insets());
+ ScreenUtil::GetSecondaryDisplay().id(), gfx::Insets());
headline = l10n_util::GetStringFUTF16(
IDS_ASH_STATUS_TRAY_DISPLAY_EXTENDED,
l10n_util::GetStringFUTF16(
@@ -496,7 +496,7 @@ TEST_F(TrayDisplayTest, DisplayNotifications) {
// Enters closed lid mode.
UpdateDisplay("400x400@1.5,200x200");
- gfx::Display::SetInternalDisplayId(ScreenAsh::GetSecondaryDisplay().id());
+ gfx::Display::SetInternalDisplayId(ScreenUtil::GetSecondaryDisplay().id());
UpdateDisplay("400x400@1.5");
EXPECT_EQ(l10n_util::GetStringUTF16(IDS_ASH_STATUS_TRAY_DISPLAY_DOCKED),
GetDisplayNotificationText());
« no previous file with comments | « ash/shell/toplevel_window.cc ('k') | ash/system/tray/tray_background_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698