| OLD | NEW |
| 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 DEPS = [ | 5 DEPS = [ |
| 6 'gclient', | 6 'gclient', |
| 7 'path', | 7 'path', |
| 8 ] | 8 ] |
| 9 | 9 |
| 10 def GenSteps(api): | 10 def GenSteps(api): |
| 11 api.gclient.use_mirror = True | 11 api.gclient.use_mirror = True |
| 12 | 12 |
| 13 src_cfg = api.gclient.make_config() | 13 src_cfg = api.gclient.make_config() |
| 14 soln = src_cfg.solutions.add() | 14 soln = src_cfg.solutions.add() |
| 15 soln.name = 'src' | 15 soln.name = 'src' |
| 16 soln.url = 'svn://svn.chromium.org/chrome/trunk/src' | 16 soln.url = 'svn://svn.chromium.org/chrome/trunk/src' |
| 17 api.gclient.c = src_cfg | 17 api.gclient.c = src_cfg |
| 18 yield api.gclient.checkout() | 18 yield api.gclient.checkout() |
| 19 | 19 |
| 20 api.gclient.spec_alias = 'WebKit' | 20 api.gclient.spec_alias = 'WebKit' |
| 21 bl_cfg = api.gclient.make_config() | 21 bl_cfg = api.gclient.make_config() |
| 22 soln = bl_cfg.solutions.add() | 22 soln = bl_cfg.solutions.add() |
| 23 soln.name = 'WebKit' | 23 soln.name = 'WebKit' |
| 24 soln.url = 'svn://svn.chromium.org/blink/trunk' | 24 soln.url = 'svn://svn.chromium.org/blink/trunk' |
| 25 bl_cfg.checkouts = ['src', api.path.join('src', 'third_party', 'WebKit')] | |
| 26 bl_cfg.got_revision_mapping['src/blatley'] = 'got_blatley_revision' | 25 bl_cfg.got_revision_mapping['src/blatley'] = 'got_blatley_revision' |
| 27 yield api.gclient.checkout( | 26 yield api.gclient.checkout( |
| 28 gclient_config=bl_cfg, | 27 gclient_config=bl_cfg, |
| 29 cwd=api.path.slave_build('src', 'third_party')) | 28 cwd=api.path.slave_build('src', 'third_party')) |
| 30 | 29 |
| 31 | 30 |
| 32 def GenTests(api): | 31 def GenTests(api): |
| 33 yield api.test('basic') | 32 yield api.test('basic') |
| OLD | NEW |