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

Side by Side Diff: tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/exp_directive.py

Issue 1044573002: Integration test for exp Chrome-Proxy request option (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits Created 5 years, 8 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
« no previous file with comments | « tools/chrome_proxy/integration_tests/chrome_proxy_measurements.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 from telemetry.page import page as page_module 5 from telemetry.page import page as page_module
6 from telemetry.page import page_set as page_set_module 6 from telemetry.page import page_set as page_set_module
7 7
8 8
9 class LoFiPage(page_module.Page): 9 class ExpDirectivePage(page_module.Page):
10 """ 10 """A test page for the experiment Chrome-Proxy directive tests."""
11 A test page for the chrome proxy Lo-Fi tests.
12 Checks that the compressed image is below a certain threshold.
13 """
14 11
15 def __init__(self, url, page_set): 12 def __init__(self, url, page_set):
16 super(LoFiPage, self).__init__(url=url, page_set=page_set) 13 super(ExpDirectivePage, self).__init__(url=url, page_set=page_set)
17 14
18 15
19 class LoFiPageSet(page_set_module.PageSet): 16 class ExpDirectivePageSet(page_set_module.PageSet):
20 """ Chrome proxy test sites """ 17 """ Chrome proxy test sites """
21 18
22 def __init__(self): 19 def __init__(self):
23 super(LoFiPageSet, self).__init__() 20 super(ExpDirectivePageSet, self).__init__()
24 21
25 urls_list = [ 22 urls_list = [
26 'http://aws1.mdw.la/fw/buddy.jpg', 23 'http://aws1.mdw.la/exptest/',
27 ] 24 ]
28 25
29 for url in urls_list: 26 for url in urls_list:
30 self.AddUserStory(LoFiPage(url, self)) 27 self.AddUserStory(ExpDirectivePage(url, self))
OLDNEW
« no previous file with comments | « tools/chrome_proxy/integration_tests/chrome_proxy_measurements.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698