OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/ui/ash/launcher/launcher_context_menu.h" | 5 #include "chrome/browser/ui/ash/launcher/launcher_context_menu.h" |
6 | 6 |
| 7 #include "ash/common/shelf/shelf_item_types.h" |
| 8 #include "ash/common/shelf/shelf_model.h" |
7 #include "ash/shelf/shelf.h" | 9 #include "ash/shelf/shelf.h" |
8 #include "ash/shelf/shelf_item_types.h" | |
9 #include "ash/shelf/shelf_model.h" | |
10 #include "ash/shell.h" | 10 #include "ash/shell.h" |
11 #include "ash/test/ash_test_base.h" | 11 #include "ash/test/ash_test_base.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "chrome/app/chrome_command_ids.h" | 13 #include "chrome/app/chrome_command_ids.h" |
14 #include "chrome/browser/prefs/incognito_mode_prefs.h" | 14 #include "chrome/browser/prefs/incognito_mode_prefs.h" |
15 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
16 #include "chrome/browser/ui/app_list/arc/arc_app_test.h" | 16 #include "chrome/browser/ui/app_list/arc/arc_app_test.h" |
17 #include "chrome/browser/ui/ash/launcher/arc_launcher_context_menu.h" | 17 #include "chrome/browser/ui/ash/launcher/arc_launcher_context_menu.h" |
18 #include "chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controll
er.h" | 18 #include "chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controll
er.h" |
19 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h" | 19 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h" |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 arc_test().app_instance()->SendTaskCreated(1, arc_test().fake_apps()[0]); | 190 arc_test().app_instance()->SendTaskCreated(1, arc_test().fake_apps()[0]); |
191 menu.reset(new ArcLauncherContextMenu(controller(), &item, shelf)); | 191 menu.reset(new ArcLauncherContextMenu(controller(), &item, shelf)); |
192 | 192 |
193 EXPECT_FALSE( | 193 EXPECT_FALSE( |
194 IsItemPresentInMenu(menu.get(), LauncherContextMenu::MENU_OPEN_NEW)); | 194 IsItemPresentInMenu(menu.get(), LauncherContextMenu::MENU_OPEN_NEW)); |
195 EXPECT_TRUE(IsItemPresentInMenu(menu.get(), LauncherContextMenu::MENU_PIN)); | 195 EXPECT_TRUE(IsItemPresentInMenu(menu.get(), LauncherContextMenu::MENU_PIN)); |
196 EXPECT_TRUE(menu->IsCommandIdEnabled(LauncherContextMenu::MENU_PIN)); | 196 EXPECT_TRUE(menu->IsCommandIdEnabled(LauncherContextMenu::MENU_PIN)); |
197 EXPECT_TRUE(IsItemPresentInMenu(menu.get(), LauncherContextMenu::MENU_CLOSE)); | 197 EXPECT_TRUE(IsItemPresentInMenu(menu.get(), LauncherContextMenu::MENU_CLOSE)); |
198 EXPECT_TRUE(menu->IsCommandIdEnabled(LauncherContextMenu::MENU_CLOSE)); | 198 EXPECT_TRUE(menu->IsCommandIdEnabled(LauncherContextMenu::MENU_CLOSE)); |
199 } | 199 } |
OLD | NEW |