Chromium Code Reviews| Index: tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/exp_directive.py |
| diff --git a/tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/exp_directive.py b/tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/exp_directive.py |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..95be4cf76c285f6055a956add9a015626990c3ab |
| --- /dev/null |
| +++ b/tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/exp_directive.py |
| @@ -0,0 +1,30 @@ |
| +# 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 ExpDirectivePage(page_module.Page): |
| + """ |
| + A test page for the experiment Chrome-Proxy directive tests. |
|
sclittle
2015/04/07 21:34:13
nit: Move this line up, and remove the second line
|
| + Checks that a bypass is triggered for a specified url when exp=test. |
| + """ |
| + |
| + def __init__(self, url, page_set): |
| + super(ExpDirectivePage, self).__init__(url=url, page_set=page_set) |
| + |
| + |
| +class ExpDirectivePageSet(page_set_module.PageSet): |
| + """ Chrome proxy test sites """ |
| + |
| + def __init__(self): |
| + super(ExpDirectivePageSet, self).__init__() |
| + |
| + urls_list = [ |
| + 'http://aws1.mdw.la/exptest/', |
| + ] |
| + |
| + for url in urls_list: |
| + self.AddUserStory(ExpDirectivePage(url, self)) |