| 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 'gsutil', | 6 'gsutil', |
| 7 'recipe_engine/path', | 7 'recipe_engine/path', |
| 8 ] | 8 ] |
| 9 | 9 |
| 10 | 10 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 | 50 |
| 51 private_key_file = 'path/to/key' | 51 private_key_file = 'path/to/key' |
| 52 signed_url = api.gsutil.signurl(private_key_file, bucket, cloud_file, | 52 signed_url = api.gsutil.signurl(private_key_file, bucket, cloud_file, |
| 53 name='signed url') | 53 name='signed url') |
| 54 api.gsutil.remove_url('gs://%s/%s' % (bucket, new_cloud_file)) | 54 api.gsutil.remove_url('gs://%s/%s' % (bucket, new_cloud_file)) |
| 55 | 55 |
| 56 api.gsutil.download_with_polling('gs://chromium-recipe-test/foo/bar', | 56 api.gsutil.download_with_polling('gs://chromium-recipe-test/foo/bar', |
| 57 'local/path/for/download', | 57 'local/path/for/download', |
| 58 15, | 58 15, |
| 59 600) | 59 600) |
| 60 api.gsutil.download_latest_file('gs://chromium-recipe-test/foo', |
| 61 'gs://chromium-recipe-test/foo/b', |
| 62 'local/path/for/download') |
| 63 api.gsutil.list('gs://chromium-recipe-test/foo') |
| 60 | 64 |
| 61 | 65 |
| 62 def GenTests(api): | 66 def GenTests(api): |
| 63 yield api.test('basic') | 67 yield api.test('basic') |
| OLD | NEW |