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

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

Issue 2325843002: Use an uncacheable page for the Lo-Fi integration test (Closed)
Patch Set: add comment Created 4 years, 3 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 | « no previous file | 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 import story 6 from telemetry import story
7 7
8 8
9 class LoFiPage(page_module.Page): 9 class LoFiPage(page_module.Page):
10 """ 10 """
11 A test page for the chrome proxy Lo-Fi tests. 11 A test page for the chrome proxy Lo-Fi tests.
12 Checks that the compressed image is below a certain threshold. 12 Checks that the compressed image is below a certain threshold.
13 The test page is uncacheable otherwise a cached page may be served that
14 doesn't have the correct via headers.
13 """ 15 """
14 16
15 def __init__(self, url, page_set): 17 def __init__(self, url, page_set):
16 super(LoFiPage, self).__init__(url=url, page_set=page_set) 18 super(LoFiPage, self).__init__(url=url, page_set=page_set)
17 19
18 20
19 class LoFiStorySet(story.StorySet): 21 class LoFiStorySet(story.StorySet):
20 """ Chrome proxy test sites """ 22 """ Chrome proxy test sites """
21 23
22 def __init__(self): 24 def __init__(self):
23 super(LoFiStorySet, self).__init__() 25 super(LoFiStorySet, self).__init__()
24 26
25 urls_list = [ 27 urls_list = [
26 'http://check.googlezip.net/cacheable/test.html', 28 'http://check.googlezip.net/static/index.html',
27 ] 29 ]
28 30
29 for url in urls_list: 31 for url in urls_list:
30 self.AddStory(LoFiPage(url, self)) 32 self.AddStory(LoFiPage(url, self))
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698