| OLD | NEW | 
|   1 # Copyright 2015 The Chromium Authors. All rights reserved. |   1 # Copyright 2015 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 recipe_engine.types import freeze |   5 from recipe_engine.types import freeze | 
|   6  |   6  | 
|   7  |   7  | 
|   8 DEPS = [ |   8 DEPS = [ | 
|   9   'archive', |   9   'archive', | 
|  10   'depot_tools/bot_update', |  10   'depot_tools/bot_update', | 
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  51     }, |  51     }, | 
|  52   }, |  52   }, | 
|  53 }) |  53 }) | 
|  54  |  54  | 
|  55  |  55  | 
|  56 def RunSteps(api): |  56 def RunSteps(api): | 
|  57   webrtc = api.webrtc |  57   webrtc = api.webrtc | 
|  58   webrtc.apply_bot_config(BUILDERS, webrtc.RECIPE_CONFIGS) |  58   webrtc.apply_bot_config(BUILDERS, webrtc.RECIPE_CONFIGS) | 
|  59  |  59  | 
|  60   api.webrtc.checkout() |  60   api.webrtc.checkout() | 
 |  61   api.chromium.ensure_goma() | 
|  61   api.chromium.runhooks() |  62   api.chromium.runhooks() | 
|  62  |  63  | 
|  63   api.chromium.run_gn(use_goma=False) |  64   api.chromium.run_gn(use_goma=False) | 
|  64  |  65  | 
|  65   step_result = api.python('calculate targets', |  66   step_result = api.python('calculate targets', | 
|  66           api.path['depot_tools'].join('gn.py'), |  67           api.path['depot_tools'].join('gn.py'), | 
|  67           ['--root=%s' % str(api.path['checkout']), |  68           ['--root=%s' % str(api.path['checkout']), | 
|  68            'refs', |  69            'refs', | 
|  69            str(api.chromium.output_dir), |  70            str(api.chromium.output_dir), | 
|  70            '--all', |  71            '--all', | 
|  71            '--type=executable', |  72            '--type=executable', | 
|  72            '--as=output', |  73            '--as=output', | 
|  73            '//webrtc/test/fuzzers:webrtc_fuzzer_main', |  74            '//webrtc/test/fuzzers:webrtc_fuzzer_main', | 
|  74           ], |  75           ], | 
|  75           stdout=api.raw_io.output()) |  76           stdout=api.raw_io.output()) | 
|  76  |  77  | 
|  77   targets = step_result.stdout.split() |  78   targets = step_result.stdout.split() | 
|  78   api.step.active_result.presentation.logs['targets'] = targets |  79   api.step.active_result.presentation.logs['targets'] = targets | 
|  79   api.chromium.compile(targets=targets) |  80   api.chromium.compile(targets=targets) | 
|  80  |  81  | 
|  81  |  82  | 
|  82 def GenTests(api): |  83 def GenTests(api): | 
|  83   for test in api.chromium.gen_tests_for_builders(BUILDERS): |  84   for test in api.chromium.gen_tests_for_builders(BUILDERS): | 
|  84     yield (test + |  85     yield (test + | 
|  85            api.step_data('calculate targets', |  86            api.step_data('calculate targets', | 
|  86                stdout=api.raw_io.output('target1 target2 target3')) |  87                stdout=api.raw_io.output('target1 target2 target3')) | 
|  87            ) |  88            ) | 
|  88  |  89  | 
| OLD | NEW |