OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 import logging | 5 import logging |
5 import json | 6 import json |
6 import os | 7 import os |
7 | 8 |
8 from telemetry.core import util | 9 from telemetry.core import util |
9 from telemetry.core.chrome import facebook_credentials_backend | 10 from telemetry.core.backends import facebook_credentials_backend |
10 from telemetry.core.chrome import google_credentials_backend | 11 from telemetry.core.backends import google_credentials_backend |
11 from telemetry.unittest import options_for_unittests | 12 from telemetry.unittest import options_for_unittests |
12 | 13 |
| 14 |
13 class BrowserCredentials(object): | 15 class BrowserCredentials(object): |
14 def __init__(self, backends = None): | 16 def __init__(self, backends = None): |
15 self._credentials = {} | 17 self._credentials = {} |
16 self._credentials_path = None | 18 self._credentials_path = None |
17 self._extra_credentials = {} | 19 self._extra_credentials = {} |
18 | 20 |
19 if backends is None: | 21 if backends is None: |
20 backends = [ | 22 backends = [ |
21 facebook_credentials_backend.FacebookCredentialsBackend(), | 23 facebook_credentials_backend.FacebookCredentialsBackend(), |
22 google_credentials_backend.GoogleCredentialsBackend()] | 24 google_credentials_backend.GoogleCredentialsBackend()] |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 Credentials for %s were not found. %i pages will not be tested. | 136 Credentials for %s were not found. %i pages will not be tested. |
135 | 137 |
136 To fix this, either add svn-internal to your .gclient using | 138 To fix this, either add svn-internal to your .gclient using |
137 http://goto/read-src-internal, or add your own credentials to: | 139 http://goto/read-src-internal, or add your own credentials to: |
138 %s | 140 %s |
139 An example credentials file you can copy from is here: | 141 An example credentials file you can copy from is here: |
140 %s\n""" % (', '.join(missing_credentials), | 142 %s\n""" % (', '.join(missing_credentials), |
141 num_pages_missing_login, | 143 num_pages_missing_login, |
142 ' or '.join(files_to_tweak), | 144 ' or '.join(files_to_tweak), |
143 example_credentials_file)) | 145 example_credentials_file)) |
OLD | NEW |