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

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: 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
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 18bf3ffb797b7a8bb8e7fb9a9cacf4f9509760b4..6045dbd7003542f8bed5c55d962fe54c385f2b2b 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);
@@ -53,7 +57,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 {}
@@ -84,6 +88,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);
};

Powered by Google App Engine
This is Rietveld 408576698