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

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

Issue 2917013002: mash: Move ShelfModel* to ash/public/cpp. (Closed)
Patch Set: Comment on AppList item init. 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/shelf_model.h"
10 #include "ash/public/cpp/window_properties.h" 11 #include "ash/public/cpp/window_properties.h"
11 #include "ash/shelf/app_list_button.h" 12 #include "ash/shelf/app_list_button.h"
12 #include "ash/shelf/shelf.h" 13 #include "ash/shelf/shelf.h"
13 #include "ash/shelf/shelf_button.h" 14 #include "ash/shelf/shelf_button.h"
14 #include "ash/shelf/shelf_constants.h" 15 #include "ash/shelf/shelf_constants.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 "base/macros.h" 23 #include "base/macros.h"
24 #include "base/run_loop.h" 24 #include "base/run_loop.h"
25 #include "base/strings/stringprintf.h" 25 #include "base/strings/stringprintf.h"
(...skipping 2478 matching lines...) Expand 10 before | Expand all | Expand 10 after
2504 2504
2505 // Chrome's ShelfModel should have AppList and browser items and delegates. 2505 // Chrome's ShelfModel should have AppList and browser items and delegates.
2506 IN_PROC_BROWSER_TEST_F(ShelfAppBrowserTest, ShelfModelInitialization) { 2506 IN_PROC_BROWSER_TEST_F(ShelfAppBrowserTest, ShelfModelInitialization) {
2507 ash::ShelfModel* model = controller_->shelf_model(); 2507 ash::ShelfModel* model = controller_->shelf_model();
2508 EXPECT_EQ(2, model->item_count()); 2508 EXPECT_EQ(2, model->item_count());
2509 EXPECT_EQ(ash::kAppListId, model->items()[0].id.app_id); 2509 EXPECT_EQ(ash::kAppListId, model->items()[0].id.app_id);
2510 EXPECT_TRUE(model->GetShelfItemDelegate(model->items()[0].id)); 2510 EXPECT_TRUE(model->GetShelfItemDelegate(model->items()[0].id));
2511 EXPECT_EQ(extension_misc::kChromeAppId, model->items()[1].id.app_id); 2511 EXPECT_EQ(extension_misc::kChromeAppId, model->items()[1].id.app_id);
2512 EXPECT_TRUE(model->GetShelfItemDelegate(model->items()[1].id)); 2512 EXPECT_TRUE(model->GetShelfItemDelegate(model->items()[1].id));
2513 } 2513 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698