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

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

Issue 1953383002: [Part 6 of 6] Move browsertests and utils to task_management/ directory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tm_file_split5
Patch Set: stddef/stdint 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 (c) 2011 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_MANAGER_TASK_MANAGER_BROWSERTEST_UTIL_H_ 5 // These "task_management::browsertest_util" functions allow you to wait for a
6 #define CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_BROWSERTEST_UTIL_H_ 6 // task manager to show a particular state, enabling tests of the form "do
7 // something that ought to create a process, then wait for that process to show
8 // up in the Task Manager." They are intended to abstract away the details of
9 // the platform's TaskManager UI.
10
11 #ifndef CHROME_BROWSER_TASK_MANAGEMENT_TASK_MANAGER_BROWSERTEST_UTIL_H_
12 #define CHROME_BROWSER_TASK_MANAGEMENT_TASK_MANAGER_BROWSERTEST_UTIL_H_
7 13
8 #include <stddef.h> 14 #include <stddef.h>
9 15
10 #include "base/strings/string16.h" 16 #include "base/strings/string16.h"
11 17
12 // TODO(nick): Move everything here into the task_management namespace. 18 namespace task_management {
13 namespace task_manager {
14 namespace browsertest_util { 19 namespace browsertest_util {
15 20
16 // Specifies some integer-valued column of numeric data reported by the task 21 // Specifies some integer-valued column of numeric data reported by the task
17 // manager model. Please add more here as needed by tests. 22 // manager model. Please add more here as needed by tests.
18 enum class ColumnSpecifier { 23 enum class ColumnSpecifier {
19 V8_MEMORY, 24 V8_MEMORY,
20 V8_MEMORY_USED, 25 V8_MEMORY_USED,
21 SQLITE_MEMORY_USED, 26 SQLITE_MEMORY_USED,
22 27
23 COLUMN_NONE, // Default value. 28 COLUMN_NONE, // Default value.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 base::string16 MatchAnyBackground(); // "Background: *" 67 base::string16 MatchAnyBackground(); // "Background: *"
63 base::string16 MatchPrint(const char* title); // "Print: " + title 68 base::string16 MatchPrint(const char* title); // "Print: " + title
64 base::string16 MatchAnyPrint(); // "Print: *" 69 base::string16 MatchAnyPrint(); // "Print: *"
65 base::string16 MatchSubframe(const char* title); // "Subframe: " + title 70 base::string16 MatchSubframe(const char* title); // "Subframe: " + title
66 base::string16 MatchAnySubframe(); // "Subframe: *" 71 base::string16 MatchAnySubframe(); // "Subframe: *"
67 // "Utility: " + title 72 // "Utility: " + title
68 base::string16 MatchUtility(const base::string16& title); 73 base::string16 MatchUtility(const base::string16& title);
69 base::string16 MatchAnyUtility(); // "Utility: *" 74 base::string16 MatchAnyUtility(); // "Utility: *"
70 75
71 } // namespace browsertest_util 76 } // namespace browsertest_util
72 } // namespace task_manager 77 } // namespace task_management
73 78
74 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_BROWSERTEST_UTIL_H_ 79 #endif // CHROME_BROWSER_TASK_MANAGEMENT_TASK_MANAGER_BROWSERTEST_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698