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

Unified Diff: base/test/expectations/expectation.h

Issue 12218098: [Test Expectations] Add GetCurrentPlatform() and GetCurrentConfiguration(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 7 years, 10 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 | « no previous file | base/test/expectations/expectation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/expectations/expectation.h
diff --git a/base/test/expectations/expectation.h b/base/test/expectations/expectation.h
index 5bf131d9ab7852585dce652c69fd637f8c282eaf..d86b08dc454a0dfc8b46705d40014fca9084f600 100644
--- a/base/test/expectations/expectation.h
+++ b/base/test/expectations/expectation.h
@@ -52,6 +52,9 @@ struct Platform {
bool PlatformFromString(const base::StringPiece& modifier,
Platform* out_platform) WARN_UNUSED_RESULT;
+// Returns the Platform for the currently running binary.
+Platform GetCurrentPlatform();
+
// The build configuration.
enum Configuration {
CONFIGURATION_UNSPECIFIED,
@@ -64,6 +67,9 @@ enum Configuration {
bool ConfigurationFromString(const base::StringPiece& modifier,
Configuration* out_configuration) WARN_UNUSED_RESULT;
+// Returns the Configuration for the currently running binary.
+Configuration GetCurrentConfiguration();
+
// An Expectation is records what the result for a given test name should be on
// the specified platforms and configuration.
struct Expectation {
« no previous file with comments | « no previous file | base/test/expectations/expectation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698