1# Copyright 2015 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 5from telemetry.page import page_test 6 7class TimelineBasedPageTest(page_test.PageTest): 8 """Page test that collects metrics with TimelineBasedMeasurement. 9 10 WillRunStory(), Measure() and DidRunStory() are all done in story_runner 11 explicitly. We still need this wrapper around PageTest because it executes 12 some browser related functions in the parent class, which is needed by 13 Timeline Based Measurement benchmarks. This class will be removed after 14 page_test's hooks are fully removed. 15 """ 16 def __init__(self, tbm): 17 super(TimelineBasedPageTest, self).__init__() 18 self._measurement = tbm 19 20 @property 21 def measurement(self): 22 return self._measurement 23 24 def ValidateAndMeasurePage(self, page, tab, results): 25 """Collect all possible metrics and added them to results.""" 26 # Measurement is done explicitly in story_runner for timeline based page 27 # test. 28 pass 29