Path: blob/trunk/third_party/closure/goog/testing/mockinterface.js
4500 views
/**1* @license2* Copyright The Closure Library Authors.3* SPDX-License-Identifier: Apache-2.04*/56/**7* @fileoverview An interface that all mocks should share.8*/910goog.setTestOnly('goog.testing.MockInterface');11goog.provide('goog.testing.MockInterface');1213goog.require('goog.Promise');14151617/** @interface */18goog.testing.MockInterface = function() {};192021/**22* Write down all the expected functions that have been called on the23* mock so far. From here on out, future function calls will be24* compared against this list.25*/26goog.testing.MockInterface.prototype.$replay = function() {};272829/**30* Reset the mock.31*/32goog.testing.MockInterface.prototype.$reset = function() {};333435/**36* Waits for the Mock to gather expectations and then performs verify.37* @return {!goog.Promise<undefined>}38*/39goog.testing.MockInterface.prototype.$waitAndVerify = function() {};404142/**43* Assert that the expected function calls match the actual calls.44*/45goog.testing.MockInterface.prototype.$verify = function() {};464748