37 #ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_INTERNAL_H_ 38 #define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_INTERNAL_H_ 44 # include <sys/types.h> 45 # include <sys/wait.h> 47 #endif // GTEST_OS_LINUX 49 #if GTEST_HAS_EXCEPTIONS 76 #define GTEST_CONCAT_TOKEN_(foo, bar) GTEST_CONCAT_TOKEN_IMPL_(foo, bar) 77 #define GTEST_CONCAT_TOKEN_IMPL_(foo, bar) foo ## bar 79 class ProtocolMessage;
80 namespace proto2 {
class Message; }
86 class AssertionResult;
127 #ifdef GTEST_ELLIPSIS_NEEDS_POD_ 130 # define GTEST_IS_NULL_LITERAL_(x) false 132 # define GTEST_IS_NULL_LITERAL_(x) \ 133 (sizeof(::testing::internal::IsNullLiteralHelper(x)) == 1) 134 #endif // GTEST_ELLIPSIS_NEEDS_POD_ 138 const std::string& gtest_msg,
const Message& user_msg);
140 #if GTEST_HAS_EXCEPTIONS 148 class GTEST_API_ GoogleTestFailureException :
public ::std::runtime_error {
150 explicit GoogleTestFailureException(
const TestPartResult& failure);
153 #endif // GTEST_HAS_EXCEPTIONS 174 namespace edit_distance {
182 const std::vector<size_t>& left,
const std::vector<size_t>& right);
186 const std::vector<std::string>& left,
187 const std::vector<std::string>& right);
191 const std::vector<std::string>& right,
202 size_t* total_line_count);
220 const char* actual_expression,
228 const char* expression_text,
229 const char* actual_predicate_value,
230 const char* expected_predicate_value);
261 template <
typename RawType>
271 static const size_t kBitCount = 8*
sizeof(RawType);
274 static const size_t kFractionBitCount =
275 std::numeric_limits<RawType>::digits - 1;
278 static const size_t kExponentBitCount = kBitCount - 1 - kFractionBitCount;
281 static const Bits kSignBitMask =
static_cast<Bits
>(1) << (kBitCount - 1);
284 static const Bits kFractionBitMask =
285 ~static_cast<Bits>(0) >> (kExponentBitCount + 1);
288 static const Bits kExponentBitMask = ~(kSignBitMask | kFractionBitMask);
302 static const size_t kMaxUlps = 4;
325 return ReinterpretBits(kExponentBitMask);
329 static RawType Max();
334 const Bits &
bits()
const {
return u_.bits_; }
343 Bits
sign_bit()
const {
return kSignBitMask & u_.bits_; }
349 return (exponent_bits() == kExponentBitMask) && (fraction_bits() != 0);
361 if (is_nan() || rhs.
is_nan())
return false;
363 return DistanceBetweenSignAndMagnitudeNumbers(u_.bits_, rhs.u_.bits_)
369 union FloatingPointUnion {
389 static Bits SignAndMagnitudeToBiased(
const Bits &sam) {
390 if (kSignBitMask & sam) {
395 return kSignBitMask | sam;
401 static Bits DistanceBetweenSignAndMagnitudeNumbers(
const Bits &sam1,
403 const Bits biased1 = SignAndMagnitudeToBiased(sam1);
404 const Bits biased2 = SignAndMagnitudeToBiased(sam2);
405 return (biased1 >= biased2) ? (biased1 - biased2) : (biased2 - biased1);
408 FloatingPointUnion u_;
431 template <
typename T>
440 template <
typename T>
446 template <
typename T>
452 return &(TypeIdHelper<T>::dummy_);
470 virtual Test* CreateTest() = 0;
481 template <
class TestClass>
498 #endif // GTEST_OS_WINDOWS 505 CodeLocation(
const string& a_file,
int a_line) : file(a_file), line(a_line) {}
530 const char* test_case_name,
532 const char* type_param,
533 const char* value_param,
535 TypeId fixture_class_id,
545 #if GTEST_HAS_TYPED_TEST || GTEST_HAS_TYPED_TEST_P 550 TypedTestCasePState() : registered_(false) {}
555 bool AddTestName(
const char* file,
int line,
const char* case_name,
556 const char* test_name) {
558 fprintf(stderr,
"%s Test %s must be defined before " 559 "REGISTER_TYPED_TEST_CASE_P(%s, ...).\n",
564 registered_tests_.insert(
569 bool TestExists(
const std::string& test_name)
const {
570 return registered_tests_.count(test_name) > 0;
574 RegisteredTestsMap::const_iterator it = registered_tests_.find(test_name);
582 const char* VerifyRegisteredTestNames(
583 const char* file,
int line,
const char* registered_tests);
586 typedef ::std::map<std::string, CodeLocation> RegisteredTestsMap;
589 RegisteredTestsMap registered_tests_;
594 inline const char* SkipComma(
const char* str) {
595 const char* comma = strchr(str,
',');
605 inline std::string GetPrefixUntilComma(
const char* str) {
606 const char* comma = strchr(str,
',');
607 return comma == NULL ? str :
std::string(str, comma);
613 ::std::vector< ::std::string>*
dest);
622 template <GTEST_TEMPLATE_ Fixture,
class TestSel,
typename Types>
623 class TypeParameterizedTest {
629 static bool Register(
const char* prefix,
631 const char* case_name,
const char* test_names,
633 typedef typename Types::Head
Type;
634 typedef Fixture<Type> FixtureClass;
635 typedef typename GTEST_BIND_(TestSel, Type) TestClass;
640 (
std::string(prefix) + (prefix[0] ==
'\0' ?
"" :
"/") + case_name +
"/" 643 GetTypeName<Type>().c_str(),
646 GetTypeId<FixtureClass>(),
647 TestClass::SetUpTestCase,
648 TestClass::TearDownTestCase,
652 return TypeParameterizedTest<Fixture, TestSel, typename Types::Tail>
653 ::Register(prefix, code_location, case_name, test_names, index + 1);
658 template <GTEST_TEMPLATE_ Fixture,
class TestSel>
659 class TypeParameterizedTest<Fixture, TestSel, Types0> {
662 const char* ,
const char* ,
672 template <GTEST_TEMPLATE_ Fixture,
typename Tests,
typename Types>
673 class TypeParameterizedTestCase {
675 static bool Register(
const char* prefix,
CodeLocation code_location,
676 const TypedTestCasePState* state,
677 const char* case_name,
const char* test_names) {
679 GetPrefixUntilComma(test_names));
680 if (!state->TestExists(test_name)) {
681 fprintf(stderr,
"Failed to get code location for test %s.%s at %s.",
682 case_name, test_name.c_str(),
684 code_location.
line).c_str());
688 const CodeLocation& test_location = state->GetCodeLocation(test_name);
690 typedef typename Tests::Head Head;
693 TypeParameterizedTest<Fixture, Head, Types>::Register(
694 prefix, test_location, case_name, test_names, 0);
697 return TypeParameterizedTestCase<Fixture, typename Tests::Tail, Types>
698 ::Register(prefix, code_location, state,
699 case_name, SkipComma(test_names));
704 template <GTEST_TEMPLATE_ Fixture,
typename Types>
705 class TypeParameterizedTestCase<Fixture, Templates0, Types> {
708 const TypedTestCasePState* ,
709 const char* ,
const char* ) {
714 #endif // GTEST_HAS_TYPED_TEST || GTEST_HAS_TYPED_TEST_P 727 UnitTest* unit_test,
int skip_count);
743 operator bool()
const {
return true; }
754 static const UInt32 kMaxRange = 1u << 31;
771 template <
typename T1,
typename T2>
774 template <
typename T>
781 template <
typename T>
783 template <
typename T>
788 #define GTEST_REMOVE_REFERENCE_(T) \ 789 typename ::testing::internal::RemoveReference<T>::type 794 template <
typename T>
796 template <
typename T>
802 template <
typename T,
size_t N>
807 #if defined(_MSC_VER) && _MSC_VER < 1400 811 template <
typename T,
size_t N>
819 #define GTEST_REMOVE_CONST_(T) \ 820 typename ::testing::internal::RemoveConst<T>::type 823 #define GTEST_REMOVE_REFERENCE_AND_CONST_(T) \ 824 GTEST_REMOVE_CONST_(GTEST_REMOVE_REFERENCE_(T)) 829 template <
typename T>
831 template <
typename T>
836 #define GTEST_ADD_REFERENCE_(T) \ 837 typename ::testing::internal::AddReference<T>::type 848 #define GTEST_REFERENCE_TO_CONST_(T) \ 849 GTEST_ADD_REFERENCE_(const GTEST_REMOVE_REFERENCE_(T)) 854 template <
typename From,
typename To>
875 static char Helper(
To);
876 static char (&Helper(...))[2];
881 #if defined(__BORLANDC__) 885 static const bool value = __is_convertible(From,
To);
894 #endif // __BORLANDC__ 896 template <
typename From,
typename To>
902 template <
typename T>
905 ImplicitlyConvertible<const T*, const ::ProtocolMessage*>::value ||
906 ImplicitlyConvertible<const T*, const ::proto2::Message*>::value> {
933 typename C::iterator* = NULL,
934 typename C::const_iterator* = NULL) {
955 template <
typename T,
typename U>
956 bool ArrayEq(
const T* lhs,
size_t size,
const U* rhs);
959 template <
typename T,
typename U>
960 inline bool ArrayEq(
const T& lhs,
const U& rhs) {
return lhs == rhs; }
963 template <
typename T,
typename U,
size_t N>
964 inline bool ArrayEq(
const T(&lhs)[N],
const U(&rhs)[N]) {
971 template <
typename T,
typename U>
972 bool ArrayEq(
const T* lhs,
size_t size,
const U* rhs) {
973 for (
size_t i = 0; i != size; i++) {
982 template <
typename Iter,
typename Element>
984 for (
Iter it = begin; it != end; ++it) {
995 template <
typename T,
typename U>
996 void CopyArray(
const T* from,
size_t size, U* to);
999 template <
typename T,
typename U>
1003 template <
typename T,
typename U,
size_t N>
1011 template <
typename T,
typename U>
1013 for (
size_t i = 0; i != size; i++) {
1033 template <
typename Element>
1043 InitRef(array, count);
1048 InitCopy(array, count);
1053 (this->*rhs.clone_)(rhs.array_, rhs.size_);
1057 if (clone_ != &NativeArray::InitRef)
1062 size_t size()
const {
return size_; }
1063 const_iterator
begin()
const {
return array_; }
1064 const_iterator
end()
const {
return array_ + size_; }
1066 return size() == rhs.
size() &&
1077 void InitCopy(
const Element* array,
size_t a_size) {
1078 Element*
const copy =
new Element[a_size];
1082 clone_ = &NativeArray::InitCopy;
1086 void InitRef(
const Element* array,
size_t a_size) {
1089 clone_ = &NativeArray::InitRef;
1092 const Element* array_;
1094 void (
NativeArray::*clone_)(
const Element*, size_t);
1102 #define GTEST_MESSAGE_AT_(file, line, message, result_type) \ 1103 ::testing::internal::AssertHelper(result_type, file, line, message) \ 1104 = ::testing::Message() 1106 #define GTEST_MESSAGE_(message, result_type) \ 1107 GTEST_MESSAGE_AT_(__FILE__, __LINE__, message, result_type) 1109 #define GTEST_FATAL_FAILURE_(message) \ 1110 return GTEST_MESSAGE_(message, ::testing::TestPartResult::kFatalFailure) 1112 #define GTEST_NONFATAL_FAILURE_(message) \ 1113 GTEST_MESSAGE_(message, ::testing::TestPartResult::kNonFatalFailure) 1115 #define GTEST_SUCCESS_(message) \ 1116 GTEST_MESSAGE_(message, ::testing::TestPartResult::kSuccess) 1121 #define GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement) \ 1122 if (::testing::internal::AlwaysTrue()) { statement; } 1124 #define GTEST_TEST_THROW_(statement, expected_exception, fail) \ 1125 GTEST_AMBIGUOUS_ELSE_BLOCKER_ \ 1126 if (::testing::internal::ConstCharPtr gtest_msg = "") { \ 1127 bool gtest_caught_expected = false; \ 1129 GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement); \ 1131 catch (expected_exception const&) { \ 1132 gtest_caught_expected = true; \ 1136 "Expected: " #statement " throws an exception of type " \ 1137 #expected_exception ".\n Actual: it throws a different type."; \ 1138 goto GTEST_CONCAT_TOKEN_(gtest_label_testthrow_, __LINE__); \ 1140 if (!gtest_caught_expected) { \ 1142 "Expected: " #statement " throws an exception of type " \ 1143 #expected_exception ".\n Actual: it throws nothing."; \ 1144 goto GTEST_CONCAT_TOKEN_(gtest_label_testthrow_, __LINE__); \ 1147 GTEST_CONCAT_TOKEN_(gtest_label_testthrow_, __LINE__): \ 1148 fail(gtest_msg.value) 1150 #define GTEST_TEST_NO_THROW_(statement, fail) \ 1151 GTEST_AMBIGUOUS_ELSE_BLOCKER_ \ 1152 if (::testing::internal::AlwaysTrue()) { \ 1154 GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement); \ 1157 goto GTEST_CONCAT_TOKEN_(gtest_label_testnothrow_, __LINE__); \ 1160 GTEST_CONCAT_TOKEN_(gtest_label_testnothrow_, __LINE__): \ 1161 fail("Expected: " #statement " doesn't throw an exception.\n" \ 1162 " Actual: it throws.") 1164 #define GTEST_TEST_ANY_THROW_(statement, fail) \ 1165 GTEST_AMBIGUOUS_ELSE_BLOCKER_ \ 1166 if (::testing::internal::AlwaysTrue()) { \ 1167 bool gtest_caught_any = false; \ 1169 GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement); \ 1172 gtest_caught_any = true; \ 1174 if (!gtest_caught_any) { \ 1175 goto GTEST_CONCAT_TOKEN_(gtest_label_testanythrow_, __LINE__); \ 1178 GTEST_CONCAT_TOKEN_(gtest_label_testanythrow_, __LINE__): \ 1179 fail("Expected: " #statement " throws an exception.\n" \ 1180 " Actual: it doesn't.") 1186 #define GTEST_TEST_BOOLEAN_(expression, text, actual, expected, fail) \ 1187 GTEST_AMBIGUOUS_ELSE_BLOCKER_ \ 1188 if (const ::testing::AssertionResult gtest_ar_ = \ 1189 ::testing::AssertionResult(expression)) \ 1192 fail(::testing::internal::GetBoolAssertionFailureMessage(\ 1193 gtest_ar_, text, #actual, #expected).c_str()) 1195 #define GTEST_TEST_NO_FATAL_FAILURE_(statement, fail) \ 1196 GTEST_AMBIGUOUS_ELSE_BLOCKER_ \ 1197 if (::testing::internal::AlwaysTrue()) { \ 1198 ::testing::internal::HasNewFatalFailureHelper gtest_fatal_failure_checker; \ 1199 GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement); \ 1200 if (gtest_fatal_failure_checker.has_new_fatal_failure()) { \ 1201 goto GTEST_CONCAT_TOKEN_(gtest_label_testnofatal_, __LINE__); \ 1204 GTEST_CONCAT_TOKEN_(gtest_label_testnofatal_, __LINE__): \ 1205 fail("Expected: " #statement " doesn't generate new fatal " \ 1206 "failures in the current thread.\n" \ 1207 " Actual: it does.") 1210 #define GTEST_TEST_CLASS_NAME_(test_case_name, test_name) \ 1211 test_case_name##_##test_name##_Test 1214 #define GTEST_TEST_(test_case_name, test_name, parent_class, parent_id)\ 1215 class GTEST_TEST_CLASS_NAME_(test_case_name, test_name) : public parent_class {\ 1217 GTEST_TEST_CLASS_NAME_(test_case_name, test_name)() {}\ 1219 virtual void TestBody();\ 1220 static ::testing::TestInfo* const test_info_ GTEST_ATTRIBUTE_UNUSED_;\ 1221 GTEST_DISALLOW_COPY_AND_ASSIGN_(\ 1222 GTEST_TEST_CLASS_NAME_(test_case_name, test_name));\ 1225 ::testing::TestInfo* const GTEST_TEST_CLASS_NAME_(test_case_name, test_name)\ 1227 ::testing::internal::MakeAndRegisterTestInfo(\ 1228 #test_case_name, #test_name, NULL, NULL, \ 1229 ::testing::internal::CodeLocation(__FILE__, __LINE__), \ 1231 parent_class::SetUpTestCase, \ 1232 parent_class::TearDownTestCase, \ 1233 new ::testing::internal::TestFactoryImpl<\ 1234 GTEST_TEST_CLASS_NAME_(test_case_name, test_name)>);\ 1235 void GTEST_TEST_CLASS_NAME_(test_case_name, test_name)::TestBody() 1237 #endif // GTEST_INCLUDE_GTEST_INTERNAL_GTEST_INTERNAL_H_ static RawType ReinterpretBits(const Bits bits)
Definition: gtest-internal.h:317
Definition: gtest-internal.h:855
GTEST_API_ bool AlwaysTrue()
TypeId GetTypeId()
Definition: gtest-internal.h:447
GTEST_API_ TestInfo * MakeAndRegisterTestInfo(const char *test_case_name, const char *name, const char *type_param, const char *value_param, CodeLocation code_location, TypeId fixture_class_id, SetUpTestCaseFunc set_up_tc, TearDownTestCaseFunc tear_down_tc, TestFactoryBase *factory)
Definition: gmock-actions.h:53
Definition: gtest-internal.h:782
virtual Test * CreateTest()
Definition: gtest-internal.h:484
GTEST_API_ std::string GetCurrentOsStackTraceExceptTop(UnitTest *unit_test, int skip_count)
Definition: gtest-internal.h:482
TestFactoryBase()
Definition: gtest-internal.h:473
Element value_type
Definition: gtest-internal.h:1037
GTEST_API_ bool SkipPrefix(const char *prefix, const char **pstr)
int * count
Definition: gmock_stress_test.cc:176
Definition: gtest-internal.h:772
NativeArray(const NativeArray &rhs)
Definition: gtest-internal.h:1052
NativeArray(const Element *array, size_t count, RelationToSourceReference)
Definition: gtest-internal.h:1042
#define GTEST_DISABLE_MSC_WARNINGS_POP_()
Definition: gtest-port.h:318
int IsContainer
Definition: gtest-internal.h:930
::std::string PrintToString(const T &value)
Definition: gtest-printers.h:980
Definition: gtest-internal.h:180
Definition: gtest-internal.h:830
ConstCharPtr(const char *str)
Definition: gtest-internal.h:742
IsNotContainer IsContainerTest(long)
Definition: gtest-internal.h:940
Definition: gtest-internal.h:180
::std::string string
Definition: gtest-port.h:1097
Definition: gtest-internal.h:262
FloatingPoint(const RawType &x)
Definition: gtest-internal.h:310
CodeLocation(const string &a_file, int a_line)
Definition: gtest-internal.h:505
dest
Definition: upload.py:394
Definition: gtest-internal.h:1023
Element * iterator
Definition: gtest-internal.h:1038
void type
Definition: gtest-internal.h:947
Definition: gtest-internal.h:1034
EditType
Definition: gtest-internal.h:180
Definition: gtest-internal.h:432
#define GTEST_API_
Definition: gtest-port.h:934
GTEST_API_ AssertionResult EqFailure(const char *expected_expression, const char *actual_expression, const std::string &expected_value, const std::string &actual_value, bool ignoring_case)
Definition: gtest-internal.h:180
#define GTEST_DISALLOW_ASSIGN_(type)
Definition: gtest-port.h:869
std::string StreamableToString(const T &streamable)
Definition: gtest-message.h:243
const_iterator begin() const
Definition: gtest-internal.h:1063
Definition: gtest-internal.h:504
TypeWithSize< 4 >::UInt UInt32
Definition: gtest-port.h:2495
NativeArray(const Element *array, size_t count, RelationToSourceCopy)
Definition: gtest-internal.h:1047
GTEST_API_ ::std::string FormatFileLocation(const char *file, int line)
T & type
Definition: gtest-internal.h:832
const void * TypeId
Definition: gtest-internal.h:429
Bits fraction_bits() const
Definition: gtest-internal.h:340
bool IsSpace(char ch)
Definition: gtest-port.h:2263
T & type
Definition: gtest-internal.h:830
Bits sign_bit() const
Definition: gtest-internal.h:343
void CopyArray(const T(&from)[N], U(*to)[N])
Definition: gtest-internal.h:1004
GTEST_API_ const char kStackTraceMarker[]
const_iterator end() const
Definition: gtest-internal.h:1064
FloatingPoint< float > Float
Definition: gtest-internal.h:420
FloatingPoint< double > Double
Definition: gtest-internal.h:421
GTEST_API_ std::vector< EditType > CalculateOptimalEdits(const std::vector< std::string > &left, const std::vector< std::string > &right)
#define GTEST_DISABLE_MSC_WARNINGS_PUSH_(warnings)
Definition: gtest-port.h:317
Definition: gtest-internal.h:741
#define GTEST_CHECK_(condition)
Definition: gtest-port.h:1295
Definition: gtest-port.h:1084
TypeWithSize< sizeof(RawType)>::UInt Bits
Definition: gtest-internal.h:266
const Element * const_iterator
Definition: gtest-internal.h:1039
def Iter(n, format, sep='')
Definition: gen_gtest_pred_impl.py:189
T type
Definition: gtest-internal.h:797
T type
Definition: gtest-internal.h:784
bool AlwaysFalse()
Definition: gtest-internal.h:736
void(* SetUpTestCaseFunc)()
Definition: gtest-internal.h:501
void(* TearDownTestCaseFunc)()
Definition: gtest-internal.h:502
void Reseed(UInt32 seed)
Definition: gtest-internal.h:758
Definition: gtest-internal.h:156
Definition: gtest-port.h:2461
Definition: gtest-internal.h:180
Bits exponent_bits() const
Definition: gtest-internal.h:337
virtual ~TestFactoryBase()
Definition: gtest-internal.h:466
Definition: gtest-port.h:2203
GTEST_API_ std::string GetBoolAssertionFailureMessage(const AssertionResult &assertion_result, const char *expression_text, const char *actual_predicate_value, const char *expected_predicate_value)
static bool dummy_
Definition: gtest-internal.h:437
Definition: gmock-internal-utils_test.cc:63
Definition: gtest-internal.h:903
const Bits & bits() const
Definition: gtest-internal.h:334
Definition: gtest-internal.h:1022
char IsNotContainer
Definition: gtest-internal.h:938
GTEST_API_ std::string DiffStrings(const std::string &left, const std::string &right, size_t *total_line_count)
string file
Definition: gtest-internal.h:507
size_t size() const
Definition: gtest-internal.h:1062
Definition: gtest-internal.h:946
type
Definition: upload.py:443
T type
Definition: gtest-internal.h:782
GTEST_API_ std::string AppendUserMessage(const std::string >est_msg, const Message &user_msg)
static RawType Infinity()
Definition: gtest-internal.h:324
void Abort()
Definition: gtest-port.h:2410
const
Definition: upload.py:398
bool AlmostEquals(const FloatingPoint &rhs) const
Definition: gtest-internal.h:358
#define GTEST_DISALLOW_COPY_AND_ASSIGN_(type)
Definition: gtest-port.h:874
char(& IsNullLiteralHelper(...))[2]
T type
Definition: gtest-internal.h:795
Random(UInt32 seed)
Definition: gtest-internal.h:756
Type
Definition: Type.h:26
Definition: gtest-port_test.cc:202
Iter ArrayAwareFind(Iter begin, Iter end, const Element &elem)
Definition: gtest-internal.h:983
const char * value
Definition: gtest-internal.h:744
~NativeArray()
Definition: gtest-internal.h:1056
GTEST_API_ std::string CreateUnifiedDiff(const std::vector< std::string > &left, const std::vector< std::string > &right, size_t context=2)
Definition: gtest-internal.h:464
tuple message
Definition: gtest_output_test.py:331
bool ArrayEq(const T(&lhs)[N], const U(&rhs)[N])
Definition: gtest-internal.h:964
class GTEST_API_ testing::internal::ScopedTrace GTEST_ATTRIBUTE_UNUSED_
Definition: gtest-internal.h:795
bool operator==(const NativeArray &rhs) const
Definition: gtest-internal.h:1065
GTEST_API_ TypeId GetTestTypeId()
std::string StripTrailingSpaces(std::string str)
Definition: gtest-port.h:2284
Definition: gtest-message.h:85
Definition: gtest-internal.h:752
#define GTEST_REMOVE_REFERENCE_AND_CONST_(T)
Definition: gtest-internal.h:823
bool is_nan() const
Definition: gtest-internal.h:346
int line
Definition: gtest-internal.h:508