Sacado Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Macros | Typedefs | Functions
gmock-function-mocker_test.cc File Reference
#include "gmock/gmock-function-mocker.h"
#include <functional>
#include <map>
#include <string>
#include <type_traits>
#include "gmock/gmock.h"
#include "gtest/gtest.h"
Include dependency graph for gmock-function-mocker_test.cc:

Go to the source code of this file.

Classes

class  testing::gmock_function_mocker_test::TemplatedCopyable< T >
 
class  testing::gmock_function_mocker_test::FooInterface
 
class  testing::gmock_function_mocker_test::MockFoo
 
class  testing::gmock_function_mocker_test::LegacyMockFoo
 
class  testing::gmock_function_mocker_test::FunctionMockerTest< T >
 
class  testing::gmock_function_mocker_test::MockB
 
class  testing::gmock_function_mocker_test::LegacyMockB
 
class  testing::gmock_function_mocker_test::ExpectCallTest< T >
 
class  testing::gmock_function_mocker_test::StackInterface< T >
 
class  testing::gmock_function_mocker_test::MockStack< T >
 
class  testing::gmock_function_mocker_test::LegacyMockStack< T >
 
class  testing::gmock_function_mocker_test::TemplateMockTest< T >
 
class  testing::gmock_function_mocker_test::MockOverloadedOnArgNumber
 
class  testing::gmock_function_mocker_test::LegacyMockOverloadedOnArgNumber
 
class  testing::gmock_function_mocker_test::OverloadedMockMethodTest< T >
 
class  testing::gmock_function_mocker_test::MockOverloadedOnConstness
 
class  testing::gmock_function_mocker_test::MockMethodMockFunctionSignatureTest< F >
 
struct  testing::gmock_function_mocker_test::MockMethodSizes0
 
struct  testing::gmock_function_mocker_test::MockMethodSizes1
 
struct  testing::gmock_function_mocker_test::MockMethodSizes2
 
struct  testing::gmock_function_mocker_test::MockMethodSizes3
 
struct  testing::gmock_function_mocker_test::MockMethodSizes4
 
struct  testing::gmock_function_mocker_test::LegacyMockMethodSizes0
 
struct  testing::gmock_function_mocker_test::LegacyMockMethodSizes1
 
struct  testing::gmock_function_mocker_test::LegacyMockMethodSizes2
 
struct  testing::gmock_function_mocker_test::LegacyMockMethodSizes3
 
struct  testing::gmock_function_mocker_test::LegacyMockMethodSizes4
 
struct  testing::gmock_function_mocker_test::MockMethodNoexceptSpecifier
 

Namespaces

 testing
 
 testing::gmock_function_mocker_test
 

Macros

#define MY_MOCK_METHODS1_
 
#define LEGACY_MY_MOCK_METHODS1_
 
#define MY_MOCK_METHODS2_
 

Typedefs

using testing::gmock_function_mocker_test::FunctionMockerTestTypes = ::testing::Types< MockFoo, LegacyMockFoo >
 
using testing::gmock_function_mocker_test::ExpectCallTestTypes = ::testing::Types< MockB, LegacyMockB >
 
using testing::gmock_function_mocker_test::TemplateMockTestTypes = ::testing::Types< MockStack< int >, LegacyMockStack< int >>
 
using testing::gmock_function_mocker_test::OverloadedMockMethodTestTypes = ::testing::Types< MockOverloadedOnArgNumber, LegacyMockOverloadedOnArgNumber >
 
using testing::gmock_function_mocker_test::MockMethodMockFunctionSignatureTypes = Types< void(), int(), void(int), int(int), int(bool, int), int(bool, char, int, int, int, int, int, char, int, bool)>
 

Functions

 testing::gmock_function_mocker_test::TYPED_TEST_SUITE (FunctionMockerTest, FunctionMockerTestTypes)
 
 testing::gmock_function_mocker_test::TYPED_TEST (FunctionMockerTest, MocksVoidFunction)
 
 testing::gmock_function_mocker_test::TYPED_TEST (FunctionMockerTest, MocksNullaryFunction)
 
 testing::gmock_function_mocker_test::TYPED_TEST (FunctionMockerTest, MocksUnaryFunction)
 
 testing::gmock_function_mocker_test::TYPED_TEST (FunctionMockerTest, MocksBinaryFunction)
 
 testing::gmock_function_mocker_test::TYPED_TEST (FunctionMockerTest, MocksDecimalFunction)
 
 testing::gmock_function_mocker_test::TYPED_TEST (FunctionMockerTest, MocksFunctionWithNonConstReferenceArgument)
 
 testing::gmock_function_mocker_test::TYPED_TEST (FunctionMockerTest, MocksFunctionWithConstReferenceArgument)
 
 testing::gmock_function_mocker_test::TYPED_TEST (FunctionMockerTest, MocksFunctionWithConstArgument)
 
 testing::gmock_function_mocker_test::TYPED_TEST (FunctionMockerTest, MocksFunctionsOverloadedOnArgumentNumber)
 
 testing::gmock_function_mocker_test::TYPED_TEST (FunctionMockerTest, MocksFunctionsOverloadedOnArgumentType)
 
 testing::gmock_function_mocker_test::TYPED_TEST (FunctionMockerTest, MocksFunctionsOverloadedOnConstnessOfThis)
 
 testing::gmock_function_mocker_test::TYPED_TEST (FunctionMockerTest, MocksReturnTypeWithComma)
 
 testing::gmock_function_mocker_test::TYPED_TEST (FunctionMockerTest, MocksTypeWithTemplatedCopyCtor)
 
 testing::gmock_function_mocker_test::TYPED_TEST_SUITE (ExpectCallTest, ExpectCallTestTypes)
 
 testing::gmock_function_mocker_test::TYPED_TEST (ExpectCallTest, UnmentionedFunctionCanBeCalledAnyNumberOfTimes)
 
 testing::gmock_function_mocker_test::TYPED_TEST_SUITE (TemplateMockTest, TemplateMockTestTypes)
 
 testing::gmock_function_mocker_test::TYPED_TEST (TemplateMockTest, Works)
 
 testing::gmock_function_mocker_test::TYPED_TEST (TemplateMockTest, MethodWithCommaInReturnTypeWorks)
 
 testing::gmock_function_mocker_test::TYPED_TEST_SUITE (OverloadedMockMethodTest, OverloadedMockMethodTestTypes)
 
 testing::gmock_function_mocker_test::TYPED_TEST (OverloadedMockMethodTest, CanOverloadOnArgNumberInMacroBody)
 
 testing::gmock_function_mocker_test::TEST (MockMethodOverloadedMockMethodTest, CanOverloadOnConstnessInMacroBody)
 
 testing::gmock_function_mocker_test::TEST (MockMethodMockFunctionTest, WorksForVoidNullary)
 
 testing::gmock_function_mocker_test::TEST (MockMethodMockFunctionTest, WorksForNonVoidNullary)
 
 testing::gmock_function_mocker_test::TEST (MockMethodMockFunctionTest, WorksForVoidUnary)
 
 testing::gmock_function_mocker_test::TEST (MockMethodMockFunctionTest, WorksForNonVoidBinary)
 
 testing::gmock_function_mocker_test::TEST (MockMethodMockFunctionTest, WorksFor10Arguments)
 
 testing::gmock_function_mocker_test::TEST (MockMethodMockFunctionTest, AsStdFunction)
 
 testing::gmock_function_mocker_test::TEST (MockMethodMockFunctionTest, AsStdFunctionReturnsReference)
 
 testing::gmock_function_mocker_test::TEST (MockMethodMockFunctionTest, AsStdFunctionWithReferenceParameter)
 
 testing::gmock_function_mocker_test::TYPED_TEST_SUITE (MockMethodMockFunctionSignatureTest, MockMethodMockFunctionSignatureTypes)
 
 testing::gmock_function_mocker_test::TYPED_TEST (MockMethodMockFunctionSignatureTest, IsMockFunctionTemplateArgumentDeducedForRawSignature)
 
 testing::gmock_function_mocker_test::TYPED_TEST (MockMethodMockFunctionSignatureTest, IsMockFunctionTemplateArgumentDeducedForStdFunction)
 
 testing::gmock_function_mocker_test::TYPED_TEST (MockMethodMockFunctionSignatureTest, IsMockFunctionCallMethodSignatureTheSameForRawSignatureAndStdFunction)
 
 testing::gmock_function_mocker_test::TYPED_TEST (MockMethodMockFunctionSignatureTest, IsMockFunctionAsStdFunctionMethodSignatureTheSameForRawSignatureAndStdFunction)
 
 testing::gmock_function_mocker_test::TEST (MockMethodMockFunctionTest, MockMethodSizeOverhead)
 
void testing::gmock_function_mocker_test::hasTwoParams (int, int)
 
void testing::gmock_function_mocker_test::MaybeThrows ()
 
void testing::gmock_function_mocker_test::DoesntThrow () noexcept
 
 testing::gmock_function_mocker_test::TEST (MockMethodMockFunctionTest, NoexceptSpecifierPreserved)
 

Macro Definition Documentation

#define MY_MOCK_METHODS1_
Value:
MOCK_METHOD(void, Overloaded, ()); \
MOCK_METHOD(int, Overloaded, (int), (const)); \
MOCK_METHOD(bool, Overloaded, (bool f, int n))
#define MOCK_METHOD(...)

Definition at line 636 of file gmock-function-mocker_test.cc.

#define LEGACY_MY_MOCK_METHODS1_
Value:
MOCK_METHOD0(Overloaded, void()); \
MOCK_CONST_METHOD1(Overloaded, int(int n)); \
MOCK_METHOD2(Overloaded, bool(bool f, int n))
#define MOCK_METHOD0(m,...)
#define MOCK_METHOD2(m,...)
#define MOCK_CONST_METHOD1(m,...)

Definition at line 641 of file gmock-function-mocker_test.cc.

#define MY_MOCK_METHODS2_
Value:
MOCK_CONST_METHOD1(Overloaded, int(int n)); \
MOCK_METHOD1(Overloaded, int(int n))
#define MOCK_METHOD1(m,...)
#define MOCK_CONST_METHOD1(m,...)

Definition at line 684 of file gmock-function-mocker_test.cc.