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

Unified Diff: ui/app_list/test/app_list_test_model.h

Issue 23709003: Display an app's short name in the app launcher (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed compilation errors in app list unit tests on mac Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/app_list/cocoa/apps_grid_controller_unittest.mm ('k') | ui/app_list/test/app_list_test_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/test/app_list_test_model.h
diff --git a/ui/app_list/test/app_list_test_model.h b/ui/app_list/test/app_list_test_model.h
index b918bcf6180d3b1782e4b28f2a7e2e2ab745ba3e..decd907140303bc8dcf7fc928d106fa7c5154137 100644
--- a/ui/app_list/test/app_list_test_model.h
+++ b/ui/app_list/test/app_list_test_model.h
@@ -29,7 +29,14 @@ class AppListTestModel : public AppListModel {
// Get a string of all apps in |model| joined with ','.
std::string GetModelContent();
- AppListItemModel* CreateItem(const std::string& title);
+ AppListItemModel* CreateItem(const std::string& title,
+ const std::string& full_name);
+
+ // Add an item with arbitrary |title| and |full_name| to the model.
+ void AddItem(const std::string& title, const std::string& full_name);
+
+ // Add an item with arbitrary |title| to the model. This is a convenience
+ // version which will use the title for the full_name.
void AddItem(const std::string& title);
// Call SetHighlighted on the specified item.
« no previous file with comments | « ui/app_list/cocoa/apps_grid_controller_unittest.mm ('k') | ui/app_list/test/app_list_test_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698