Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
seleniumhq
GitHub Repository: seleniumhq/selenium
Path: blob/trunk/third_party/closure/goog/testing/mockinterface.js
4500 views
1
/**
2
* @license
3
* Copyright The Closure Library Authors.
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
/**
8
* @fileoverview An interface that all mocks should share.
9
*/
10
11
goog.setTestOnly('goog.testing.MockInterface');
12
goog.provide('goog.testing.MockInterface');
13
14
goog.require('goog.Promise');
15
16
17
18
/** @interface */
19
goog.testing.MockInterface = function() {};
20
21
22
/**
23
* Write down all the expected functions that have been called on the
24
* mock so far. From here on out, future function calls will be
25
* compared against this list.
26
*/
27
goog.testing.MockInterface.prototype.$replay = function() {};
28
29
30
/**
31
* Reset the mock.
32
*/
33
goog.testing.MockInterface.prototype.$reset = function() {};
34
35
36
/**
37
* Waits for the Mock to gather expectations and then performs verify.
38
* @return {!goog.Promise<undefined>}
39
*/
40
goog.testing.MockInterface.prototype.$waitAndVerify = function() {};
41
42
43
/**
44
* Assert that the expected function calls match the actual calls.
45
*/
46
goog.testing.MockInterface.prototype.$verify = function() {};
47
48