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

Side by Side Diff: scripts/slave/recipe_modules/webrtc/config.py

Issue 1151423002: Move recipe engine to third_party/recipe_engine. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Moved field_composer_test with its buddies Created 5 years, 6 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 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 from slave.recipe_config import config_item_context, ConfigGroup 5 from recipe_engine.config import config_item_context, ConfigGroup
6 from slave.recipe_config import Static 6 from recipe_engine.config import Static
7 7
8 8
9 def BaseConfig(PERF_ID=None, PERF_CONFIG=None, TEST_SUITE=None, **_kwargs): 9 def BaseConfig(PERF_ID=None, PERF_CONFIG=None, TEST_SUITE=None, **_kwargs):
10 return ConfigGroup( 10 return ConfigGroup(
11 PERF_ID = Static(PERF_ID), 11 PERF_ID = Static(PERF_ID),
12 PERF_CONFIG = Static(PERF_CONFIG), 12 PERF_CONFIG = Static(PERF_CONFIG),
13 TEST_SUITE = Static(TEST_SUITE), 13 TEST_SUITE = Static(TEST_SUITE),
14 ) 14 )
15 15
16 VAR_TEST_MAP = { 16 VAR_TEST_MAP = {
17 'PERF_ID': (None, 'perf-id'), 17 'PERF_ID': (None, 'perf-id'),
18 'PERF_CONFIG': (None, '{}', '{"a_default_rev": "r_webrtc_rev"}'), 18 'PERF_CONFIG': (None, '{}', '{"a_default_rev": "r_webrtc_rev"}'),
19 } 19 }
20 20
21 def TEST_NAME_FORMAT(kwargs): 21 def TEST_NAME_FORMAT(kwargs):
22 return 'webrtc' # pragma: no cover 22 return 'webrtc' # pragma: no cover
23 23
24 config_ctx = config_item_context(BaseConfig, VAR_TEST_MAP, TEST_NAME_FORMAT) 24 config_ctx = config_item_context(BaseConfig, VAR_TEST_MAP, TEST_NAME_FORMAT)
25 25
26 # Only exists to be able to set the PERF_ID and PERF_CONFIG configurations. 26 # Only exists to be able to set the PERF_ID and PERF_CONFIG configurations.
27 @config_ctx() 27 @config_ctx()
28 def webrtc(c): 28 def webrtc(c):
29 pass 29 pass
OLDNEW
« no previous file with comments | « scripts/slave/recipe_modules/webrtc/chromium_config.py ('k') | scripts/slave/recipe_modules/webrtc/test_api.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698