OLD | NEW |
1 // Copyright 2016 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 // These "task_manager::browsertest_util" functions allow you to wait for a | 5 // These "task_manager::browsertest_util" functions allow you to wait for a |
6 // task manager to show a particular state, enabling tests of the form "do | 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 | 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 | 8 // up in the Task Manager." They are intended to abstract away the details of |
9 // the platform's TaskManager UI. | 9 // the platform's TaskManager UI. |
10 | 10 |
11 #ifndef CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_BROWSERTEST_UTIL_H_ | 11 #ifndef CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_BROWSERTEST_UTIL_H_ |
12 #define CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_BROWSERTEST_UTIL_H_ | 12 #define CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_BROWSERTEST_UTIL_H_ |
13 | 13 |
14 #include <stddef.h> | 14 #include <stddef.h> |
15 | 15 |
16 #include "base/strings/string16.h" | 16 #include "base/strings/string16.h" |
17 | 17 |
18 namespace task_manager { | 18 namespace task_manager { |
19 namespace browsertest_util { | 19 namespace browsertest_util { |
20 | 20 |
21 // 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 |
22 // manager model. Please add more here as needed by tests. | 22 // manager model. Please add more here as needed by tests. |
23 enum class ColumnSpecifier { | 23 enum class ColumnSpecifier { |
| 24 PROCESS_ID, |
| 25 PHYSICAL_MEMORY, |
24 V8_MEMORY, | 26 V8_MEMORY, |
25 V8_MEMORY_USED, | 27 V8_MEMORY_USED, |
26 SQLITE_MEMORY_USED, | 28 SQLITE_MEMORY_USED, |
27 IDLE_WAKEUPS, | 29 IDLE_WAKEUPS, |
28 MEMORY_STATE, | 30 MEMORY_STATE, |
29 | 31 |
30 COLUMN_NONE, // Default value. | 32 COLUMN_NONE, // Default value. |
31 }; | 33 }; |
32 | 34 |
33 // Runs the message loop, observing the task manager, until there are exactly | 35 // Runs the message loop, observing the task manager, until there are exactly |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 base::string16 MatchSubframe(const char* title); // "Subframe: " + title | 74 base::string16 MatchSubframe(const char* title); // "Subframe: " + title |
73 base::string16 MatchAnySubframe(); // "Subframe: *" | 75 base::string16 MatchAnySubframe(); // "Subframe: *" |
74 // "Utility: " + title | 76 // "Utility: " + title |
75 base::string16 MatchUtility(const base::string16& title); | 77 base::string16 MatchUtility(const base::string16& title); |
76 base::string16 MatchAnyUtility(); // "Utility: *" | 78 base::string16 MatchAnyUtility(); // "Utility: *" |
77 | 79 |
78 } // namespace browsertest_util | 80 } // namespace browsertest_util |
79 } // namespace task_manager | 81 } // namespace task_manager |
80 | 82 |
81 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_BROWSERTEST_UTIL_H_ | 83 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_BROWSERTEST_UTIL_H_ |
OLD | NEW |