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

Unified Diff: scripts/slave/recipe_modules/platform/test_api.py

Issue 1347263002: Revert of Cross-repo recipe package system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 5 years, 3 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 | « scripts/slave/recipe_modules/platform/api.py ('k') | scripts/slave/recipe_modules/properties/__init__.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/recipe_modules/platform/test_api.py
diff --git a/scripts/slave/recipe_modules/platform/test_api.py b/scripts/slave/recipe_modules/platform/test_api.py
new file mode 100644
index 0000000000000000000000000000000000000000..8515ad072277ec30f9bd9c375cb05c48435954eb
--- /dev/null
+++ b/scripts/slave/recipe_modules/platform/test_api.py
@@ -0,0 +1,18 @@
+from recipe_engine import recipe_test_api
+
+class PlatformTestApi(recipe_test_api.RecipeTestApi):
+ @recipe_test_api.mod_test_data
+ @staticmethod
+ def name(name):
+ assert name in ('win', 'linux', 'mac')
+ return name
+
+ @recipe_test_api.mod_test_data
+ @staticmethod
+ def bits(bits):
+ assert bits in (32, 64)
+ return bits
+
+ def __call__(self, name, bits):
+ return self.name(name) + self.bits(bits)
+
« no previous file with comments | « scripts/slave/recipe_modules/platform/api.py ('k') | scripts/slave/recipe_modules/properties/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698