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

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

Issue 942863004: Integration test for “lo-fi” mode in Chrome-Proxy request header (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/lo_fi.py
diff --git a/tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/lo_fi.py b/tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/lo_fi.py
new file mode 100644
index 0000000000000000000000000000000000000000..b71ecf703303c8e2f6eecea70d11b0bbaea68cb1
--- /dev/null
+++ b/tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/lo_fi.py
@@ -0,0 +1,27 @@
+# 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 LoFiPage(page_module.Page):
+
bengr 2015/02/27 23:38:38 Add a comment.
megjablon 2015/02/28 00:57:33 Done.
+ def __init__(self, url, page_set):
+ super(LoFiPage, self).__init__(url=url, page_set=page_set)
+
+
+class LoFiPageSet(page_set_module.PageSet):
+
bengr 2015/02/27 23:38:38 Remove blank line.
megjablon 2015/02/28 00:57:33 We have this spacing in all these files. Should I
bengr 2015/03/03 18:20:31 If you'd like to. Not required.
+ """ Chrome proxy test sites """
+
+ def __init__(self):
+ super(LoFiPageSet, self).__init__()
+
+ urls_list = [
+ 'http://aws1.mdw.la/fw/buddy.jpg',
+ ]
+
+ for url in urls_list:
+ self.AddUserStory(LoFiPage(url, self))

Powered by Google App Engine
This is Rietveld 408576698