| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef UI_APP_LIST_TEST_APP_LIST_TEST_VIEW_DELEGATE_H_ | 5 #ifndef UI_APP_LIST_TEST_APP_LIST_TEST_VIEW_DELEGATE_H_ |
| 6 #define UI_APP_LIST_TEST_APP_LIST_TEST_VIEW_DELEGATE_H_ | 6 #define UI_APP_LIST_TEST_APP_LIST_TEST_VIEW_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 class AppListTestModel; | 24 class AppListTestModel; |
| 25 | 25 |
| 26 // A concrete AppListViewDelegate for unit tests. | 26 // A concrete AppListViewDelegate for unit tests. |
| 27 class AppListTestViewDelegate : public AppListViewDelegate { | 27 class AppListTestViewDelegate : public AppListViewDelegate { |
| 28 public: | 28 public: |
| 29 AppListTestViewDelegate(); | 29 AppListTestViewDelegate(); |
| 30 ~AppListTestViewDelegate() override; | 30 ~AppListTestViewDelegate() override; |
| 31 | 31 |
| 32 int dismiss_count() { return dismiss_count_; } | 32 int dismiss_count() { return dismiss_count_; } |
| 33 int open_search_result_count() { return open_search_result_count_; } | 33 int open_search_result_count() { return open_search_result_count_; } |
| 34 std::map<size_t, int> open_search_result_counts() { | 34 std::map<size_t, int> open_search_result_counts() const { |
| 35 return open_search_result_counts_; | 35 return open_search_result_counts_; |
| 36 } | 36 } |
| 37 | 37 |
| 38 // Sets the number of apps that the model will be created with the next time | 38 // Sets the number of apps that the model will be created with the next time |
| 39 // SetProfileByPath() is called. | 39 // SetProfileByPath() is called. |
| 40 void set_next_profile_app_count(int apps) { next_profile_app_count_ = apps; } | 40 void set_next_profile_app_count(int apps) { next_profile_app_count_ = apps; } |
| 41 | 41 |
| 42 void set_auto_launch_timeout(const base::TimeDelta& timeout) { | 42 void set_auto_launch_timeout(const base::TimeDelta& timeout) { |
| 43 auto_launch_timeout_ = timeout; | 43 auto_launch_timeout_ = timeout; |
| 44 } | 44 } |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 SpeechUIModel speech_ui_; | 88 SpeechUIModel speech_ui_; |
| 89 base::TimeDelta auto_launch_timeout_; | 89 base::TimeDelta auto_launch_timeout_; |
| 90 | 90 |
| 91 DISALLOW_COPY_AND_ASSIGN(AppListTestViewDelegate); | 91 DISALLOW_COPY_AND_ASSIGN(AppListTestViewDelegate); |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 } // namespace test | 94 } // namespace test |
| 95 } // namespace app_list | 95 } // namespace app_list |
| 96 | 96 |
| 97 #endif // UI_APP_LIST_TEST_APP_LIST_TEST_VIEW_DELEGATE_H_ | 97 #endif // UI_APP_LIST_TEST_APP_LIST_TEST_VIEW_DELEGATE_H_ |
| OLD | NEW |