OLD | NEW |
(Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 from page_sets import typical_25 |
| 5 from telemetry.page import page as page_module |
| 6 from telemetry.page import page_set as page_set_module |
| 7 |
| 8 |
| 9 class SessionRestorePageSet(page_set_module.PageSet): |
| 10 """A special case of the typical_25 for the session_restore benchmarks. |
| 11 |
| 12 The session_restore benchmarks -- before running the test -- use the |
| 13 typical_25 page set to build a profile that has multiple tabs open. |
| 14 Then, they use the session restore behavior to restore that state while |
| 15 starting with a dummy URL. |
| 16 |
| 17 This class is only to be used by the session_restore benchmark. This |
| 18 class is here because archive_data_file -- shared from typical_25 -- |
| 19 is relative to this directory. |
| 20 """ |
| 21 |
| 22 def __init__(self): |
| 23 super(SessionRestorePageSet, self).__init__( |
| 24 user_agent_type=typical_25.USER_AGENT_TYPE, |
| 25 archive_data_file=typical_25.ARCHIVE_DATA_FILE, |
| 26 bucket=typical_25.PAGE_SET_BUCKET) |
| 27 |
| 28 # The session_restore measurement never navigates to this url. |
| 29 # However, the url is needed to make sure Web Page Replay starts. |
| 30 # The url listed here needs exist in the WPR archive. |
| 31 self.AddUserStory(page_module.Page( |
| 32 'http://www.nick.com/games', self)) |
OLD | NEW |