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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/task_management/task_manager_browsertest_util.h
diff --git a/chrome/browser/task_manager/task_manager_browsertest_util.h b/chrome/browser/task_management/task_manager_browsertest_util.h
similarity index 81%
rename from chrome/browser/task_manager/task_manager_browsertest_util.h
rename to chrome/browser/task_management/task_manager_browsertest_util.h
index 19d4e5ffc21a83aa38bd34b1ee3765f950e84f7b..3707b6b7fb228506cab8092625039c408f76dbcb 100644
--- a/chrome/browser/task_manager/task_manager_browsertest_util.h
+++ b/chrome/browser/task_management/task_manager_browsertest_util.h
@@ -1,16 +1,21 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_BROWSERTEST_UTIL_H_
-#define CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_BROWSERTEST_UTIL_H_
+// These "task_management::browsertest_util" functions allow you to wait for a
+// task manager to show a particular state, enabling tests of the form "do
+// something that ought to create a process, then wait for that process to show
+// up in the Task Manager." They are intended to abstract away the details of
+// the platform's TaskManager UI.
+
+#ifndef CHROME_BROWSER_TASK_MANAGEMENT_TASK_MANAGER_BROWSERTEST_UTIL_H_
+#define CHROME_BROWSER_TASK_MANAGEMENT_TASK_MANAGER_BROWSERTEST_UTIL_H_
#include <stddef.h>
#include "base/strings/string16.h"
-// TODO(nick): Move everything here into the task_management namespace.
-namespace task_manager {
+namespace task_management {
namespace browsertest_util {
// Specifies some integer-valued column of numeric data reported by the task
@@ -69,6 +74,6 @@ base::string16 MatchUtility(const base::string16& title);
base::string16 MatchAnyUtility(); // "Utility: *"
} // namespace browsertest_util
-} // namespace task_manager
+} // namespace task_management
-#endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_BROWSERTEST_UTIL_H_
+#endif // CHROME_BROWSER_TASK_MANAGEMENT_TASK_MANAGER_BROWSERTEST_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698