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

Side by Side Diff: third_party/recipe_engine/recipe_modules/platform/test_api.py

Issue 1241323004: Cross-repo recipe package system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Moved show_me_the_modules into recipe_engine Created 5 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 from recipe_engine import recipe_test_api 1 from recipe_engine import recipe_test_api
2 2
3 class PlatformTestApi(recipe_test_api.RecipeTestApi): 3 class PlatformTestApi(recipe_test_api.RecipeTestApi):
4 @recipe_test_api.mod_test_data 4 @recipe_test_api.mod_test_data
5 @staticmethod 5 @staticmethod
6 def name(name): 6 def name(name):
7 assert name in ('win', 'linux', 'mac') 7 assert name in ('win', 'linux', 'mac')
8 return name 8 return name
9 9
10 @recipe_test_api.mod_test_data 10 @recipe_test_api.mod_test_data
11 @staticmethod 11 @staticmethod
12 def bits(bits): 12 def bits(bits):
13 assert bits in (32, 64) 13 assert bits in (32, 64)
14 return bits 14 return bits
15 15
16 def __call__(self, name, bits): 16 def __call__(self, name, bits):
17 return self.name(name) + self.bits(bits) 17 return self.name(name) + self.bits(bits)
18 18
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698