Update sdk/platform-tools to version 26.0.0.
[android_tools.git] / sdk / platform-tools / systrace / catapult / telemetry / telemetry / web_perf / timeline_based_page_test.py
blob5413bb73b3a705390155db94d8f84f928327b42b
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.
5 from telemetry.page import legacy_page_test
7 class TimelineBasedPageTest(legacy_page_test.LegacyPageTest):
8 """Page test that collects metrics with TimelineBasedMeasurement.
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
20 @property
21 def measurement(self):
22 return self._measurement
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