Lines Matching refs:Function
88 // Implements a mock function.
100 // Base class for function mockers.
103 // Protects the mock object registry (in class Mock), all function
107 // mock function Foo() is called, it needs to consult its expectations
109 // call a mock function (either Foo() or a different one) at the same
112 // expectation gets picked. Therefore, we sequence all mock function
120 // type-agnostic part of the function mocker interface. Its pure
127 // Verifies that all expectations on this mock function have been
133 // Clears the ON_CALL()s set on this mock function.
164 // Returns the expectation that matches the given function arguments
176 // Prints the given function arguments to the ostream.
189 // name of the mock function. Will be called upon each invocation
190 // of this mock function.
205 // Returns the result of invoking this mock function with the given
206 // arguments. This function can be safely called from multiple
220 // which must be an expectation on this mock function.
228 // Name of the function being mocked. Only valid after this mock
232 // All default action specs for this function mocker.
235 // All expectations for this function mocker.
282 typedef typename Function<F>::ArgumentTuple ArgumentTuple;
283 typedef typename Function<F>::ArgumentMatcherTuple ArgumentMatcherTuple;
386 // Needed for a function mocker to register itself (so that we know
696 // Describes how many times a function call matching this
825 template <typename Function>
848 // and can change as the mock function is called.
862 // Impements an expectation for the given function type.
866 typedef typename Function<F>::ArgumentTuple ArgumentTuple;
867 typedef typename Function<F>::ArgumentMatcherTuple ArgumentMatcherTuple;
868 typedef typename Function<F>::Result Result;
1058 template <typename Function>
1129 // be executed as currently the ExplainMatchResultTo() function
1130 // is called only when the mock function call does NOT match the
1166 // Given the arguments of a mock function call, if the call will
1182 *what << "Mock function called more times than expected - ";
1200 *what << "Mock function call matches " << source_text() <<"...\n";
1216 // function.
1232 typedef typename internal::Function<F>::ArgumentTuple ArgumentTuple;
1233 typedef typename internal::Function<F>::ArgumentMatcherTuple
1236 // Constructs a MockSpec object, given the function mocker object
1241 // Adds a new default action spec to the function mocker and returns
1250 // Adds a new expectation spec to the function mocker and returns
1261 template <typename Function>
1268 // The function mocker that owns this spec.
1287 // a void-typed variable or pass a void value to a function.
1326 // Performs the given mock function's default action and returns the
1331 const typename Function<F>::ArgumentTuple& args,
1342 const typename Function<F>::ArgumentTuple& args) {
1361 // Performs the given mock function's default action and returns NULL;
1365 const typename Function<F>::ArgumentTuple& args,
1375 const typename Function<F>::ArgumentTuple& args) {
1381 // The base of the function mocker class for the given function type.
1387 typedef typename Function<F>::Result Result;
1388 typedef typename Function<F>::ArgumentTuple ArgumentTuple;
1389 typedef typename Function<F>::ArgumentMatcherTuple ArgumentMatcherTuple;
1394 // function have been satisfied. If not, it will report Google Test
1404 // Returns the ON_CALL spec that matches this mock function with the
1420 // Performs the default action of this mock function on the given arguments
1433 call_description + "\n The mock function has no default action "
1466 // clears the ON_CALL()s set on this mock function.
1479 template <typename Function>
1484 // Returns the result of invoking this mock function with the given
1485 // arguments. This function can be safely called from multiple
1493 // Adds and returns a default action spec for this mock function.
1504 // Adds and returns an expectation spec for this mock function.
1527 // being described on this function mocker.
1560 *os << "Uninteresting mock function call - ";
1562 *os << " Function call: " << Name();
1566 // Returns the expectation that matches the given function arguments
1580 // action does (it can invoke an arbitrary user function or even a
1581 // mock function) and excessive locking could cause a dead lock.
1607 // Prints the given function arguments to the ostream.
1639 *os << "\nUnexpected mock function call - ";
1645 // current mock function call.
1670 // being described on this function mocker.
1675 // Thus we disallow copying function mockers. If the user really
1694 // Verifies that all expectations on this mock function have been
1712 // Const(x) is a convenient function for obtaining a const reference