Lines Matching full:overloaded
50 ## Mocking Overloaded Methods ##
52 You can mock overloaded functions as usual. No special attention is required:
61 // Overloaded on the types and/or numbers of arguments.
65 // Overloaded on the const-ness of this object.
80 **Note:** if you don't mock all versions of the overloaded method, the
487 * The general technique discussed here works for overloaded methods, but you'll need to tell the compiler which version you mean. To disambiguate a mock function (the one you specify inside the parentheses of `ON_CALL()`), see the "Selecting Between Overloaded Functions" section on this page; to disambiguate a fake function (the one you place inside `Invoke()`), use a `static_cast` to specify the function's type. For instance, if class `Foo` has methods `char DoThis(int n)` and `bool DoThis(double x) const`, and you want to invoke the latter, you need to write `Invoke(&fake_, static_cast<bool (FakeFoo::*)(double) const>(&FakeFoo::DoThis))` instead of `Invoke(&fake_, &FakeFoo::DoThis)` (The strange-looking thing inside the angled brackets of `static_cast` is the type of a function pointer to the second `DoThis()` method.).
739 ## Selecting Between Overloaded Functions ##
741 If you expect an overloaded function to be called, the compiler may
742 need some help on which overloaded version it is.
744 To disambiguate functions overloaded on the const-ness of this object,
768 To disambiguate overloaded functions with the same number of arguments
1188 `ElementsAre()` and `UnorderedElementsAre()` are overloaded to take 0
3409 You can also easily define actions overloaded on the number of parameters:
3496 `ACTION_TEMPLATE` and `ACTION`/`ACTION_P*` can be overloaded on the
3527 parameters, or the action definitions cannot be overloaded on the