2016-08-03 22:00:07 +00:00
|
|
|
/**
|
|
|
|
|
* @license
|
|
|
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
|
|
|
* found in the LICENSE file at https://angular.io/license
|
|
|
|
|
*/
|
|
|
|
|
|
2015-05-27 21:57:54 +00:00
|
|
|
import {MeasureValues} from './measure_values';
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* A reporter reports measure values and the valid sample.
|
|
|
|
|
*/
|
2015-09-25 21:48:17 +00:00
|
|
|
export abstract class Reporter {
|
2016-06-03 00:30:40 +00:00
|
|
|
static bindTo(delegateToken): any[] {
|
|
|
|
|
return [{provide: Reporter, useFactory: (delegate) => delegate, deps: [delegateToken]}];
|
2015-05-27 21:57:54 +00:00
|
|
|
}
|
|
|
|
|
|
2016-08-25 07:50:16 +00:00
|
|
|
reportMeasureValues(values: MeasureValues): Promise<any> { throw new Error('NYI'); }
|
2015-05-27 21:57:54 +00:00
|
|
|
|
2015-08-28 18:29:19 +00:00
|
|
|
reportSample(completeSample: MeasureValues[], validSample: MeasureValues[]): Promise<any> {
|
2016-08-25 07:50:16 +00:00
|
|
|
throw new Error('NYI');
|
2015-05-27 21:57:54 +00:00
|
|
|
}
|
|
|
|
|
}
|