OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/app_list/app_list_service_impl.h" | 5 #include "chrome/browser/ui/app_list/app_list_service_impl.h" |
6 | 6 |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
8 #include "base/prefs/pref_service.h" | |
9 #include "build/build_config.h" | 8 #include "build/build_config.h" |
10 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
11 #include "chrome/browser/profiles/profile_manager.h" | 10 #include "chrome/browser/profiles/profile_manager.h" |
12 #include "chrome/browser/ui/app_list/app_list_service.h" | 11 #include "chrome/browser/ui/app_list/app_list_service.h" |
13 #include "chrome/browser/ui/app_list/app_list_view_delegate.h" | 12 #include "chrome/browser/ui/app_list/app_list_view_delegate.h" |
14 #include "chrome/browser/ui/app_list/test/chrome_app_list_test_support.h" | 13 #include "chrome/browser/ui/app_list/test/chrome_app_list_test_support.h" |
15 #include "chrome/browser/ui/browser.h" | 14 #include "chrome/browser/ui/browser.h" |
16 #include "chrome/common/chrome_switches.h" | 15 #include "chrome/common/chrome_switches.h" |
17 #include "chrome/common/pref_names.h" | 16 #include "chrome/common/pref_names.h" |
18 #include "chrome/test/base/in_process_browser_test.h" | 17 #include "chrome/test/base/in_process_browser_test.h" |
| 18 #include "components/prefs/pref_service.h" |
19 #include "extensions/common/constants.h" | 19 #include "extensions/common/constants.h" |
20 #include "ui/app_list/app_list_item.h" | 20 #include "ui/app_list/app_list_item.h" |
21 #include "ui/app_list/app_list_model.h" | 21 #include "ui/app_list/app_list_model.h" |
22 #include "ui/base/models/menu_model.h" | 22 #include "ui/base/models/menu_model.h" |
23 | 23 |
24 namespace test { | 24 namespace test { |
25 | 25 |
26 // Test API to access private members of AppListServiceImpl. | 26 // Test API to access private members of AppListServiceImpl. |
27 class AppListServiceImplTestApi { | 27 class AppListServiceImplTestApi { |
28 public: | 28 public: |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 EXPECT_LT(0, num_items); | 178 EXPECT_LT(0, num_items); |
179 | 179 |
180 for (int i = 0; i < num_items; i++) { | 180 for (int i = 0; i < num_items; i++) { |
181 if (menu_model->GetTypeAt(i) == ui::MenuModel::TYPE_SEPARATOR) | 181 if (menu_model->GetTypeAt(i) == ui::MenuModel::TYPE_SEPARATOR) |
182 continue; | 182 continue; |
183 | 183 |
184 base::string16 label = menu_model->GetLabelAt(i); | 184 base::string16 label = menu_model->GetLabelAt(i); |
185 EXPECT_FALSE(label.empty()); | 185 EXPECT_FALSE(label.empty()); |
186 } | 186 } |
187 } | 187 } |
OLD | NEW |