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

Side by Side Diff: tools/chrome_proxy/integration_tests/pagesets/http_to_direct_fallback.py

Issue 1098253004: Move top_20 tests to a separate suite (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert to old naming scheme for live/integration tests Created 5 years, 7 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
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 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 HTTPToDirectFallbackPage(page_module.Page): 9 class HTTPToDirectFallbackPage(page_module.Page):
10 """Page that tests falling back from the HTTP proxy to a direct connection.""" 10 """Page that tests falling back from the HTTP proxy to a direct connection."""
11 def __init__(self, url, page_set): 11 def __init__(self, url, page_set):
12 super(HTTPToDirectFallbackPage, self).__init__(url=url, page_set=page_set) 12 super(HTTPToDirectFallbackPage, self).__init__(url=url, page_set=page_set)
13 13
14 14
15 class HTTPToDirectFallbackPageSet(page_set_module.PageSet): 15 class HTTPToDirectFallbackPageSet(page_set_module.PageSet):
16 """Chrome proxy test sites""" 16 """Chrome proxy test sites"""
17 def __init__(self): 17 def __init__(self):
18 super(HTTPToDirectFallbackPageSet, self).__init__() 18 super(HTTPToDirectFallbackPageSet, self).__init__()
19 19
20 urls_list = [ 20 urls_list = [
21 'http://check.googlezip.net/fallback', 21 'http://check.googlezip.net/fallback',
22 'http://aws1.mdw.la/bypass', 22 'http://aws1.mdw.la/bypass',
23 ] 23 ]
24 24
25 for url in urls_list: 25 for url in urls_list:
26 self.AddUserStory(HTTPToDirectFallbackPage(url, self)) 26 self.AddUserStory(HTTPToDirectFallbackPage(url, self))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698