1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 from telemetry
.page
import page
as page_module
6 from telemetry
import story
9 class ReenableAfterBypassPage(page_module
.Page
):
10 """A test page for the re-enable after bypass tests.
13 bypass_seconds_min: The minimum number of seconds that the bypass
14 triggered by loading this page should last.
15 bypass_seconds_max: The maximum number of seconds that the bypass
16 triggered by loading this page should last.
24 super(ReenableAfterBypassPage
, self
).__init
__(url
=url
, page_set
=page_set
)
25 self
.bypass_seconds_min
= bypass_seconds_min
26 self
.bypass_seconds_max
= bypass_seconds_max
29 class ReenableAfterBypassStorySet(story
.StorySet
):
30 """ Chrome proxy test sites """
33 super(ReenableAfterBypassStorySet
, self
).__init
__()
35 # Test page for "Chrome-Proxy: block=0". Loading this page should cause all
36 # data reduction proxies to be bypassed for one to five minutes.
37 self
.AddStory(ReenableAfterBypassPage(
38 url
="http://check.googlezip.net/block/",
40 bypass_seconds_min
=60,
41 bypass_seconds_max
=300))