Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(377)

Side by Side Diff: components/proximity_auth/e2e_test/setup_test.py

Issue 1261643006: Handle Smart Lock for Android promotion screen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/proximity_auth/e2e_test/cros.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 set up app window')
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()
OLDNEW
« no previous file with comments | « components/proximity_auth/e2e_test/cros.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698