Remove use of JSONReader::DeprecatedRead from activity_log
[chromium-blink-merge.git] / tools / chrome_proxy / integration_tests / chrome_proxy_pagesets / smoke.py
blob924311432465e11e6ca7d8e3f80db93368fa81b0
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 as page_module
6 from telemetry import story
9 class SmokePage(page_module.Page):
11 def __init__(self, url, page_set, name=''):
12 super(SmokePage, self).__init__(url=url, page_set=page_set, name=name)
15 class Page1(SmokePage):
17 """
18 Why: Check chrome proxy response headers.
19 """
21 def __init__(self, page_set):
22 super(Page1, self).__init__(
23 url='http://check.googlezip.net/test.html',
24 page_set=page_set,
25 name='header validation')
28 class Page2(SmokePage):
30 """
31 Why: Check data compression
32 """
34 def __init__(self, page_set):
35 super(Page2, self).__init__(
36 url='http://check.googlezip.net/static/',
37 page_set=page_set,
38 name='compression: image')
41 class Page3(SmokePage):
43 """
44 Why: Check bypass
45 """
47 def __init__(self, page_set):
48 super(Page3, self).__init__(
49 url='http://check.googlezip.net/block/',
50 page_set=page_set,
51 name='bypass')
54 class Page4(SmokePage):
56 """
57 Why: Check data compression
58 """
60 def __init__(self, page_set):
61 super(Page4, self).__init__(
62 url='http://check.googlezip.net/static/',
63 page_set=page_set,
64 name='compression: javascript')
67 class Page5(SmokePage):
69 """
70 Why: Check data compression
71 """
73 def __init__(self, page_set):
74 super(Page5, self).__init__(
75 url='http://check.googlezip.net/static/',
76 page_set=page_set,
77 name='compression: css')
81 class SmokeStorySet(story.StorySet):
83 """ Chrome proxy test sites """
85 def __init__(self):
86 super(SmokeStorySet, self).__init__()
88 self.AddStory(Page1(self))
89 self.AddStory(Page2(self))
90 self.AddStory(Page3(self))
91 self.AddStory(Page4(self))
92 self.AddStory(Page5(self))