[Session restore] Rename group name Enabled to Restore.
[chromium-blink-merge.git] / tools / telemetry / unittest_data / archive_files / test_page_set.py
blobab4222694011e590ad1ee301fa4987e1dbeb1f4b
1 # Copyright 2014 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.
5 from telemetry.page import page
6 from telemetry.page import page_set
7 from unittest_data.pages.external_page import ExternalPage
10 class InternalPage(page.Page):
11 def __init__(self, ps):
12 super(InternalPage, self).__init__('file://bar.html', page_set=ps)
14 class TestPageSet(page_set.PageSet):
15 """A pageset for testing purpose"""
17 def __init__(self):
18 super(TestPageSet, self).__init__(
19 archive_data_file='data/archive_files/test.json',
20 credentials_path='data/credential',
21 user_agent_type='desktop',
22 bucket=page_set.PUBLIC_BUCKET)
24 #top google property; a google tab is often open
25 class Google(page.Page):
26 def __init__(self, ps):
27 # pylint: disable=bad-super-call
28 super(Google, self).__init__('https://www.google.com', page_set=ps)
30 def RunGetActionRunner(self, action_runner):
31 return action_runner
33 self.AddUserStory(Google(self))
34 self.AddUserStory(InternalPage(self))
35 self.AddUserStory(ExternalPage(self))