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

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

Issue 2227163002: Added integration test to Chrome Proxy to verify fallback to HTTP after bad HTTPS response from pro… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missing new line Created 4 years, 4 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_metrics.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 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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 HTML5TestPage(page_module.Page): 9 class BadHTTPSFallbackPage(page_module.Page):
10 10
11 def __init__(self, url, page_set): 11 def __init__(self, url, page_set):
12 super(HTML5TestPage, self).__init__(url=url, page_set=page_set) 12 super(BadHTTPSFallbackPage, self).__init__(url=url, page_set=page_set)
13 13
14 14
15 class HTML5TestStorySet(story.StorySet): 15 class BadHTTPSFallbackStorySet(story.StorySet):
16 16
17 """ Chrome proxy test page for traffic over https. """ 17 """ Chrome proxy test page for traffic over https. """
18 18
19 def __init__(self): 19 def __init__(self):
20 super(HTML5TestStorySet, self).__init__() 20 super(BadHTTPSFallbackStorySet, self).__init__()
21 21
22 urls_list = [ 22 urls_list = [
23 'http://html5test.com/', 23 'http://check.googlezip.net/test.html'
sclittle 2016/08/17 17:20:58 Instead of creating a whole new pageset here, coul
Robert Ogden 2016/08/17 18:15:35 Done.
24 ] 24 ]
25 25
26 for url in urls_list: 26 for url in urls_list:
27 self.AddStory(HTML5TestPage(url, self)) 27 self.AddStory(BadHTTPSFallbackPage(url, self))
OLDNEW
« no previous file with comments | « tools/chrome_proxy/integration_tests/chrome_proxy_metrics.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698