| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 import os | 5 import os |
| 6 | 6 |
| 7 from telemetry.testing import serially_executed_browser_test_case | 7 from telemetry.testing import serially_executed_browser_test_case |
| 8 | 8 |
| 9 from catapult_base import cloud_storage | 9 from py_utils import cloud_storage |
| 10 | 10 |
| 11 _WPR_ARCHIVE_PATH = os.path.join(os.path.dirname(__file__), | 11 _WPR_ARCHIVE_PATH = os.path.join(os.path.dirname(__file__), |
| 12 'popular_urls_000.wpr') | 12 'popular_urls_000.wpr') |
| 13 _POPULAR_URLS = [ | 13 _POPULAR_URLS = [ |
| 14 'http://www.google.com/', | 14 'http://www.google.com/', |
| 15 'http://www.facebook.com/', | 15 'http://www.facebook.com/', |
| 16 'http://www.youtube.com/', | 16 'http://www.youtube.com/', |
| 17 'http://www.yahoo.com/', | 17 'http://www.yahoo.com/', |
| 18 'http://www.baidu.com/', | 18 'http://www.baidu.com/', |
| 19 'http://www.wikipedia.org/', | 19 'http://www.wikipedia.org/', |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 cls.SetBrowserOptions(cls._finder_options) | 144 cls.SetBrowserOptions(cls._finder_options) |
| 145 cls.StartWPRServer(archive_path=_WPR_ARCHIVE_PATH, | 145 cls.StartWPRServer(archive_path=_WPR_ARCHIVE_PATH, |
| 146 archive_bucket=cloud_storage.PARTNER_BUCKET) | 146 archive_bucket=cloud_storage.PARTNER_BUCKET) |
| 147 cls.StartBrowser() | 147 cls.StartBrowser() |
| 148 cls.action_runner = cls.browser.tabs[0].action_runner | 148 cls.action_runner = cls.browser.tabs[0].action_runner |
| 149 | 149 |
| 150 @classmethod | 150 @classmethod |
| 151 def tearDownClass(cls): | 151 def tearDownClass(cls): |
| 152 super(cls, PopularUrlsTest).tearDownClass() | 152 super(cls, PopularUrlsTest).tearDownClass() |
| 153 cls.StopWPRServer() | 153 cls.StopWPRServer() |
| OLD | NEW |