diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-24 05:42:46 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-24 05:42:46 +0000 |
commit | 55f59335f5983f427d3cad623034a6803a38c1ee (patch) | |
tree | 48deb522fa9431e2b939941f2741dd5f8145206d /ash/shell_unittest.cc | |
parent | 0d10f2cabb86eae1e0c71413b3c1b84ea77a75f2 (diff) | |
download | chromium_src-55f59335f5983f427d3cad623034a6803a38c1ee.zip chromium_src-55f59335f5983f427d3cad623034a6803a38c1ee.tar.gz chromium_src-55f59335f5983f427d3cad623034a6803a38c1ee.tar.bz2 |
Rename the aura_shell namespace to ash
http://crbug.com/108457
TEST=none
TBR=sky
Review URL: http://codereview.chromium.org/9033007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115748 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/shell_unittest.cc')
-rw-r--r-- | ash/shell_unittest.cc | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/ash/shell_unittest.cc b/ash/shell_unittest.cc index 1a6c6dc..0871ee8 100644 --- a/ash/shell_unittest.cc +++ b/ash/shell_unittest.cc @@ -15,7 +15,7 @@ #include "ui/views/widget/widget.h" #include "ui/views/widget/widget_delegate.h" -namespace aura_shell { +namespace ash { namespace { @@ -27,12 +27,12 @@ views::Widget* CreateTestWindow(const views::Widget::InitParams& params) { aura::Window* GetDefaultContainer() { return Shell::GetInstance()->GetContainer( - aura_shell::internal::kShellWindowId_DefaultContainer); + ash::internal::kShellWindowId_DefaultContainer); } aura::Window* GetAlwaysOnTopContainer() { return Shell::GetInstance()->GetContainer( - aura_shell::internal::kShellWindowId_AlwaysOnTopContainer); + ash::internal::kShellWindowId_AlwaysOnTopContainer); } void TestCreateWindow(views::Widget::InitParams::Type type, @@ -163,7 +163,7 @@ TEST_F(ShellTest, CreateModalWindow) { // It should be in modal container. aura::Window* modal_container = Shell::GetInstance()->GetContainer( - aura_shell::internal::kShellWindowId_ModalContainer); + ash::internal::kShellWindowId_ModalContainer); EXPECT_EQ(modal_container, modal_widget->GetNativeWindow()->parent()); modal_widget->Close(); @@ -183,14 +183,14 @@ TEST_F(ShellTest, CreateLockScreenModalWindow) { // Create a LockScreen window. views::Widget* lock_widget = CreateTestWindow(widget_params); - aura_shell::Shell::GetInstance()->GetContainer( - aura_shell::internal::kShellWindowId_LockScreenContainer)-> + ash::Shell::GetInstance()->GetContainer( + ash::internal::kShellWindowId_LockScreenContainer)-> AddChild(lock_widget->GetNativeView()); lock_widget->Show(); // It should be in LockScreen container. aura::Window* lock_screen = Shell::GetInstance()->GetContainer( - aura_shell::internal::kShellWindowId_LockScreenContainer); + ash::internal::kShellWindowId_LockScreenContainer); EXPECT_EQ(lock_screen, lock_widget->GetNativeWindow()->parent()); // Create a modal window with a lock window as parent. @@ -200,7 +200,7 @@ TEST_F(ShellTest, CreateLockScreenModalWindow) { // It should be in LockScreen modal container. aura::Window* lock_modal_container = Shell::GetInstance()->GetContainer( - aura_shell::internal::kShellWindowId_LockModalContainer); + ash::internal::kShellWindowId_LockModalContainer); EXPECT_EQ(lock_modal_container, lock_modal_widget->GetNativeWindow()->parent()); @@ -211,7 +211,7 @@ TEST_F(ShellTest, CreateLockScreenModalWindow) { // It should be in non-LockScreen modal container. aura::Window* modal_container = Shell::GetInstance()->GetContainer( - aura_shell::internal::kShellWindowId_ModalContainer); + ash::internal::kShellWindowId_ModalContainer); EXPECT_EQ(modal_container, modal_widget->GetNativeWindow()->parent()); modal_widget->Close(); @@ -242,8 +242,8 @@ TEST_F(ShellTest, IsScreenLocked) { // A lock screen window locks the screen. views::Widget* lock_widget = CreateTestWindow(widget_params); - aura_shell::Shell::GetInstance()->GetContainer( - aura_shell::internal::kShellWindowId_LockScreenContainer)-> + ash::Shell::GetInstance()->GetContainer( + ash::internal::kShellWindowId_LockScreenContainer)-> AddChild(lock_widget->GetNativeView()); lock_widget->Show(); EXPECT_TRUE(Shell::GetInstance()->IsScreenLocked()); @@ -284,9 +284,9 @@ TEST_F(ShellTest, DefaultToCompactWindowMode) { // Even for a small screen, the user can force normal mode. monitor_size.SetSize(800, 600); - command_line.AppendSwitchASCII(aura_shell::switches::kAuraWindowMode, - aura_shell::switches::kAuraWindowModeNormal); + command_line.AppendSwitchASCII(ash::switches::kAuraWindowMode, + ash::switches::kAuraWindowModeNormal); EXPECT_FALSE(shell->DefaultToCompactWindowMode(monitor_size, &command_line)); } -} // namespace aura_shell +} // namespace ash |