Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 """ Script that exercises the Smart Lock setup flow, testing that a nearby phone | 5 """ Script that exercises the Smart Lock setup flow, testing that a nearby phone |
| 6 can be found and used to unlock a Chromebook. | 6 can be found and used to unlock a Chromebook. |
| 7 | 7 |
| 8 Note: This script does not currently automate Android phones, so make sure that | 8 Note: This script does not currently automate Android phones, so make sure that |
| 9 a phone is properly configured and online before starting the test. | 9 a phone is properly configured and online before starting the test. |
| 10 | 10 |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 145 logger.info('Opening Smart Lock settings...') | 145 logger.info('Opening Smart Lock settings...') |
| 146 settings = chromeos.GetSmartLockSettings() | 146 settings = chromeos.GetSmartLockSettings() |
| 147 assert(not settings.is_smart_lock_enabled) | 147 assert(not settings.is_smart_lock_enabled) |
| 148 | 148 |
| 149 if args.cryptauth_staging_url is not None: | 149 if args.cryptauth_staging_url is not None: |
| 150 chromeos.SetCryptAuthStaging(args.cryptauth_staging_url) | 150 chromeos.SetCryptAuthStaging(args.cryptauth_staging_url) |
| 151 | 151 |
| 152 logger.info('Starting Smart Lock setup flow...') | 152 logger.info('Starting Smart Lock setup flow...') |
| 153 app = settings.StartSetupAndReturnApp() | 153 app = settings.StartSetupAndReturnApp() |
| 154 | 154 |
| 155 if app is None: | |
| 156 raise SmartLockSetupError('Failed to obtain app set up window') | |
|
Tim Song
2015/08/03 21:42:19
nit: reword to "Failed to obtain setup app window.
vsankar
2015/08/03 22:32:13
Done.
| |
| 157 | |
| 155 _NavigateSetupDialog(chromeos, app) | 158 _NavigateSetupDialog(chromeos, app) |
| 156 | 159 |
| 157 def main(): | 160 def main(): |
| 158 logging.basicConfig() | 161 logging.basicConfig() |
| 159 logging.getLogger('proximity_auth').setLevel(logging.INFO) | 162 logging.getLogger('proximity_auth').setLevel(logging.INFO) |
| 160 args = ParseArgs() | 163 args = ParseArgs() |
| 161 RunSetupTest(args) | 164 RunSetupTest(args) |
| 162 | 165 |
| 163 if __name__ == '__main__': | 166 if __name__ == '__main__': |
| 164 main() | 167 main() |
| OLD | NEW |