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 # pylint: disable=W0401,W0614 5 from telemetry.page.actions.all_page_actions import * 6 from telemetry.page import page as page_module 7 from telemetry.page import page_set as page_set_module 8 9 class MozPage(page_module.Page): 10 11 def __init__(self, url, page_set): 12 super(MozPage, self).__init__(url=url, page_set=page_set) 13 14 15 class MozPageSet(page_set_module.PageSet): 16 17 """ Moz page_cycler benchmark """ 18 19 def __init__(self): 20 super(MozPageSet, self).__init__( 21 # pylint: disable=C0301 22 serving_dirs=set(['../../../../data/page_cycler/moz']), 23 bucket=page_set_module.PARTNER_BUCKET) 24 25 urls_list = [ 26 'file://../../../../data/page_cycler/moz/bugzilla.mozilla.org/', 27 'file://../../../../data/page_cycler/moz/espn.go.com/', 28 'file://../../../../data/page_cycler/moz/home.netscape.com/', 29 'file://../../../../data/page_cycler/moz/hotwired.lycos.com/', 30 'file://../../../../data/page_cycler/moz/lxr.mozilla.org/', 31 'file://../../../../data/page_cycler/moz/my.netscape.com/', 32 'file://../../../../data/page_cycler/moz/news.cnet.com/', 33 'file://../../../../data/page_cycler/moz/slashdot.org/', 34 'file://../../../../data/page_cycler/moz/vanilla-page/', 35 'file://../../../../data/page_cycler/moz/web.icq.com/', 36 'file://../../../../data/page_cycler/moz/www.altavista.com/', 37 'file://../../../../data/page_cycler/moz/www.amazon.com/', 38 'file://../../../../data/page_cycler/moz/www.aol.com/', 39 'file://../../../../data/page_cycler/moz/www.apple.com/', 40 'file://../../../../data/page_cycler/moz/www.cnn.com/', 41 'file://../../../../data/page_cycler/moz/www.compuserve.com/', 42 'file://../../../../data/page_cycler/moz/www.digitalcity.com/', 43 'file://../../../../data/page_cycler/moz/www.ebay.com/', 44 'file://../../../../data/page_cycler/moz/www.excite.com/', 45 'file://../../../../data/page_cycler/moz/www.expedia.com/', 46 'file://../../../../data/page_cycler/moz/www.google.com/', 47 'file://../../../../data/page_cycler/moz/www.iplanet.com/', 48 'file://../../../../data/page_cycler/moz/www.mapquest.com/', 49 'file://../../../../data/page_cycler/moz/www.microsoft.com/', 50 'file://../../../../data/page_cycler/moz/www.moviefone.com/', 51 'file://../../../../data/page_cycler/moz/www.msn.com/', 52 'file://../../../../data/page_cycler/moz/www.msnbc.com/', 53 'file://../../../../data/page_cycler/moz/www.nytimes.com/', 54 'file://../../../../data/page_cycler/moz/www.nytimes.com_Table/', 55 'file://../../../../data/page_cycler/moz/www.quicken.com/', 56 'file://../../../../data/page_cycler/moz/www.spinner.com/', 57 'file://../../../../data/page_cycler/moz/www.sun.com/', 58 'file://../../../../data/page_cycler/moz/www.time.com/', 59 'file://../../../../data/page_cycler/moz/www.tomshardware.com/', 60 'file://../../../../data/page_cycler/moz/www.travelocity.com/', 61 'file://../../../../data/page_cycler/moz/www.voodooextreme.com/', 62 'file://../../../../data/page_cycler/moz/www.w3.org_DOML2Core/', 63 'file://../../../../data/page_cycler/moz/www.wired.com/', 64 'file://../../../../data/page_cycler/moz/www.yahoo.com/', 65 'file://../../../../data/page_cycler/moz/www.zdnet.com/', 66 'file://../../../../data/page_cycler/moz/www.zdnet.com_Gamespot.com/' 67 ] 68 69 for url in urls_list: 70 self.AddPage(MozPage(url, self)) 71