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.
4 from telemetry
.page
import page
as page_module
5 from telemetry
import story
8 class AlexaUsPage(page_module
.Page
):
10 def __init__(self
, url
, page_set
):
11 super(AlexaUsPage
, self
).__init
__(url
=url
, page_set
=page_set
)
14 class AlexaUsPageSet(story
.StorySet
):
16 """ Alexa US page_cycler benchmark """
19 super(AlexaUsPageSet
, self
).__init
__(
20 # pylint: disable=C0301
21 serving_dirs
=set(['../../../../data/page_cycler/alexa_us']))
24 # pylint: disable=C0301
25 'file://../../../../data/page_cycler/alexa_us/accountservices.passport.net/',
26 'file://../../../../data/page_cycler/alexa_us/sfbay.craigslist.org/',
27 'file://../../../../data/page_cycler/alexa_us/www.amazon.com/',
28 'file://../../../../data/page_cycler/alexa_us/www.aol.com/',
29 'file://../../../../data/page_cycler/alexa_us/www.bbc.co.uk/',
30 'file://../../../../data/page_cycler/alexa_us/www.blogger.com/',
31 'file://../../../../data/page_cycler/alexa_us/www.cnn.com/',
32 'file://../../../../data/page_cycler/alexa_us/www.ebay.com/',
33 'file://../../../../data/page_cycler/alexa_us/www.flickr.com/',
34 'file://../../../../data/page_cycler/alexa_us/www.friendster.com/',
35 'file://../../../../data/page_cycler/alexa_us/www.go.com/',
36 'file://../../../../data/page_cycler/alexa_us/www.google.com/',
37 'file://../../../../data/page_cycler/alexa_us/www.imdb.com/',
38 'file://../../../../data/page_cycler/alexa_us/www.megaupload.com/',
39 'file://../../../../data/page_cycler/alexa_us/www.msn.com/',
40 'file://../../../../data/page_cycler/alexa_us/www.myspace.com/',
41 'file://../../../../data/page_cycler/alexa_us/www.orkut.com/',
42 'file://../../../../data/page_cycler/alexa_us/www.wikipedia.org/',
43 'file://../../../../data/page_cycler/alexa_us/www.xanga.com/',
44 'file://../../../../data/page_cycler/alexa_us/www.youtube.com/'
48 self
.AddStory(AlexaUsPage(url
, self
))