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
):
19 Why: Check chrome proxy response headers.
22 def __init__(self
, page_set
):
23 super(Page1
, self
).__init
__(
24 url
='http://aws1.mdw.la/fw/',
26 name
='header validation')
29 class Page2(SmokePage
):
32 Why: Check data compression
35 def __init__(self
, page_set
):
36 super(Page2
, self
).__init
__(
37 url
='http://aws1.mdw.la/static/',
39 name
='compression: image')
42 class Page3(SmokePage
):
48 def __init__(self
, page_set
):
49 super(Page3
, self
).__init
__(
50 url
='http://aws1.mdw.la/bypass/',
55 class Page4(SmokePage
):
58 Why: Check data compression
61 def __init__(self
, page_set
):
62 super(Page4
, self
).__init
__(
63 url
='http://aws1.mdw.la/static/',
65 name
='compression: javascript')
68 class Page5(SmokePage
):
71 Why: Check data compression
74 def __init__(self
, page_set
):
75 super(Page5
, self
).__init
__(
76 url
='http://aws1.mdw.la/static/',
78 name
='compression: css')
82 class SmokePageSet(page_set_module
.PageSet
):
84 """ Chrome proxy test sites """
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
))