Reland the ULONG -> SIZE_T change from 317177
[chromium-blink-merge.git] / tools / chrome_proxy / integration_tests / chrome_proxy_pagesets / smoke.py
blob49de585c1d40ad8e1fc043d8441f2cfa25286dc0
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.page import page_set as page_set_module
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)
13 self.archive_data_file = '../data/chrome_proxy_smoke.json'
16 class Page1(SmokePage):
18 """
19 Why: Check chrome proxy response headers.
20 """
22 def __init__(self, page_set):
23 super(Page1, self).__init__(
24 url='http://aws1.mdw.la/fw/',
25 page_set=page_set,
26 name='header validation')
29 class Page2(SmokePage):
31 """
32 Why: Check data compression
33 """
35 def __init__(self, page_set):
36 super(Page2, self).__init__(
37 url='http://aws1.mdw.la/static/',
38 page_set=page_set,
39 name='compression: image')
42 class Page3(SmokePage):
44 """
45 Why: Check bypass
46 """
48 def __init__(self, page_set):
49 super(Page3, self).__init__(
50 url='http://aws1.mdw.la/bypass/',
51 page_set=page_set,
52 name='bypass')
55 class Page4(SmokePage):
57 """
58 Why: Check data compression
59 """
61 def __init__(self, page_set):
62 super(Page4, self).__init__(
63 url='http://aws1.mdw.la/static/',
64 page_set=page_set,
65 name='compression: javascript')
68 class Page5(SmokePage):
70 """
71 Why: Check data compression
72 """
74 def __init__(self, page_set):
75 super(Page5, self).__init__(
76 url='http://aws1.mdw.la/static/',
77 page_set=page_set,
78 name='compression: css')
82 class SmokePageSet(page_set_module.PageSet):
84 """ Chrome proxy test sites """
86 def __init__(self):
87 super(SmokePageSet, self).__init__(
88 archive_data_file='../data/chrome_proxy_smoke.json')
90 self.AddUserStory(Page1(self))
91 self.AddUserStory(Page2(self))
92 self.AddUserStory(Page3(self))
93 self.AddUserStory(Page4(self))
94 self.AddUserStory(Page5(self))