OLD | NEW |
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2010 The Chromium OS 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 import shutil, utils | 5 import shutil, utils |
6 from autotest_lib.client.cros import auth_server, ui_test | 6 from autotest_lib.client.cros import cros_ui_test, auth_server |
7 | 7 |
8 class login_Backdoor(ui_test.UITest): | 8 class login_Backdoor(cros_ui_test.UITest): |
9 version = 1 | 9 version = 1 |
10 | 10 |
11 | 11 |
12 def __login_denier(self, handler, url_args): | 12 def __login_denier(self, handler, url_args): |
13 handler.send_response(403) | 13 handler.send_response(403) |
14 handler.end_headers() | 14 handler.end_headers() |
15 handler.wfile.write('Error=BadAuthentication.') | 15 handler.wfile.write('Error=BadAuthentication.') |
16 | 16 |
17 | 17 |
18 def start_authserver(self): | 18 def start_authserver(self): |
19 self._authServer = auth_server.GoogleAuthServer( | 19 self._authServer = auth_server.GoogleAuthServer( |
20 cl_responder=self.__login_denier) | 20 cl_responder=self.__login_denier) |
21 self._authServer.run() | 21 self._authServer.run() |
22 | 22 |
23 self.use_local_dns() | 23 self.use_local_dns() |
24 | 24 |
25 | 25 |
26 def run_once(self): | 26 def run_once(self): |
27 pass | 27 pass |
OLD | NEW |