diff options
Diffstat (limited to 'chromium/ash/wm/app_list_controller_unittest.cc')
-rw-r--r-- | chromium/ash/wm/app_list_controller_unittest.cc | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/chromium/ash/wm/app_list_controller_unittest.cc b/chromium/ash/wm/app_list_controller_unittest.cc deleted file mode 100644 index 5d370489334..00000000000 --- a/chromium/ash/wm/app_list_controller_unittest.cc +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2013 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#include "ash/shell.h" -#include "ash/shell_window_ids.h" -#include "ash/test/ash_test_base.h" -#include "ash/test/test_shell_delegate.h" -#include "ash/wm/window_util.h" -#include "base/memory/scoped_ptr.h" -#include "ui/aura/test/test_windows.h" -#include "ui/aura/window.h" - -namespace ash { - -typedef test::AshTestBase AppListControllerTest; - -// Tests that app launcher hides when focus moves to a normal window. -TEST_F(AppListControllerTest, HideOnFocusOut) { - Shell::GetInstance()->ToggleAppList(NULL); - EXPECT_TRUE(Shell::GetInstance()->GetAppListTargetVisibility()); - - scoped_ptr<aura::Window> window(CreateTestWindowInShellWithId(0)); - wm::ActivateWindow(window.get()); - - EXPECT_FALSE(Shell::GetInstance()->GetAppListTargetVisibility()); -} - -// Tests that app launcher remains visible when focus is moved to a different -// window in kShellWindowId_AppListContainer. -TEST_F(AppListControllerTest, RemainVisibleWhenFocusingToApplistContainer) { - Shell::GetInstance()->ToggleAppList(NULL); - EXPECT_TRUE(Shell::GetInstance()->GetAppListTargetVisibility()); - - aura::Window* applist_container = Shell::GetContainer( - Shell::GetPrimaryRootWindow(), - internal::kShellWindowId_AppListContainer); - scoped_ptr<aura::Window> window( - aura::test::CreateTestWindowWithId(0, applist_container)); - wm::ActivateWindow(window.get()); - - EXPECT_TRUE(Shell::GetInstance()->GetAppListTargetVisibility()); -} - -} // namespace ash |