OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CHROME_BROWSER_TASK_MANAGEMENT_TASK_MANAGEMENT_BROWSERTEST_UTIL_H_ | 5 #ifndef CHROME_BROWSER_TASK_MANAGEMENT_TASK_MANAGEMENT_BROWSERTEST_UTIL_H_ |
6 #define CHROME_BROWSER_TASK_MANAGEMENT_TASK_MANAGEMENT_BROWSERTEST_UTIL_H_ | 6 #define CHROME_BROWSER_TASK_MANAGEMENT_TASK_MANAGEMENT_BROWSERTEST_UTIL_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "chrome/browser/task_management/providers/task_provider_observer.h" | 9 #include "chrome/browser/task_management/providers/task_provider_observer.h" |
9 #include "chrome/browser/task_management/providers/web_contents/web_contents_tag
s_manager.h" | 10 #include "chrome/browser/task_management/providers/web_contents/web_contents_tag
s_manager.h" |
10 #include "chrome/browser/task_management/providers/web_contents/web_contents_tas
k_provider.h" | 11 #include "chrome/browser/task_management/providers/web_contents/web_contents_tas
k_provider.h" |
11 | 12 |
12 namespace task_management { | 13 namespace task_management { |
13 | 14 |
14 // Defines a test class that will act as a task manager that is designed to | 15 // Defines a test class that will act as a task manager that is designed to |
15 // only observe the WebContents-based tasks. | 16 // only observe the WebContents-based tasks. |
16 class MockWebContentsTaskManager : public TaskProviderObserver { | 17 class MockWebContentsTaskManager : public TaskProviderObserver { |
17 public: | 18 public: |
(...skipping 13 matching lines...) Expand all Loading... |
31 private: | 32 private: |
32 std::vector<Task*> tasks_; | 33 std::vector<Task*> tasks_; |
33 WebContentsTaskProvider provider_; | 34 WebContentsTaskProvider provider_; |
34 | 35 |
35 DISALLOW_COPY_AND_ASSIGN(MockWebContentsTaskManager); | 36 DISALLOW_COPY_AND_ASSIGN(MockWebContentsTaskManager); |
36 }; | 37 }; |
37 | 38 |
38 } // namespace task_management | 39 } // namespace task_management |
39 | 40 |
40 #endif // CHROME_BROWSER_TASK_MANAGEMENT_TASK_MANAGEMENT_BROWSERTEST_UTIL_H_ | 41 #endif // CHROME_BROWSER_TASK_MANAGEMENT_TASK_MANAGEMENT_BROWSERTEST_UTIL_H_ |
OLD | NEW |