| 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 'recipe_engine/path', | 7 'recipe_engine/path', |
| 8 'recipe_engine/properties', | 8 'recipe_engine/properties', |
| 9 ] | 9 ] |
| 10 | 10 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 api.gclient.c = src_cfg | 70 api.gclient.c = src_cfg |
| 71 api.gclient.checkout() | 71 api.gclient.checkout() |
| 72 | 72 |
| 73 api.gclient.spec_alias = 'WebKit' | 73 api.gclient.spec_alias = 'WebKit' |
| 74 bl_cfg = api.gclient.make_config() | 74 bl_cfg = api.gclient.make_config() |
| 75 soln = bl_cfg.solutions.add() | 75 soln = bl_cfg.solutions.add() |
| 76 soln.name = 'WebKit' | 76 soln.name = 'WebKit' |
| 77 soln.url = 'svn://svn.chromium.org/blink/trunk' | 77 soln.url = 'svn://svn.chromium.org/blink/trunk' |
| 78 bl_cfg.revisions['third_party/WebKit'] = '123' | 78 bl_cfg.revisions['third_party/WebKit'] = '123' |
| 79 | 79 |
| 80 # Use safesync url for lkgr. | |
| 81 soln.safesync_url = 'https://blink-status.appspot.com/lkgr' | |
| 82 | |
| 83 bl_cfg.got_revision_mapping['src/blatley'] = 'got_blatley_revision' | 80 bl_cfg.got_revision_mapping['src/blatley'] = 'got_blatley_revision' |
| 84 api.gclient.checkout( | 81 api.gclient.checkout( |
| 85 gclient_config=bl_cfg, | 82 gclient_config=bl_cfg, |
| 86 with_branch_heads=True, | 83 with_branch_heads=True, |
| 87 cwd=api.path['slave_build'].join('src', 'third_party')) | 84 cwd=api.path['slave_build'].join('src', 'third_party')) |
| 88 | 85 |
| 89 api.gclient.break_locks() | 86 api.gclient.break_locks() |
| 90 | 87 |
| 91 del api.gclient.spec_alias | 88 del api.gclient.spec_alias |
| 92 | 89 |
| 93 api.gclient.runhooks() | 90 api.gclient.runhooks() |
| 94 | 91 |
| 95 assert not api.gclient.is_blink_mode | 92 assert not api.gclient.is_blink_mode |
| 96 | 93 |
| 97 | 94 |
| 98 def GenTests(api): | 95 def GenTests(api): |
| 99 yield api.test('basic') | 96 yield api.test('basic') |
| 100 | 97 |
| 101 yield api.test('revision') + api.properties(revision='abc') | 98 yield api.test('revision') + api.properties(revision='abc') |
| 102 | 99 |
| 103 yield api.test('tryserver') + api.properties.tryserver() | 100 yield api.test('tryserver') + api.properties.tryserver() |
| OLD | NEW |