| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """Runs all the native unit tests. | 6 """Runs all the native unit tests. |
| 7 | 7 |
| 8 1. Copy over test binary to /data/local on device. | 8 1. Copy over test binary to /data/local on device. |
| 9 2. Resources: chrome/unit_tests requires resources (chrome.pak and en-US.pak) | 9 2. Resources: chrome/unit_tests requires resources (chrome.pak and en-US.pak) |
| 10 to be deployed to the device (in /data/local/tmp). | 10 to be deployed to the device (in /data/local/tmp). |
| 11 3. Environment: | 11 3. Environment: |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 if len(args) > 1: | 258 if len(args) > 1: |
| 259 print 'Unknown argument:', args[1:] | 259 print 'Unknown argument:', args[1:] |
| 260 option_parser.print_usage() | 260 option_parser.print_usage() |
| 261 sys.exit(1) | 261 sys.exit(1) |
| 262 run_tests_helper.SetLogLevel(options.verbose_count) | 262 run_tests_helper.SetLogLevel(options.verbose_count) |
| 263 return Dispatch(options) | 263 return Dispatch(options) |
| 264 | 264 |
| 265 | 265 |
| 266 if __name__ == '__main__': | 266 if __name__ == '__main__': |
| 267 sys.exit(main(sys.argv)) | 267 sys.exit(main(sys.argv)) |
| OLD | NEW |