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 5 6class ProgressReporter(object): 7 """A class that reports progress of a benchmark. 8 9 The reporter produces output whenever a significant event happens 10 during the progress of a benchmark, including (but not limited to): 11 when a page run is started, when a page run finished, any failures 12 during a page run. 13 14 The default implementation outputs nothing. 15 """ 16 17 def DidAddValue(self, value): 18 pass 19 20 def WillRunPage(self, page_test_results): 21 pass 22 23 def DidRunPage(self, page_test_results): 24 pass 25 26 def DidFinishAllTests(self, page_test_results): 27 pass 28