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

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

Issue 164193005: Refactors the auto-launch logic and adds tests for it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win error 2 Created 6 years, 10 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/app_list.gyp ('k') | ui/app_list/test/app_list_test_view_delegate.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_view_delegate.h
diff --git a/ui/app_list/test/app_list_test_view_delegate.h b/ui/app_list/test/app_list_test_view_delegate.h
index c723397c343ae79e16cb7995b915f8f91845dfee..dcf68770c89d7b295896eb02f6dcc23f765580e4 100644
--- a/ui/app_list/test/app_list_test_view_delegate.h
+++ b/ui/app_list/test/app_list_test_view_delegate.h
@@ -32,6 +32,10 @@ class AppListTestViewDelegate : public AppListViewDelegate {
users_ = users;
}
+ void set_auto_launch_timeout(const base::TimeDelta& timeout) {
+ auto_launch_timeout_ = timeout;
+ }
+
// Sets the signin status of the signin delegate, creating one if there isn't
// one already.
void SetSignedIn(bool signed_in);
@@ -54,7 +58,7 @@ class AppListTestViewDelegate : public AppListViewDelegate {
int action_index,
int event_flags) OVERRIDE {}
virtual base::TimeDelta GetAutoLaunchTimeout() OVERRIDE;
- virtual void AutoLaunchCanceled() OVERRIDE {}
+ virtual void AutoLaunchCanceled() OVERRIDE;
virtual void ViewInitialized() OVERRIDE {}
virtual void Dismiss() OVERRIDE;
virtual void ViewClosing() OVERRIDE {}
@@ -85,6 +89,7 @@ class AppListTestViewDelegate : public AppListViewDelegate {
scoped_ptr<AppListTestModel> model_;
ObserverList<AppListViewDelegateObserver> observers_;
SpeechUIModel speech_ui_;
+ base::TimeDelta auto_launch_timeout_;
DISALLOW_COPY_AND_ASSIGN(AppListTestViewDelegate);
};
« no previous file with comments | « ui/app_list/app_list.gyp ('k') | ui/app_list/test/app_list_test_view_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698