Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(308)

Side by Side Diff: tools/perf/page_sets/chrome_proxy/smoke.py

Issue 397483002: Move chrome_proxy tests from under tools/perf to tools/chrome_proxy/integration_tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments and sync'ed Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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.
4 from telemetry.page import page as page_module
5 from telemetry.page import page_set as page_set_module
6
7
8 class SmokePage(page_module.Page):
9
10 def __init__(self, url, page_set, name=''):
11 super(SmokePage, self).__init__(url=url, page_set=page_set, name=name)
12 self.archive_data_file = '../data/chrome_proxy_smoke.json'
13
14
15 class Page1(SmokePage):
16
17 """
18 Why: Check chrome proxy response headers.
19 """
20
21 def __init__(self, page_set):
22 super(Page1, self).__init__(
23 url='http://aws1.mdw.la/fw/',
24 page_set=page_set,
25 name='header validation')
26
27
28 class Page2(SmokePage):
29
30 """
31 Why: Check data compression
32 """
33
34 def __init__(self, page_set):
35 super(Page2, self).__init__(
36 url='http://aws1.mdw.la/static/',
37 page_set=page_set,
38 name='compression: image')
39
40
41 class Page3(SmokePage):
42
43 """
44 Why: Check bypass
45 """
46
47 def __init__(self, page_set):
48 super(Page3, self).__init__(
49 url='http://aws1.mdw.la/bypass/',
50 page_set=page_set,
51 name='bypass')
52 self.restart_after = True
53
54
55 class Page4(SmokePage):
56
57 """
58 Why: Check data compression
59 """
60
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')
66
67
68 class Page5(SmokePage):
69
70 """
71 Why: Check data compression
72 """
73
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')
79
80
81 class Page6(SmokePage):
82
83 """
84 Why: Expect 'malware ahead' page. Use a short navigation timeout because no
85 response will be received.
86 """
87
88 def __init__(self, page_set):
89 super(Page6, self).__init__(
90 url='http://www.ianfette.org/',
91 page_set=page_set,
92 name='safebrowsing')
93
94 def RunNavigateSteps(self, action_runner):
95 action_runner.NavigateToPage(self, timeout_in_seconds=5)
96
97
98 class SmokePageSet(page_set_module.PageSet):
99
100 """ Chrome proxy test sites """
101
102 def __init__(self):
103 super(SmokePageSet, self).__init__(
104 archive_data_file='../data/chrome_proxy_smoke.json')
105
106 self.AddPage(Page1(self))
107 self.AddPage(Page2(self))
108 self.AddPage(Page3(self))
109 self.AddPage(Page4(self))
110 self.AddPage(Page5(self))
111 self.AddPage(Page6(self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/chrome_proxy/safebrowsing.py ('k') | tools/perf/page_sets/chrome_proxy/synthetic.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698