1cb93a386Sopenharmony_ci# Copyright 2014 The Chromium Authors. All rights reserved.
2cb93a386Sopenharmony_ci# Use of this source code is governed by a BSD-style license that can be
3cb93a386Sopenharmony_ci# found in the LICENSE file.
4cb93a386Sopenharmony_ci# pylint: disable=W0401,W0614
5cb93a386Sopenharmony_ci
6cb93a386Sopenharmony_ci
7cb93a386Sopenharmony_cifrom telemetry import story
8cb93a386Sopenharmony_cifrom telemetry.page import page as page_module
9cb93a386Sopenharmony_cifrom telemetry.page import shared_page_state
10cb93a386Sopenharmony_ci
11cb93a386Sopenharmony_ci
12cb93a386Sopenharmony_ciclass SkiaBuildbotDesktopPage(page_module.Page):
13cb93a386Sopenharmony_ci
14cb93a386Sopenharmony_ci  def __init__(self, url, page_set):
15cb93a386Sopenharmony_ci    super(SkiaBuildbotDesktopPage, self).__init__(
16cb93a386Sopenharmony_ci        url=url,
17cb93a386Sopenharmony_ci        name=url,
18cb93a386Sopenharmony_ci        page_set=page_set,
19cb93a386Sopenharmony_ci        shared_page_state_class=shared_page_state.SharedDesktopPageState)
20cb93a386Sopenharmony_ci    self.archive_data_file = 'data/skia_chalkboard_desktop.json'
21cb93a386Sopenharmony_ci
22cb93a386Sopenharmony_ci
23cb93a386Sopenharmony_ciclass SkiaChalkboardDesktopPageSet(story.StorySet):
24cb93a386Sopenharmony_ci
25cb93a386Sopenharmony_ci  """ Pages designed to represent the median, not highly optimized web """
26cb93a386Sopenharmony_ci
27cb93a386Sopenharmony_ci  def __init__(self):
28cb93a386Sopenharmony_ci    super(SkiaChalkboardDesktopPageSet, self).__init__(
29cb93a386Sopenharmony_ci      archive_data_file='data/skia_chalkboard_desktop.json')
30cb93a386Sopenharmony_ci
31cb93a386Sopenharmony_ci    urls_list = [
32cb93a386Sopenharmony_ci      # Why: from fmalita
33cb93a386Sopenharmony_ci      ('https://testdrive-archive.azurewebsites.net/performance/chalkboard/'
34cb93a386Sopenharmony_ci       'Images/Chalkboard.svg'),
35cb93a386Sopenharmony_ci    ]
36cb93a386Sopenharmony_ci
37cb93a386Sopenharmony_ci    for url in urls_list:
38cb93a386Sopenharmony_ci      self.AddStory(SkiaBuildbotDesktopPage(url, self))
39