summaryrefslogtreecommitdiff
path: root/chromium/third_party/catapult/tracing/tracing/mre/progress_reporter.py
blob: b33d744da1307f67c0c0ebf13f35927499f64a7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.


class RunReporter(object):

  def __init__(self, canonical_url):
    self.canonical_url = canonical_url

  def DidAddFailure(self, failure):
    pass

  def DidRun(self, run_failed):
    pass


# Derived from telemetry ProgressReporter. Should stay close in architecture
# to telemetry ProgressReporter.
class ProgressReporter(object):

  def WillRun(self, canonical_url):
    return RunReporter(canonical_url)

  # TODO(eakuefner): Implement reduction, make this not take a result list.
  def DidFinishAllRuns(self, result_list):
    pass