Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
testing::gmock_matchers_test::convertible_from_any Namespace Reference

Classes

struct  ConvertibleFromAny
 

Functions

bool operator== (const ConvertibleFromAny &a, const ConvertibleFromAny &b)
 
ostream & operator<< (ostream &os, const ConvertibleFromAny &a)
 
 TEST (MatcherCastTest, ConversionConstructorIsUsed)
 
 TEST (MatcherCastTest, FromConvertibleFromAny)
 
 TEST (SafeMatcherCastTest, ConversionConstructorIsUsed)
 
 TEST (SafeMatcherCastTest, FromConvertibleFromAny)
 

Function Documentation

◆ operator<<()

ostream & testing::gmock_matchers_test::convertible_from_any::operator<< ( ostream & os,
const ConvertibleFromAny & a )

Definition at line 774 of file gmock-matchers_test.cc.

774 {
775 return os << a.value;
776}
os_t os
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition pointer.h:1181

◆ operator==()

bool testing::gmock_matchers_test::convertible_from_any::operator== ( const ConvertibleFromAny & a,
const ConvertibleFromAny & b )

◆ TEST() [1/4]

testing::gmock_matchers_test::convertible_from_any::TEST ( MatcherCastTest ,
ConversionConstructorIsUsed  )

Definition at line 778 of file gmock-matchers_test.cc.

778 {
779 Matcher<ConvertibleFromAny> m = MatcherCast<ConvertibleFromAny>(1);
782}
bool Matches(GTEST_REFERENCE_TO_CONST_(T) x) const
#define EXPECT_TRUE(condition)
Definition gtest.h:1895
#define EXPECT_FALSE(condition)
Definition gtest.h:1898
Here is the call graph for this function:

◆ TEST() [2/4]

testing::gmock_matchers_test::convertible_from_any::TEST ( MatcherCastTest ,
FromConvertibleFromAny  )

Definition at line 784 of file gmock-matchers_test.cc.

784 {
786 MatcherCast<ConvertibleFromAny>(Eq(ConvertibleFromAny(1)));
789}
Here is the call graph for this function:

◆ TEST() [3/4]

testing::gmock_matchers_test::convertible_from_any::TEST ( SafeMatcherCastTest ,
ConversionConstructorIsUsed  )

Definition at line 901 of file gmock-matchers_test.cc.

901 {
902 Matcher<ConvertibleFromAny> m = SafeMatcherCast<ConvertibleFromAny>(1);
905}
Here is the call graph for this function:

◆ TEST() [4/4]

testing::gmock_matchers_test::convertible_from_any::TEST ( SafeMatcherCastTest ,
FromConvertibleFromAny  )

Definition at line 907 of file gmock-matchers_test.cc.

907 {
909 SafeMatcherCast<ConvertibleFromAny>(Eq(ConvertibleFromAny(1)));
912}
Here is the call graph for this function: