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

Side by Side Diff: chrome/browser/task_management/mock_web_contents_task_manager.h

Issue 1956813002: [Part 1 of 6] Move MockWebContentsTaskManager into its own file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add Show() / ShowInactive() coverage. Created 4 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_MOCK_WEB_CONTENTS_TASK_MANAGER_H_
6 #define CHROME_BROWSER_TASK_MANAGEMENT_TASK_MANAGEMENT_BROWSERTEST_UTIL_H_ 6 #define CHROME_BROWSER_TASK_MANAGEMENT_MOCK_WEB_CONTENTS_TASK_MANAGER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/task_management/providers/task_provider_observer.h" 9 #include "chrome/browser/task_management/providers/task_provider_observer.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_tag s_manager.h"
11 #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"
12 12
13 namespace task_management { 13 namespace task_management {
14 14
15 // 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
16 // only observe the WebContents-based tasks. 16 // only observe the WebContents-based tasks.
(...skipping 14 matching lines...) Expand all
31 31
32 private: 32 private:
33 std::vector<Task*> tasks_; 33 std::vector<Task*> tasks_;
34 WebContentsTaskProvider provider_; 34 WebContentsTaskProvider provider_;
35 35
36 DISALLOW_COPY_AND_ASSIGN(MockWebContentsTaskManager); 36 DISALLOW_COPY_AND_ASSIGN(MockWebContentsTaskManager);
37 }; 37 };
38 38
39 } // namespace task_management 39 } // namespace task_management
40 40
41 #endif // CHROME_BROWSER_TASK_MANAGEMENT_TASK_MANAGEMENT_BROWSERTEST_UTIL_H_ 41 #endif // CHROME_BROWSER_TASK_MANAGEMENT_MOCK_WEB_CONTENTS_TASK_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698