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

Side by Side Diff: chrome/browser/ui/ash/launcher/chrome_launcher_controller_browsertest.cc

Issue 2908333003: [mus+ash] Removes WmWindow from ash (app_list, frame, metrics, session, system, wallpaper) (Closed)
Patch Set: [mus ash] Removes WmWindow from ash (rebase, nits and cleanup of use of ResizeHandleWindowTargeter) Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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/chrome_launcher_controller.h" 5 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "ash/public/cpp/shelf_item_delegate.h" 9 #include "ash/public/cpp/shelf_item_delegate.h"
10 #include "ash/public/cpp/window_properties.h" 10 #include "ash/public/cpp/window_properties.h"
11 #include "ash/shelf/app_list_button.h" 11 #include "ash/shelf/app_list_button.h"
12 #include "ash/shelf/shelf.h" 12 #include "ash/shelf/shelf.h"
13 #include "ash/shelf/shelf_button.h" 13 #include "ash/shelf/shelf_button.h"
14 #include "ash/shelf/shelf_constants.h" 14 #include "ash/shelf/shelf_constants.h"
15 #include "ash/shelf/shelf_model.h" 15 #include "ash/shelf/shelf_model.h"
16 #include "ash/shelf/shelf_view.h" 16 #include "ash/shelf/shelf_view.h"
17 #include "ash/shelf/shelf_widget.h" 17 #include "ash/shelf/shelf_widget.h"
18 #include "ash/shell.h" 18 #include "ash/shell.h"
19 #include "ash/shell_port.h" 19 #include "ash/shell_port.h"
20 #include "ash/test/shelf_view_test_api.h" 20 #include "ash/test/shelf_view_test_api.h"
21 #include "ash/wm/window_state.h" 21 #include "ash/wm/window_state.h"
22 #include "ash/wm/window_util.h" 22 #include "ash/wm/window_util.h"
23 #include "ash/wm_window.h"
24 #include "base/macros.h" 23 #include "base/macros.h"
25 #include "base/run_loop.h" 24 #include "base/run_loop.h"
26 #include "base/strings/stringprintf.h" 25 #include "base/strings/stringprintf.h"
27 #include "base/strings/utf_string_conversions.h" 26 #include "base/strings/utf_string_conversions.h"
28 #include "build/build_config.h" 27 #include "build/build_config.h"
29 #include "chrome/browser/apps/app_browsertest_util.h" 28 #include "chrome/browser/apps/app_browsertest_util.h"
30 #include "chrome/browser/chrome_notification_types.h" 29 #include "chrome/browser/chrome_notification_types.h"
31 #include "chrome/browser/extensions/extension_apitest.h" 30 #include "chrome/browser/extensions/extension_apitest.h"
32 #include "chrome/browser/extensions/extension_browsertest.h" 31 #include "chrome/browser/extensions/extension_browsertest.h"
33 #include "chrome/browser/extensions/extension_function_test_utils.h" 32 #include "chrome/browser/extensions/extension_function_test_utils.h"
(...skipping 2461 matching lines...) Expand 10 before | Expand all | Expand 10 after
2495 2494
2496 // Close all windows via the menu item. 2495 // Close all windows via the menu item.
2497 CloseBrowserWindow(browser(), menu1.get(), LauncherContextMenu::MENU_CLOSE); 2496 CloseBrowserWindow(browser(), menu1.get(), LauncherContextMenu::MENU_CLOSE);
2498 EXPECT_EQ(0u, BrowserList::GetInstance()->size()); 2497 EXPECT_EQ(0u, BrowserList::GetInstance()->size());
2499 2498
2500 // Check if "Close" is removed from the context menu. 2499 // Check if "Close" is removed from the context menu.
2501 std::unique_ptr<LauncherContextMenu> menu2 = CreateBrowserItemContextMenu(); 2500 std::unique_ptr<LauncherContextMenu> menu2 = CreateBrowserItemContextMenu();
2502 ASSERT_FALSE( 2501 ASSERT_FALSE(
2503 IsItemPresentInMenu(menu2.get(), LauncherContextMenu::MENU_CLOSE)); 2502 IsItemPresentInMenu(menu2.get(), LauncherContextMenu::MENU_CLOSE));
2504 } 2503 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698