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

Unified Diff: tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/client_type.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, 8 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/client_type.py
diff --git a/tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/client_type.py b/tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/client_type.py
deleted file mode 100644
index bcd68b57f14b73c483d78cabd515385d9227788e..0000000000000000000000000000000000000000
--- a/tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/client_type.py
+++ /dev/null
@@ -1,74 +0,0 @@
-# Copyright 2014 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 ClientTypePage(page_module.Page):
- """A test page for the chrome proxy client type tests.
-
- Attributes:
- bypass_for_client_type: The client type Chrome-Proxy header directive that
- would get a bypass when this page is fetched through the data
- reduction proxy. For example, a value of "android" means that this
- page would cause a bypass when fetched from a client that sets
- "Chrome-Proxy: c=android".
- """
-
- def __init__(self, url, page_set, bypass_for_client_type):
- super(ClientTypePage, self).__init__(url=url, page_set=page_set)
- self.bypass_for_client_type = bypass_for_client_type
-
-
-class ClientTypePageSet(page_set_module.PageSet):
- """Chrome proxy test sites"""
-
- def __init__(self):
- super(ClientTypePageSet, self).__init__()
-
- # Page that should not bypass for any client types. This page is here in
- # order to determine the Chrome-Proxy client type value before running any
- # of the following pages, since there's no way to get the client type value
- # from a request that was bypassed.
- self.AddUserStory(ClientTypePage(
- url='http://aws1.mdw.la/fw',
- page_set=self,
- bypass_for_client_type='none'))
-
- # Page that should cause a bypass for android chrome clients.
- self.AddUserStory(ClientTypePage(
- url='http://check.googlezip.net/chrome-proxy-header/c_android/',
- page_set=self,
- bypass_for_client_type='android'))
-
- # Page that should cause a bypass for android webview clients.
- self.AddUserStory(ClientTypePage(
- url='http://check.googlezip.net/chrome-proxy-header/c_webview/',
- page_set=self,
- bypass_for_client_type='webview'))
-
- # Page that should cause a bypass for iOS clients.
- self.AddUserStory(ClientTypePage(
- url='http://check.googlezip.net/chrome-proxy-header/c_ios/',
- page_set=self,
- bypass_for_client_type='ios'))
-
- # Page that should cause a bypass for Linux clients.
- self.AddUserStory(ClientTypePage(
- url='http://check.googlezip.net/chrome-proxy-header/c_linux/',
- page_set=self,
- bypass_for_client_type='linux'))
-
- # Page that should cause a bypass for Windows clients.
- self.AddUserStory(ClientTypePage(
- url='http://check.googlezip.net/chrome-proxy-header/c_win/',
- page_set=self,
- bypass_for_client_type='win'))
-
- # Page that should cause a bypass for ChromeOS clients.
- self.AddUserStory(ClientTypePage(
- url='http://check.googlezip.net/chrome-proxy-header/c_chromeos/',
- page_set=self,
- bypass_for_client_type='chromeos'))

Powered by Google App Engine
This is Rietveld 408576698