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

Unified Diff: base/test/launcher/test_id.h

Issue 1027993002: Allow unit tests to force serial execution in the test launcher. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: TestID experiment Created 5 years, 9 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
« no previous file with comments | « base/gtest_prod_util.h ('k') | base/test/launcher/test_id.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/launcher/test_id.h
diff --git a/base/test/launcher/test_id.h b/base/test/launcher/test_id.h
new file mode 100644
index 0000000000000000000000000000000000000000..3c36bfa290fb342dc9365151de0ecc7e556e4570
--- /dev/null
+++ b/base/test/launcher/test_id.h
@@ -0,0 +1,30 @@
+// Copyright 2015 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 BASE_TEST_LAUNCHER_TEST_ID_H_
+#define BASE_TEST_LAUNCHER_TEST_ID_H_
+
+#include <string>
+
+namespace base {
+
+class TestID {
+ explicit TestId(const std::string& original_name);
+
+ std::string original_name() const { return original_name_; }
+
+ std::string GetDisplayName() const;
+ std::string GetTestName() const;
+ std::string GetTestCaseName() const;
+
+ bool IsDisabled() const;
+ bool IsSerialized() const;
+
+ private:
+ std::string original_name_;
+};
+
+} // namespace base
+
+#endif // BASE_TEST_LAUNCHER_TEST_ID_H_
« no previous file with comments | « base/gtest_prod_util.h ('k') | base/test/launcher/test_id.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698