37 #ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_INTERNAL_H_ 38 #define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_INTERNAL_H_ 40 #include "gtest/internal/gtest-port.h" 44 # include <sys/types.h> 45 # include <sys/wait.h> 47 #endif // GTEST_OS_LINUX 49 #if GTEST_HAS_EXCEPTIONS 63 #include "gtest/gtest-message.h" 64 #include "gtest/internal/gtest-string.h" 65 #include "gtest/internal/gtest-filepath.h" 66 #include "gtest/internal/gtest-type-util.h" 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>
275 std::numeric_limits<RawType>::digits - 1;
329 static RawType
Max();
405 return (biased1 >= biased2) ? (biased1 - biased2) : (biased2 - biased1);
431 template <
typename T>
440 template <
typename T>
446 template <
typename T>
481 template <
class TestClass>
498 #endif // GTEST_OS_WINDOWS 530 const char* test_case_name,
532 const char* type_param,
533 const char* value_param,
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(
565 ::std::make_pair(test_name, CodeLocation(file,
line)));
569 bool TestExists(
const std::string& test_name)
const {
570 return registered_tests_.count(test_name) > 0;
573 const CodeLocation& GetCodeLocation(
const std::string& test_name)
const {
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,
',');
606 const char* comma = strchr(
str,
',');
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,
630 CodeLocation code_location,
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;
643 GetTypeName<Type>().c_str(),
646 GetTypeId<FixtureClass>(),
647 TestClass::SetUpTestCase,
648 TestClass::TearDownTestCase,
649 new TestFactoryImpl<TestClass>);
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> {
661 static bool Register(
const char* , CodeLocation,
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>
699 case_name, SkipComma(test_names));
704 template <GTEST_TEMPLATE_ Fixture,
typename Types>
705 class TypeParameterizedTestCase<Fixture, Templates0, Types> {
707 static bool Register(
const char* , CodeLocation,
708 const TypedTestCasePState* ,
709 const char* ,
const char* ) {
714 #endif // GTEST_HAS_TYPED_TEST || GTEST_HAS_TYPED_TEST_P 743 operator bool()
const {
return true; }
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>
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>
1078 Element*
const copy =
new Element[a_size];
1086 void InitRef(
const Element* array,
size_t a_size) {
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_
Element * iterator
Definition: gtest-internal.h:1038
const uint32_t T[512]
Definition: groestl_tables.h:36
TypeId GetTypeId()
Definition: gtest-internal.h:447
Definition: gmock-actions.h:53
static Bits DistanceBetweenSignAndMagnitudeNumbers(const Bits &sam1, const Bits &sam2)
Definition: gtest-internal.h:401
void(* TearDownTestCaseFunc)()
Definition: gtest-internal.h:502
T type
Definition: gtest-internal.h:797
Definition: gtest-internal.h:1034
static const Bits kExponentBitMask
Definition: gtest-internal.h:288
GTEST_API_ std::string GetCurrentOsStackTraceExceptTop(UnitTest *unit_test, int skip_count)
Definition: gtest.cc:4973
int * count
Definition: gmock_stress_test.cc:176
virtual ~TestFactoryBase()
Definition: gtest-internal.h:466
static RawType Infinity()
Definition: gtest-internal.h:324
T & type
Definition: gtest-internal.h:832
static const size_t kMaxUlps
Definition: gtest-internal.h:302
GTEST_API_ std::vector< EditType > CalculateOptimalEdits(const std::vector< size_t > &left, const std::vector< size_t > &right)
Definition: gtest.cc:1028
T type
Definition: gtest-internal.h:782
int i
Definition: pymoduletest.py:23
Definition: gtest-internal.h:741
u
Definition: pymoduletest.py:20
T type
Definition: gtest-internal.h:784
int IsContainer
Definition: gtest-internal.h:930
class GTEST_API_ testing::internal::ScopedTrace GTEST_ATTRIBUTE_UNUSED_
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: gtest.cc:2543
::std::string string
Definition: gtest-port.h:1097
static RawType ReinterpretBits(const Bits bits)
Definition: gtest-internal.h:317
CXA_THROW_INFO_T void(* dest)(void *))
Definition: stack_trace.cpp:91
::std::string PrintToString(const T &value)
Definition: gtest-printers.h:980
Definition: gtest-port_test.cc:202
void SplitString(const ::std::string &str, char delimiter, ::std::vector< ::std::string > *dest)
Definition: gtest.cc:922
virtual Test * CreateTest()=0
const Element * const_iterator
Definition: gtest-internal.h:1039
GTEST_API_ ::std::string FormatFileLocation(const char *file, int line)
Definition: gtest-port.cc:880
GTEST_DISALLOW_ASSIGN_(NativeArray)
void InitRef(const Element *array, size_t a_size)
Definition: gtest-internal.h:1086
void(NativeArray::* clone_)(const Element *, size_t)
Definition: gtest-internal.h:1094
TypeWithSize< 4 >::UInt UInt32
Definition: gtest-port.h:2495
FloatingPoint(const RawType &x)
Definition: gtest-internal.h:310
#define GTEST_CHECK_(condition)
Definition: gtest-port.h:1295
Definition: gtest-internal.h:1072
Bits exponent_bits() const
Definition: gtest-internal.h:337
void(* SetUpTestCaseFunc)()
Definition: gtest-internal.h:501
Definition: gtest-internal.h:782
const Bits & bits() const
Definition: gtest-internal.h:334
NativeArray(const Element *array, size_t count, RelationToSourceReference)
Definition: gtest-internal.h:1042
Definition: gtest-internal.h:752
T type
Definition: gtest-internal.h:795
GTEST_API_ bool SkipPrefix(const char *prefix, const char **pstr)
Definition: gtest.cc:5001
Definition: gtest-internal.h:180
Definition: gtest-port.h:2461
Definition: gtest-internal.h:482
CodeLocation(const string &a_file, int a_line)
Definition: gtest-internal.h:505
EditType
Definition: gtest-internal.h:180
Definition: gtest-internal.h:772
static const Bits kSignBitMask
Definition: gtest-internal.h:281
Bits sign_bit() const
Definition: gtest-internal.h:343
void copy(key &AA, const key &A)
Definition: rctOps.h:79
string file
Definition: gtest-internal.h:507
static const size_t kExponentBitCount
Definition: gtest-internal.h:278
Element value_type
Definition: gtest-internal.h:1037
Definition: gtest-message.h:85
bool is_nan() const
Definition: gtest-internal.h:346
Definition: gtest-internal.h:464
std::string StreamableToString(const T &streamable)
Definition: gtest-message.h:243
bool ArrayEq(const T *lhs, size_t size, const U *rhs)
Definition: gtest-internal.h:972
Definition: gtest-internal.h:369
static const Bits kFractionBitMask
Definition: gtest-internal.h:284
const_iterator end() const
Definition: gtest-internal.h:1064
Definition: gtest-internal.h:504
bool IsSpace(char ch)
Definition: gtest-port.h:2263
GTEST_API_ TypeId GetTestTypeId()
Definition: gtest.cc:620
T & type
Definition: gtest-internal.h:830
RawType value_
Definition: gtest-internal.h:370
stderr
Definition: compare.py:15
#define GTEST_DISALLOW_COPY_AND_ASSIGN_(type)
Definition: gtest-port.h:874
Definition: gtest-internal.h:946
void Reseed(UInt32 seed)
Definition: gtest-internal.h:758
GTEST_DISALLOW_COPY_AND_ASSIGN_(TestFactoryBase)
FloatingPoint< float > Float
Definition: gtest-internal.h:420
#define GTEST_API_
Definition: gtest-port.h:934
def Iter(n, format, sep='')
Definition: gen_gtest_pred_impl.py:189
GTEST_API_ bool AlwaysTrue()
Definition: gtest.cc:4988
bool AlwaysFalse()
Definition: gtest-internal.h:736
Definition: gtest-internal.h:180
int line
Definition: gtest-internal.h:508
NativeArray(const Element *array, size_t count, RelationToSourceCopy)
Definition: gtest-internal.h:1047
std::unique_ptr< void, terminate > context
Unique ZMQ context handle, calls zmq_term on destruction.
Definition: zmq.h:105
NativeArray(const NativeArray &rhs)
Definition: gtest-internal.h:1052
static AddReference< From >::type MakeFrom()
Definition: gtest-port.h:1084
#define false
Definition: stdbool.h:37
void type
Definition: gtest-internal.h:947
bool operator==(const NativeArray &rhs) const
Definition: gtest-internal.h:1065
Definition: gtest-internal.h:855
const_iterator begin() const
Definition: gtest-internal.h:1063
Definition: gtest-port.h:2203
static Bits SignAndMagnitudeToBiased(const Bits &sam)
Definition: gtest-internal.h:389
size_t size_
Definition: gtest-internal.h:1093
const char *const str
Definition: portlistingparse.c:23
Definition: gmock-internal-utils_test.cc:63
GTEST_API_ const char kStackTraceMarker[]
Definition: gtest.cc:184
static const size_t kBitCount
Definition: gtest-internal.h:271
Definition: gtest-internal.h:262
GTEST_API_ std::string AppendUserMessage(const std::string >est_msg, const Message &user_msg)
Definition: gtest.cc:2001
Definition: gtest-internal.h:156
Definition: document.h:406
Definition: gtest-internal.h:1022
static const size_t kFractionBitCount
Definition: gtest-internal.h:274
Definition: gtest-internal.h:830
Definition: gtest-internal.h:180
Definition: unit_tests_utils.h:36
char IsNotContainer
Definition: gtest-internal.h:938
Definition: blake256.h:36
const void * TypeId
Definition: gtest-internal.h:429
FloatingPoint< double > Double
Definition: gtest-internal.h:421
GTEST_API_ std::string DiffStrings(const std::string &left, const std::string &right, size_t *total_line_count)
TestFactoryBase()
Definition: gtest-internal.h:473
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.cc:1312
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1225
Bits bits_
Definition: gtest-internal.h:371
UInt32 state_
Definition: gtest-internal.h:765
GTEST_API_ std::string GetBoolAssertionFailureMessage(const AssertionResult &assertion_result, const char *expression_text, const char *actual_predicate_value, const char *expected_predicate_value)
Definition: gtest.cc:1346
GTEST_API_ std::string CreateUnifiedDiff(const std::vector< std::string > &left, const std::vector< std::string > &right, size_t context=2)
Definition: gtest.cc:1203
#define GTEST_DISABLE_MSC_WARNINGS_POP_()
Definition: gtest-port.h:318
int bool
Definition: stdbool.h:35
void Abort()
Definition: gtest-port.h:2410
TypeWithSize< sizeof(RawType)>::UInt Bits
Definition: gtest-internal.h:266
Definition: gtest-internal.h:903
Definition: gtest-internal.h:1023
Bits fraction_bits() const
Definition: gtest-internal.h:340
FloatingPointUnion u_
Definition: gtest-internal.h:408
#define GTEST_REMOVE_REFERENCE_AND_CONST_(T)
Definition: gtest-internal.h:823
#define GTEST_DISABLE_MSC_WARNINGS_PUSH_(warnings)
Definition: gtest-port.h:317
size_t size() const
Definition: gtest-internal.h:1062
void InitCopy(const Element *array, size_t a_size)
Definition: gtest-internal.h:1077
const uint8_t seed[32]
Definition: code-generator.cpp:37
p
Definition: pymoduletest.py:75
prefix
Definition: check.py:15
ConstCharPtr(const char *str)
Definition: gtest-internal.h:742
void CopyArray(const T *from, size_t size, U *to)
Definition: gtest-internal.h:1012
const Element * array_
Definition: gtest-internal.h:1092
Definition: gtest-internal.h:432
Definition: gtest-internal.h:180
Iter ArrayAwareFind(Iter begin, Iter end, const Element &elem)
Definition: gtest-internal.h:983
Random(UInt32 seed)
Definition: gtest-internal.h:756
const char * name
Definition: options.c:30
virtual Test * CreateTest()
Definition: gtest-internal.h:484
static const bool value
Definition: gtest-internal.h:891
Type
Type of JSON value.
Definition: rapidjson.h:623
char IsNullLiteralHelper(Secret *p)
line
Definition: check.py:23
#define const
Definition: ipfrdr.c:80
tuple message
Definition: gtest_output_test.py:331
IsContainer IsContainerTest(int, typename C::iterator *=NULL, typename C::const_iterator *=NULL)
Definition: gtest-internal.h:932
#define true
Definition: stdbool.h:36
std::string StripTrailingSpaces(std::string str)
Definition: gtest-port.h:2284
static bool dummy_
Definition: gtest-internal.h:437
Definition: gtest-internal.h:795
~NativeArray()
Definition: gtest-internal.h:1056
bool AlmostEquals(const FloatingPoint &rhs) const
Definition: gtest-internal.h:358
const char * value
Definition: gtest-internal.h:744