v8toolkit  0.0.1
Utility library for embedding V8 Javascript engine in a c++ program
Classes | Namespaces | Functions
gmock_link_test.h File Reference
#include "gmock/gmock.h"
#include <errno.h>
#include "gmock/internal/gmock-port.h"
#include "gtest/gtest.h"
#include <iostream>
#include <vector>
Include dependency graph for gmock_link_test.h:

Go to the source code of this file.

Classes

class  Interface
 
class  Mock
 
class  InvokeHelper
 
class  FieldHelper
 

Namespaces

 

Functions

 TEST (LinkTest, TestReturnVoid)
 
 TEST (LinkTest, TestReturn)
 
 TEST (LinkTest, TestReturnNull)
 
 TEST (LinkTest, TestReturnRef)
 
 TEST (LinkTest, TestAssign)
 
 TEST (LinkTest, TestSetArgPointee)
 
 TEST (LinkTest, TestSetArrayArgument)
 
 TEST (LinkTest, TestSetErrnoAndReturn)
 
 TEST (LinkTest, TestInvoke)
 
 TEST (LinkTest, TestInvokeWithoutArgs)
 
 TEST (LinkTest, TestInvokeArgument)
 
 TEST (LinkTest, TestWithArg)
 
 TEST (LinkTest, TestWithArgs)
 
 TEST (LinkTest, TestWithoutArgs)
 
 TEST (LinkTest, TestDoAll)
 
 TEST (LinkTest, TestDoDefault)
 
 TEST (LinkTest, TestIgnoreResult)
 
 anonymous_namespace{gmock_link_test.h}::ACTION (Return1)
 
 TEST (LinkTest, TestActionMacro)
 
 anonymous_namespace{gmock_link_test.h}::ACTION_P (ReturnArgument, ret_value)
 
 TEST (LinkTest, TestActionPMacro)
 
 anonymous_namespace{gmock_link_test.h}::ACTION_P2 (ReturnEqualsEitherOf, first, second)
 
 TEST (LinkTest, TestActionP2Macro)
 
 TEST (LinkTest, TestMatcherAnything)
 
 TEST (LinkTest, TestMatcherA)
 
 TEST (LinkTest, TestMatchersEq)
 
 TEST (LinkTest, TestMatchersRelations)
 
 TEST (LinkTest, TestMatcherNotNull)
 
 TEST (LinkTest, TestMatcherIsNull)
 
 TEST (LinkTest, TestMatcherRef)
 
 TEST (LinkTest, TestMatcherTypedEq)
 
 TEST (LinkTest, TestMatchersFloatingPoint)
 
 TEST (LinkTest, TestMatcherContainsRegex)
 
 TEST (LinkTest, TestMatcherMatchesRegex)
 
 TEST (LinkTest, TestMatchersSubstrings)
 
 TEST (LinkTest, TestMatchersStringEquality)
 
 TEST (LinkTest, TestMatcherElementsAre)
 
 TEST (LinkTest, TestMatcherElementsAreArray)
 
 TEST (LinkTest, TestMatcherContainerEq)
 
 TEST (LinkTest, TestMatcherField)
 
 TEST (LinkTest, TestMatcherProperty)
 
 TEST (LinkTest, TestMatcherResultOf)
 
 TEST (LinkTest, TestMatcherPointee)
 
 TEST (LinkTest, TestMatcherTruly)
 
 TEST (LinkTest, TestMatcherAllOf)
 
 TEST (LinkTest, TestMatcherAnyOf)
 
 TEST (LinkTest, TestMatcherNot)
 
 TEST (LinkTest, TestMatcherCast)
 

Function Documentation

TEST ( LinkTest  ,
TestReturnVoid   
)

Definition at line 242 of file gmock_link_test.h.

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

Referenced by TEST().

Here is the call graph for this function:

Here is the caller graph for this function:

TEST ( LinkTest  ,
TestReturn   
)

Definition at line 250 of file gmock_link_test.h.

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

Here is the call graph for this function:

TEST ( LinkTest  ,
TestReturnNull   
)

Definition at line 259 of file gmock_link_test.h.

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

Here is the call graph for this function:

TEST ( LinkTest  ,
TestReturnRef   
)

Definition at line 267 of file gmock_link_test.h.

References testing::_, EXPECT_CALL, Interface::IntRefFromString(), and testing::ReturnRef().

Here is the call graph for this function:

TEST ( LinkTest  ,
TestAssign   
)

Definition at line 276 of file gmock_link_test.h.

References testing::_, testing::Assign(), EXPECT_CALL, and Interface::VoidFromString().

Here is the call graph for this function:

TEST ( LinkTest  ,
TestSetArgPointee   
)

Definition at line 285 of file gmock_link_test.h.

References testing::_, EXPECT_CALL, and Interface::VoidFromString().

Here is the call graph for this function:

TEST ( LinkTest  ,
TestSetArrayArgument   
)

Definition at line 294 of file gmock_link_test.h.

References testing::_, EXPECT_CALL, and Interface::VoidFromString().

Here is the call graph for this function:

TEST ( LinkTest  ,
TestSetErrnoAndReturn   
)

Definition at line 307 of file gmock_link_test.h.

References testing::_, EXPECT_CALL, Interface::IntFromString(), and testing::SetErrnoAndReturn().

Here is the call graph for this function:

TEST ( LinkTest  ,
TestInvoke   
)
TEST ( LinkTest  ,
TestInvokeWithoutArgs   
)
TEST ( LinkTest  ,
TestInvokeArgument   
)

Definition at line 344 of file gmock_link_test.h.

References testing::_, EXPECT_CALL, InvokeHelper::StaticVoidFromString(), and Interface::VoidFromFunc().

Here is the call graph for this function:

TEST ( LinkTest  ,
TestWithArg   
)

Definition at line 353 of file gmock_link_test.h.

References testing::_, EXPECT_CALL, testing::Invoke(), InvokeHelper::StaticVoidFromString(), and Interface::VoidFromString().

Here is the call graph for this function:

TEST ( LinkTest  ,
TestWithArgs   
)

Definition at line 362 of file gmock_link_test.h.

References testing::_, EXPECT_CALL, testing::Invoke(), InvokeHelper::StaticVoidFromString(), and Interface::VoidFromString().

Here is the call graph for this function:

TEST ( LinkTest  ,
TestWithoutArgs   
)

Definition at line 371 of file gmock_link_test.h.

References testing::_, EXPECT_CALL, testing::Return(), Interface::VoidFromString(), and testing::WithoutArgs().

Here is the call graph for this function:

TEST ( LinkTest  ,
TestDoAll   
)

Definition at line 379 of file gmock_link_test.h.

References testing::_, testing::DoAll(), EXPECT_CALL, testing::Return(), and Interface::VoidFromString().

Here is the call graph for this function:

TEST ( LinkTest  ,
TestDoDefault   
)

Definition at line 389 of file gmock_link_test.h.

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

Here is the call graph for this function:

TEST ( LinkTest  ,
TestIgnoreResult   
)

Definition at line 399 of file gmock_link_test.h.

References testing::_, EXPECT_CALL, EXPECT_THROW, testing::IgnoreResult(), testing::Return(), TEST(), and Interface::VoidFromString().

Here is the call graph for this function:

TEST ( LinkTest  ,
TestActionMacro   
)

Definition at line 431 of file gmock_link_test.h.

References testing::_, EXPECT_CALL, and Interface::IntFromString().

Here is the call graph for this function:

TEST ( LinkTest  ,
TestActionPMacro   
)

Definition at line 443 of file gmock_link_test.h.

References testing::_, EXPECT_CALL, and Interface::IntFromString().

Here is the call graph for this function:

TEST ( LinkTest  ,
TestActionP2Macro   
)

Definition at line 461 of file gmock_link_test.h.

References testing::_, EXPECT_CALL, and Interface::IntFromString().

Here is the call graph for this function:

TEST ( LinkTest  ,
TestMatcherAnything   
)

Definition at line 471 of file gmock_link_test.h.

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

Here is the call graph for this function:

TEST ( LinkTest  ,
TestMatcherA   
)

Definition at line 478 of file gmock_link_test.h.

References ON_CALL, testing::Return(), and Interface::VoidFromString().

Here is the call graph for this function:

TEST ( LinkTest  ,
TestMatchersEq   
)

Definition at line 485 of file gmock_link_test.h.

References testing::Eq(), ON_CALL, testing::Return(), and Interface::VoidFromString().

Here is the call graph for this function:

TEST ( LinkTest  ,
TestMatchersRelations   
)

Definition at line 495 of file gmock_link_test.h.

References testing::Ge(), testing::Gt(), testing::Le(), testing::Lt(), testing::Ne(), ON_CALL, testing::Return(), and Interface::VoidFromFloat().

Here is the call graph for this function:

TEST ( LinkTest  ,
TestMatcherNotNull   
)

Definition at line 506 of file gmock_link_test.h.

References testing::NotNull(), ON_CALL, testing::Return(), and Interface::VoidFromString().

Here is the call graph for this function:

TEST ( LinkTest  ,
TestMatcherIsNull   
)

Definition at line 513 of file gmock_link_test.h.

References testing::IsNull(), ON_CALL, testing::Return(), and Interface::VoidFromString().

Here is the call graph for this function:

TEST ( LinkTest  ,
TestMatcherRef   
)

Definition at line 520 of file gmock_link_test.h.

References ON_CALL, testing::Ref(), testing::Return(), and Interface::VoidFromIntRef().

Here is the call graph for this function:

TEST ( LinkTest  ,
TestMatcherTypedEq   
)

Definition at line 528 of file gmock_link_test.h.

References ON_CALL, testing::Return(), and Interface::VoidFromIntRef().

Here is the call graph for this function:

TEST ( LinkTest  ,
TestMatchersFloatingPoint   
)
TEST ( LinkTest  ,
TestMatcherContainsRegex   
)

Definition at line 549 of file gmock_link_test.h.

References testing::ContainsRegex(), ON_CALL, testing::Return(), and Interface::VoidFromString().

Here is the call graph for this function:

TEST ( LinkTest  ,
TestMatcherMatchesRegex   
)

Definition at line 556 of file gmock_link_test.h.

References testing::MatchesRegex(), ON_CALL, testing::Return(), and Interface::VoidFromString().

Here is the call graph for this function:

TEST ( LinkTest  ,
TestMatchersSubstrings   
)

Definition at line 563 of file gmock_link_test.h.

References testing::EndsWith(), testing::HasSubstr(), ON_CALL, testing::Return(), testing::StartsWith(), and Interface::VoidFromString().

Here is the call graph for this function:

TEST ( LinkTest  ,
TestMatchersStringEquality   
)

Definition at line 572 of file gmock_link_test.h.

References ON_CALL, testing::Return(), testing::StrCaseEq(), testing::StrCaseNe(), testing::StrEq(), testing::StrNe(), and Interface::VoidFromString().

Here is the call graph for this function:

TEST ( LinkTest  ,
TestMatcherElementsAre   
)

Definition at line 581 of file gmock_link_test.h.

References testing::_, testing::ElementsAre(), ON_CALL, testing::Return(), and Interface::VoidFromVector().

Here is the call graph for this function:

TEST ( LinkTest  ,
TestMatcherElementsAreArray   
)

Definition at line 588 of file gmock_link_test.h.

References testing::ElementsAreArray(), ON_CALL, testing::Return(), and Interface::VoidFromVector().

Here is the call graph for this function:

TEST ( LinkTest  ,
TestMatcherContainerEq   
)

Definition at line 596 of file gmock_link_test.h.

References testing::ContainerEq(), ON_CALL, testing::Return(), and Interface::VoidFromVector().

Here is the call graph for this function:

TEST ( LinkTest  ,
TestMatcherField   
)

Definition at line 604 of file gmock_link_test.h.

References testing::Eq(), EXPECT_TRUE, testing::Field(), FieldHelper::field_, and testing::internal::MatcherBase< T >::Matches().

Here is the call graph for this function:

TEST ( LinkTest  ,
TestMatcherProperty   
)

Definition at line 615 of file gmock_link_test.h.

References testing::Eq(), EXPECT_TRUE, FieldHelper::field(), testing::internal::MatcherBase< T >::Matches(), and testing::Property().

Here is the call graph for this function:

TEST ( LinkTest  ,
TestMatcherResultOf   
)

Definition at line 626 of file gmock_link_test.h.

References testing::Eq(), EXPECT_TRUE, testing::internal::MatcherBase< T >::Matches(), testing::ResultOf(), and InvokeHelper::StaticIntFromString().

Here is the call graph for this function:

TEST ( LinkTest  ,
TestMatcherPointee   
)

Definition at line 632 of file gmock_link_test.h.

References testing::Eq(), EXPECT_TRUE, testing::internal::MatcherBase< T >::Matches(), and testing::Pointee().

Here is the call graph for this function:

TEST ( LinkTest  ,
TestMatcherTruly   
)

Definition at line 640 of file gmock_link_test.h.

References EXPECT_TRUE, testing::internal::MatcherBase< T >::Matches(), InvokeHelper::StaticBoolFromString(), and testing::Truly().

Here is the call graph for this function:

TEST ( LinkTest  ,
TestMatcherAllOf   
)

Definition at line 646 of file gmock_link_test.h.

References testing::_, testing::AllOf(), testing::Eq(), EXPECT_TRUE, and testing::internal::MatcherBase< T >::Matches().

Here is the call graph for this function:

TEST ( LinkTest  ,
TestMatcherAnyOf   
)

Definition at line 652 of file gmock_link_test.h.

References testing::_, testing::AnyOf(), testing::Eq(), EXPECT_TRUE, and testing::internal::MatcherBase< T >::Matches().

Here is the call graph for this function:

TEST ( LinkTest  ,
TestMatcherNot   
)

Definition at line 658 of file gmock_link_test.h.

References testing::_, EXPECT_FALSE, testing::internal::MatcherBase< T >::Matches(), and testing::Not().

Here is the call graph for this function:

TEST ( LinkTest  ,
TestMatcherCast   
)

Definition at line 664 of file gmock_link_test.h.

References testing::_, EXPECT_TRUE, and testing::internal::MatcherBase< T >::Matches().

Here is the call graph for this function: