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

Unified Diff: tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/http_timeout.py

Issue 2206363002: Added integration test to Chrome Proxy to verify direct connection on remote site timeout (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated timing to server=90s and test=120s 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 side-by-side diff with in-line comments
Download patch
Index: tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/http_timeout.py
diff --git a/tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/http_timeout.py b/tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/http_timeout.py
new file mode 100644
index 0000000000000000000000000000000000000000..e7587a77aec1b4891d76e99c0f6b03b4426f3399
--- /dev/null
+++ b/tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/http_timeout.py
@@ -0,0 +1,26 @@
+# Copyright 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+from telemetry.page import page as page_module
+from telemetry import story
+
+
+class BypassOnTimeoutPage(page_module.Page):
+
+ def __init__(self, url, page_set):
+ super(BypassOnTimeoutPage, self).__init__(url=url, page_set=page_set)
+
+
+class BypassOnTimeoutStorySet(story.StorySet):
+ """This site takes 60s to respond when being accessed by proxy."""
+
+ def __init__(self):
+ super(BypassOnTimeoutStorySet, self).__init__()
+
+ urls_list = [
+ 'http://chromeproxy-test.appspot.com/blackhole'
+ ]
+
+ for url in urls_list:
+ self.AddStory(BypassOnTimeoutPage(url, self))
« no previous file with comments | « tools/chrome_proxy/integration_tests/chrome_proxy_metrics.py ('k') | tools/chrome_proxy/testserver/app.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698