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

Unified Diff: ui/app_list/cocoa/apps_search_results_controller_unittest.mm

Issue 19460003: One-click install for the OSX App Launcher Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Cleaner, more future-proof Created 6 years, 11 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
Index: ui/app_list/cocoa/apps_search_results_controller_unittest.mm
diff --git a/ui/app_list/cocoa/apps_search_results_controller_unittest.mm b/ui/app_list/cocoa/apps_search_results_controller_unittest.mm
index dec1b1fc4674fd36f807127a30d8a0e0065c3cb2..1b01e5ef8f4169a492e04581072ad91c84681f7f 100644
--- a/ui/app_list/cocoa/apps_search_results_controller_unittest.mm
+++ b/ui/app_list/cocoa/apps_search_results_controller_unittest.mm
@@ -22,6 +22,8 @@
app_list::test::AppListTestModel appListModel_;
app_list::SearchResult* lastOpenedResult_;
int redoSearchCount_;
+ app_list::SearchResult* resultForLastInvokedAction_;
+ int lastInvokedActinIndex_;
}
@property(readonly, nonatomic) app_list::SearchResult* lastOpenedResult;
@@ -52,6 +54,12 @@
base::MessageLoop::current()->QuitNow();
}
+- (void)invokeResultAction:(app_list::SearchResult*)result
+ atIndex:(int)actionIndex {
+ resultForLastInvokedAction_ = result;
+ lastInvokedActinIndex_ = actionIndex;
+}
+
@end
namespace app_list {
« no previous file with comments | « ui/app_list/cocoa/apps_search_results_controller.mm ('k') | ui/app_list/cocoa/apps_search_results_model_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698