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

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

Issue 1044573002: Integration test for exp Chrome-Proxy request option (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/experiment.py
diff --git a/tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/experiment.py b/tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/experiment.py
new file mode 100644
index 0000000000000000000000000000000000000000..9d358c1be78da35c2aff0fc4fae6f5ea76055618
--- /dev/null
+++ b/tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/experiment.py
@@ -0,0 +1,31 @@
+# Copyright 2015 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.page import page_set as page_set_module
+
+
+class ExperimentPage(page_module.Page):
sclittle 2015/04/03 01:34:48 Again, "Experiment" seems ambigous; maybe "Experim
megjablon 2015/04/07 21:18:40 Done.
+ """
+ A test page for the experiment Chrome-Proxy directive tests.
+ Checks that a bypass is triggered for a specified url when exp=test.
+ """
+
+ def __init__(self, url, page_set):
+ super(ExperimentPage, self).__init__(url=url, page_set=page_set)
+
+
+class ExperimentPageSet(page_set_module.PageSet):
+ """ Chrome proxy test sites """
+
+ def __init__(self):
+ super(ExperimentPageSet, self).__init__(
+ archive_data_file='../data/chrome_proxy_bypass.json')
sclittle 2015/04/03 01:34:48 Remove this archive_data_file variable; these don'
megjablon 2015/04/07 21:18:40 Done.
+
+ urls_list = [
+ 'http://aws1.mdw.la/exptest/',
+ ]
+
+ for url in urls_list:
+ self.AddUserStory(ExperimentPage(url, self))

Powered by Google App Engine
This is Rietveld 408576698