Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 5 /** | |
| 6 * A tracker to substitute for analytics.Tracker in tests. | |
| 7 * @construtor | |
| 8 * @implements {analytics.Tracker} | |
| 9 */ | |
| 10 TestTracker = function() {}; | |
| 11 | |
| 12 /** | |
| 13 * @param {!analytics.HitType|!analytics.EventBuilder} hitType | |
| 14 * @param {(!analytics.ParameterMap| | |
| 15 * !Object.<string, !analytics.Value>)=} opt_extraParams | |
| 16 * @return {!goog.async.Deferred} | |
| 17 */ | |
| 18 TestTracker.prototype.send = function(hitType, opt_extraParams) { | |
| 19 }; | |
| 20 | |
| 21 /** | |
| 22 * @param {string} description | |
| 23 * @return {!goog.async.Deferred} | |
| 24 */ | |
| 25 TestTracker.prototype.sendAppView= function() {}; | |
|
mtomasz
2015/02/12 01:51:03
nit: =\s -> \s=\s, please check also other places.
Ben Kwa
2015/02/17 23:01:30
Done.
| |
| 26 | |
| 27 /** | |
| 28 * @param {string} category | |
| 29 * @param {string} action | |
| 30 * @param {string=} opt_label | |
| 31 * @param {number=} opt_value | |
| 32 * @return {!goog.async.Deferred} | |
| 33 */ | |
| 34 TestTracker.prototype.sendEvent= function() {}; | |
| 35 | |
| 36 /** | |
| 37 * @param {string} network Specifies the social network, for example Facebook | |
| 38 * or Google Plus. | |
| 39 * @param {string} action Specifies the social interaction action. | |
| 40 * For example on Google Plus when a user clicks the +1 button, | |
| 41 * the social action is 'plus'. | |
| 42 * @param {string} target Specifies the target of a social interaction. | |
| 43 * This value is typically a URL but can be any text. | |
| 44 * @return {!goog.async.Deferred} | |
| 45 */ | |
| 46 TestTracker.prototype.sendSocial= function() {}; | |
| 47 | |
| 48 /** | |
| 49 * @param {string=} opt_description Specifies the description of an exception. | |
| 50 * @param {boolean=} opt_fatal Was the exception fatal. | |
| 51 * @return {!goog.async.Deferred} | |
| 52 */ | |
| 53 TestTracker.prototype.sendException= function() {}; | |
| 54 | |
| 55 /** | |
| 56 * @param {string} category Specifies the category of the timing. | |
| 57 * @param {string} variable Specifies the variable name of the timing. | |
| 58 * @param {number} value Specifies the value of the timing. | |
| 59 * @param {string=} opt_label Specifies the optional label of the timing. | |
| 60 * @param {number=} opt_sampleRate | |
| 61 * @return {!goog.async.Deferred} | |
| 62 */ | |
| 63 TestTracker.prototype.sendTiming= function() {}; | |
| 64 | |
| 65 TestTracker.prototype.forceSessionStart= function() {}; | |
| 66 | |
| 67 /** | |
| 68 * @param {string} category | |
| 69 * @param {string} variable | |
| 70 * @param {string=} opt_label | |
| 71 * @param {number=} opt_sampleRate | |
| 72 * @return {!TestTracker.Timing} | |
| 73 */ | |
| 74 TestTracker.prototype.startTiming= function() {}; | |
| OLD | NEW |