| OLD | NEW |
| (Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 """Test inputs for recipes/android_webview_aosp.py""" |
| 6 |
| 7 |
| 8 def _common_factory_properties(**kwargs): |
| 9 ret = { |
| 10 'android_repo_url': 'https://android.googlesource.com/platform/manifest', |
| 11 'android_repo_branch': 'master', |
| 12 } |
| 13 ret.update(kwargs) |
| 14 return ret |
| 15 |
| 16 def _common_test_data(): |
| 17 return { |
| 18 'calculate trimmed deps': (0, { |
| 19 'blacklist': { |
| 20 'src/blacklist/project/1': None, |
| 21 'src/blacklist/project/2': None, |
| 22 } |
| 23 }) |
| 24 } |
| 25 |
| 26 def basic_test(api): |
| 27 return { |
| 28 'factory_properties': _common_factory_properties(), |
| 29 'test_data': _common_test_data(), |
| 30 } |
| 31 |
| 32 def with_ndk_pin_revision_test(api): |
| 33 return { |
| 34 'factory_properties': _common_factory_properties( |
| 35 android_ndk_pin_revision='5049b437591600fb0d262e4215cee4226e63c6ce' |
| 36 ), |
| 37 'test_data': _common_test_data(), |
| 38 } |
| 39 |
| 40 def with_resync_projects_test(api): |
| 41 return { |
| 42 'factory_properties': _common_factory_properties( |
| 43 android_repo_resync_projects=['frameworks/base'] |
| 44 ), |
| 45 'test_data': _common_test_data(), |
| 46 } |
| 47 |
| 48 def uses_android_repo_test(api): |
| 49 return { |
| 50 'factory_properties': _common_factory_properties(), |
| 51 'test_data': _common_test_data(), |
| 52 'paths_to_mock' : [ |
| 53 '[SLAVE_BUILD_ROOT]/android-src/.repo/repo/repo', |
| 54 '[SLAVE_BUILD_ROOT]/android-src', |
| 55 ], |
| 56 } |
| 57 |
| 58 def does_delete_stale_chromium_test(api): |
| 59 return { |
| 60 'factory_properties': _common_factory_properties(), |
| 61 'test_data': _common_test_data(), |
| 62 'paths_to_mock' : [ |
| 63 '[SLAVE_BUILD_ROOT]/android-src/external/chromium_org', |
| 64 ], |
| 65 } |
| 66 |
| 67 def uses_goma_test(api): |
| 68 return { |
| 69 'factory_properties': _common_factory_properties(), |
| 70 'test_data': _common_test_data(), |
| 71 'paths_to_mock' : ['[BUILD_ROOT]/goma', ] |
| 72 } |
| 73 |
| OLD | NEW |