Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gmock_output_test_.cc File Reference
#include "gmock/gmock.h"
#include <stdio.h>
#include <string>
#include "gtest/gtest.h"
+ Include dependency graph for gmock_output_test_.cc:

Go to the source code of this file.

Classes

class  MockFoo
 
class  GMockOutputTest
 

Functions

 TEST_F (GMockOutputTest, ExpectedCall)
 
 TEST_F (GMockOutputTest, ExpectedCallToVoidFunction)
 
 TEST_F (GMockOutputTest, ExplicitActionsRunOut)
 
 TEST_F (GMockOutputTest, UnexpectedCall)
 
 TEST_F (GMockOutputTest, UnexpectedCallToVoidFunction)
 
 TEST_F (GMockOutputTest, ExcessiveCall)
 
 TEST_F (GMockOutputTest, ExcessiveCallToVoidFunction)
 
 TEST_F (GMockOutputTest, UninterestingCall)
 
 TEST_F (GMockOutputTest, UninterestingCallToVoidFunction)
 
 TEST_F (GMockOutputTest, RetiredExpectation)
 
 TEST_F (GMockOutputTest, UnsatisfiedPrerequisite)
 
 TEST_F (GMockOutputTest, UnsatisfiedPrerequisites)
 
 TEST_F (GMockOutputTest, UnsatisfiedWith)
 
 TEST_F (GMockOutputTest, UnsatisfiedExpectation)
 
 TEST_F (GMockOutputTest, MismatchArguments)
 
 TEST_F (GMockOutputTest, MismatchWith)
 
 TEST_F (GMockOutputTest, MismatchArgumentsAndWith)
 
 TEST_F (GMockOutputTest, UnexpectedCallWithDefaultAction)
 
 TEST_F (GMockOutputTest, ExcessiveCallWithDefaultAction)
 
 TEST_F (GMockOutputTest, UninterestingCallWithDefaultAction)
 
 TEST_F (GMockOutputTest, ExplicitActionsRunOutWithDefaultAction)
 
 TEST_F (GMockOutputTest, CatchesLeakedMocks)
 
void TestCatchesLeakedMocksInAdHocTests ()
 
int main (int argc, char **argv)
 

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 281 of file gmock_output_test_.cc.

View newest version in sPHENIX GitHub at line 281 of file gmock_output_test_.cc

References GMOCK_FLAG, testing::InitGoogleMock(), RUN_ALL_TESTS(), TestCatchesLeakedMocksInAdHocTests(), and verbose.

+ Here is the call graph for this function:

TEST_F ( GMockOutputTest  ,
ExpectedCall   
)

Definition at line 68 of file gmock_output_test_.cc.

View newest version in sPHENIX GitHub at line 68 of file gmock_output_test_.cc

References _, EXPECT_CALL, GMOCK_FLAG, and verbose.

TEST_F ( GMockOutputTest  ,
ExpectedCallToVoidFunction   
)

Definition at line 77 of file gmock_output_test_.cc.

View newest version in sPHENIX GitHub at line 77 of file gmock_output_test_.cc

References _, EXPECT_CALL, GMOCK_FLAG, and verbose.

TEST_F ( GMockOutputTest  ,
ExplicitActionsRunOut   
)

Definition at line 86 of file gmock_output_test_.cc.

View newest version in sPHENIX GitHub at line 86 of file gmock_output_test_.cc

References _, EXPECT_CALL, and testing::Return().

+ Here is the call graph for this function:

TEST_F ( GMockOutputTest  ,
UnexpectedCall   
)

Definition at line 94 of file gmock_output_test_.cc.

View newest version in sPHENIX GitHub at line 94 of file gmock_output_test_.cc

References _, and EXPECT_CALL.

TEST_F ( GMockOutputTest  ,
UnexpectedCallToVoidFunction   
)

Definition at line 101 of file gmock_output_test_.cc.

View newest version in sPHENIX GitHub at line 101 of file gmock_output_test_.cc

References _, and EXPECT_CALL.

TEST_F ( GMockOutputTest  ,
ExcessiveCall   
)

Definition at line 108 of file gmock_output_test_.cc.

View newest version in sPHENIX GitHub at line 108 of file gmock_output_test_.cc

References _, and EXPECT_CALL.

TEST_F ( GMockOutputTest  ,
ExcessiveCallToVoidFunction   
)

Definition at line 115 of file gmock_output_test_.cc.

View newest version in sPHENIX GitHub at line 115 of file gmock_output_test_.cc

References _, and EXPECT_CALL.

TEST_F ( GMockOutputTest  ,
UninterestingCall   
)

Definition at line 122 of file gmock_output_test_.cc.

View newest version in sPHENIX GitHub at line 122 of file gmock_output_test_.cc

TEST_F ( GMockOutputTest  ,
UninterestingCallToVoidFunction   
)

Definition at line 126 of file gmock_output_test_.cc.

View newest version in sPHENIX GitHub at line 126 of file gmock_output_test_.cc

TEST_F ( GMockOutputTest  ,
RetiredExpectation   
)

Definition at line 130 of file gmock_output_test_.cc.

View newest version in sPHENIX GitHub at line 130 of file gmock_output_test_.cc

References _, and EXPECT_CALL.

TEST_F ( GMockOutputTest  ,
UnsatisfiedPrerequisite   
)

Definition at line 140 of file gmock_output_test_.cc.

View newest version in sPHENIX GitHub at line 140 of file gmock_output_test_.cc

References _, EXPECT_CALL, and physmon_simulation::s.

TEST_F ( GMockOutputTest  ,
UnsatisfiedPrerequisites   
)

Definition at line 154 of file gmock_output_test_.cc.

View newest version in sPHENIX GitHub at line 154 of file gmock_output_test_.cc

References _, and EXPECT_CALL.

TEST_F ( GMockOutputTest  ,
UnsatisfiedWith   
)

Definition at line 170 of file gmock_output_test_.cc.

View newest version in sPHENIX GitHub at line 170 of file gmock_output_test_.cc

References _, EXPECT_CALL, and testing::Ge().

+ Here is the call graph for this function:

TEST_F ( GMockOutputTest  ,
UnsatisfiedExpectation   
)

Definition at line 174 of file gmock_output_test_.cc.

View newest version in sPHENIX GitHub at line 174 of file gmock_output_test_.cc

References _, and EXPECT_CALL.

TEST_F ( GMockOutputTest  ,
MismatchArguments   
)

Definition at line 182 of file gmock_output_test_.cc.

View newest version in sPHENIX GitHub at line 182 of file gmock_output_test_.cc

References _, EXPECT_CALL, testing::Ge(), testing::Ref(), and physmon_simulation::s.

+ Here is the call graph for this function:

TEST_F ( GMockOutputTest  ,
MismatchWith   
)

Definition at line 190 of file gmock_output_test_.cc.

View newest version in sPHENIX GitHub at line 190 of file gmock_output_test_.cc

References EXPECT_CALL, and testing::Ge().

+ Here is the call graph for this function:

TEST_F ( GMockOutputTest  ,
MismatchArgumentsAndWith   
)

Definition at line 198 of file gmock_output_test_.cc.

View newest version in sPHENIX GitHub at line 198 of file gmock_output_test_.cc

References EXPECT_CALL, and testing::Ge().

+ Here is the call graph for this function:

TEST_F ( GMockOutputTest  ,
UnexpectedCallWithDefaultAction   
)

Definition at line 206 of file gmock_output_test_.cc.

View newest version in sPHENIX GitHub at line 206 of file gmock_output_test_.cc

References _, EXPECT_CALL, ON_CALL, and testing::Return().

+ Here is the call graph for this function:

TEST_F ( GMockOutputTest  ,
ExcessiveCallWithDefaultAction   
)

Definition at line 218 of file gmock_output_test_.cc.

View newest version in sPHENIX GitHub at line 218 of file gmock_output_test_.cc

References _, EXPECT_CALL, ON_CALL, and testing::Return().

+ Here is the call graph for this function:

TEST_F ( GMockOutputTest  ,
UninterestingCallWithDefaultAction   
)

Definition at line 233 of file gmock_output_test_.cc.

View newest version in sPHENIX GitHub at line 233 of file gmock_output_test_.cc

References _, ON_CALL, and testing::Return().

+ Here is the call graph for this function:

TEST_F ( GMockOutputTest  ,
ExplicitActionsRunOutWithDefaultAction   
)

Definition at line 243 of file gmock_output_test_.cc.

View newest version in sPHENIX GitHub at line 243 of file gmock_output_test_.cc

References _, EXPECT_CALL, ON_CALL, and testing::Return().

+ Here is the call graph for this function:

TEST_F ( GMockOutputTest  ,
CatchesLeakedMocks   
)

Definition at line 254 of file gmock_output_test_.cc.

View newest version in sPHENIX GitHub at line 254 of file gmock_output_test_.cc

References _, testing::AnyNumber(), EXPECT_CALL, ON_CALL, and testing::Return().

+ Here is the call graph for this function:

void TestCatchesLeakedMocksInAdHocTests ( )

Definition at line 271 of file gmock_output_test_.cc.

View newest version in sPHENIX GitHub at line 271 of file gmock_output_test_.cc

References _, EXPECT_CALL, and testing::gmock_matchers_test::foo.

Referenced by main().

+ Here is the caller graph for this function: