|
MADNESS
version 0.9
|
Namespaces | |
| posix | |
Typedefs | |
| typedef FloatingPoint< float > | Float |
| typedef FloatingPoint< double > | Double |
| typedef const void * | TypeId |
| typedef void(* | SetUpTestCaseFunc )() |
| typedef void(* | TearDownTestCaseFunc )() |
| typedef int | IsContainer |
| typedef char | IsNotContainer |
| typedef ::std::string | string |
| typedef ::std::wstring | wstring |
| typedef GTestMutexLock | MutexLock |
| typedef bool_constant< false > | false_type |
| typedef bool_constant< true > | true_type |
| typedef long long | BiggestInt |
| typedef TypeWithSize< 4 >::Int | Int32 |
| typedef TypeWithSize< 4 >::UInt | UInt32 |
| typedef TypeWithSize< 8 >::Int | Int64 |
| typedef TypeWithSize< 8 >::UInt | UInt64 |
| typedef TypeWithSize< 8 >::Int | TimeInMillis |
Enumerations | |
| enum | RelationToSource { kReference, kCopy } |
| enum | GTestLogSeverity { GTEST_INFO, GTEST_WARNING, GTEST_ERROR, GTEST_FATAL } |
| enum | CharFormat { kAsIs, kHexEscape, kSpecialEscape } |
| enum | GTestColor { COLOR_DEFAULT, COLOR_RED, COLOR_GREEN, COLOR_YELLOW } |
Functions | |
| template<typename T > | |
| std::string | StreamableToString (const T &streamable) |
| template<typename T > | |
| void | UniversalPrint (const T &value,::std::ostream *os) |
| template<typename C > | |
| void | DefaultPrintTo (IsContainer, false_type, const C &container,::std::ostream *os) |
| template<typename T > | |
| void | DefaultPrintTo (IsNotContainer, true_type, T *p,::std::ostream *os) |
| template<typename T > | |
| void | DefaultPrintTo (IsNotContainer, false_type, const T &value,::std::ostream *os) |
| template<typename T > | |
| void | PrintTo (const T &value,::std::ostream *os) |
| GTEST_API_ void | PrintTo (unsigned char c,::std::ostream *os) |
| GTEST_API_ void | PrintTo (signed char c,::std::ostream *os) |
| void | PrintTo (char c,::std::ostream *os) |
| void | PrintTo (bool x,::std::ostream *os) |
| GTEST_API_ void | PrintTo (wchar_t wc,::std::ostream *os) |
| GTEST_API_ void | PrintTo (const char *s,::std::ostream *os) |
| void | PrintTo (char *s,::std::ostream *os) |
| void | PrintTo (const signed char *s,::std::ostream *os) |
| void | PrintTo (signed char *s,::std::ostream *os) |
| void | PrintTo (const unsigned char *s,::std::ostream *os) |
| void | PrintTo (unsigned char *s,::std::ostream *os) |
| GTEST_API_ void | PrintTo (const wchar_t *s,::std::ostream *os) |
| void | PrintTo (wchar_t *s,::std::ostream *os) |
| template<typename T > | |
| void | PrintRawArrayTo (const T a[], size_t count,::std::ostream *os) |
| GTEST_API_ void | PrintStringTo (const ::std::string &s,::std::ostream *os) |
| void | PrintTo (const ::std::string &s,::std::ostream *os) |
| template<typename T1 , typename T2 > | |
| void | PrintTo (const ::std::pair< T1, T2 > &value,::std::ostream *os) |
| template<typename T > | |
| void | UniversalPrintArray (const T *begin, size_t len,::std::ostream *os) |
| GTEST_API_ void | UniversalPrintArray (const char *begin, size_t len,::std::ostream *os) |
| GTEST_API_ void | UniversalPrintArray (const wchar_t *begin, size_t len,::std::ostream *os) |
| template<typename T > | |
| void | UniversalTersePrint (const T &value,::std::ostream *os) |
| class UnitTestImpl * | GetUnitTestImpl () |
| void | ReportFailureInUnknownLocation (TestPartResult::Type result_type, const std::string &message) |
| GTEST_IMPL_FORMAT_C_STRING_AS_POINTER_ (char) | |
| GTEST_IMPL_FORMAT_C_STRING_AS_POINTER_ (wchar_t) | |
| GTEST_IMPL_FORMAT_C_STRING_AS_STRING_ (char,::std::string) | |
| template<typename T1 , typename T2 > | |
| std::string | FormatForComparisonFailureMessage (const T1 &value, const T2 &) |
| template<typename T1 , typename T2 > | |
| AssertionResult | CmpHelperEQ (const char *expected_expression, const char *actual_expression, const T1 &expected, const T2 &actual) |
| GTEST_API_ AssertionResult | CmpHelperEQ (const char *expected_expression, const char *actual_expression, BiggestInt expected, BiggestInt actual) |
| GTEST_IMPL_CMP_HELPER_ (NE,!=) | |
| GTEST_IMPL_CMP_HELPER_ (LE,<=) | |
| GTEST_IMPL_CMP_HELPER_ (LT,<) | |
| GTEST_IMPL_CMP_HELPER_ (GE, >=) | |
| GTEST_IMPL_CMP_HELPER_ (GT, >) | |
| GTEST_API_ AssertionResult | CmpHelperSTREQ (const char *expected_expression, const char *actual_expression, const char *expected, const char *actual) |
| GTEST_API_ AssertionResult | CmpHelperSTRCASEEQ (const char *expected_expression, const char *actual_expression, const char *expected, const char *actual) |
| GTEST_API_ AssertionResult | CmpHelperSTRNE (const char *s1_expression, const char *s2_expression, const char *s1, const char *s2) |
| GTEST_API_ AssertionResult | CmpHelperSTRCASENE (const char *s1_expression, const char *s2_expression, const char *s1, const char *s2) |
| GTEST_API_ AssertionResult | CmpHelperSTREQ (const char *expected_expression, const char *actual_expression, const wchar_t *expected, const wchar_t *actual) |
| GTEST_API_ AssertionResult | CmpHelperSTRNE (const char *s1_expression, const char *s2_expression, const wchar_t *s1, const wchar_t *s2) |
| template<typename RawType > | |
| AssertionResult | CmpHelperFloatingPointEQ (const char *expected_expression, const char *actual_expression, RawType expected, RawType actual) |
| GTEST_API_ AssertionResult | DoubleNearPredFormat (const char *expr1, const char *expr2, const char *abs_error_expr, double val1, double val2, double abs_error) |
| GTEST_DECLARE_string_ (internal_run_death_test) | |
| char | IsNullLiteralHelper (Secret *p) |
| char(& | IsNullLiteralHelper (...))[2] |
| GTEST_API_ std::string | AppendUserMessage (const std::string >est_msg, const Message &user_msg) |
| 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) |
| GTEST_API_ std::string | GetBoolAssertionFailureMessage (const AssertionResult &assertion_result, const char *expression_text, const char *actual_predicate_value, const char *expected_predicate_value) |
| template<typename T > | |
| TypeId | GetTypeId () |
| GTEST_API_ TypeId | GetTestTypeId () |
| GTEST_API_ TestInfo * | MakeAndRegisterTestInfo (const char *test_case_name, const char *name, const char *type_param, const char *value_param, TypeId fixture_class_id, SetUpTestCaseFunc set_up_tc, TearDownTestCaseFunc tear_down_tc, TestFactoryBase *factory) |
| GTEST_API_ bool | SkipPrefix (const char *prefix, const char **pstr) |
| GTEST_API_ std::string | GetCurrentOsStackTraceExceptTop (UnitTest *unit_test, int skip_count) |
| GTEST_API_ bool | AlwaysTrue () |
| bool | AlwaysFalse () |
| template<class C > | |
| IsContainer | IsContainerTest (int, typename C::iterator *=NULL, typename C::const_iterator *=NULL) |
| template<class C > | |
| IsNotContainer | IsContainerTest (long) |
| template<typename T , typename U > | |
| bool | ArrayEq (const T *lhs, size_t size, const U *rhs) |
| template<typename T , typename U > | |
| bool | ArrayEq (const T &lhs, const U &rhs) |
| template<typename T , typename U , size_t N> | |
| bool | ArrayEq (const T(&lhs)[N], const U(&rhs)[N]) |
| template<typename Iter , typename Element > | |
| Iter | ArrayAwareFind (Iter begin, Iter end, const Element &elem) |
| template<typename T , typename U > | |
| void | CopyArray (const T *from, size_t size, U *to) |
| template<typename T , typename U > | |
| void | CopyArray (const T &from, U *to) |
| template<typename T , typename U , size_t N> | |
| void | CopyArray (const T(&from)[N], U(*to)[N]) |
| GTEST_API_ | GTEST_DECLARE_STATIC_MUTEX_ (g_linked_ptr_mutex) |
| template<typename T > | |
| bool | operator== (T *ptr, const linked_ptr< T > &x) |
| template<typename T > | |
| bool | operator!= (T *ptr, const linked_ptr< T > &x) |
| template<typename T > | |
| linked_ptr< T > | make_linked_ptr (T *ptr) |
| GTEST_API_ bool | IsTrue (bool condition) |
| GTEST_API_::std::string | FormatFileLocation (const char *file, int line) |
| GTEST_API_::std::string | FormatCompilerIndependentFileLocation (const char *file, int line) |
| void | LogToStderr () |
| void | FlushInfoLog () |
| template<typename To > | |
| To | ImplicitCast_ (To x) |
| template<typename To , typename From > | |
| To | DownCast_ (From *f) |
| template<class Derived , class Base > | |
| Derived * | CheckedDowncastToActualType (Base *base) |
| GTEST_API_ void | CaptureStdout () |
| GTEST_API_ std::string | GetCapturedStdout () |
| GTEST_API_ void | CaptureStderr () |
| GTEST_API_ std::string | GetCapturedStderr () |
| GTEST_API_ size_t | GetThreadCount () |
| bool | IsAlpha (char ch) |
| bool | IsAlNum (char ch) |
| bool | IsDigit (char ch) |
| bool | IsLower (char ch) |
| bool | IsSpace (char ch) |
| bool | IsUpper (char ch) |
| bool | IsXDigit (char ch) |
| bool | IsXDigit (wchar_t ch) |
| char | ToLower (char ch) |
| char | ToUpper (char ch) |
| bool | ParseInt32 (const Message &src_text, const char *str, Int32 *value) |
| bool | BoolFromGTestEnv (const char *flag, bool default_val) |
| GTEST_API_ Int32 | Int32FromGTestEnv (const char *flag, Int32 default_val) |
| const char * | StringFromGTestEnv (const char *flag, const char *default_val) |
| GTEST_API_ std::string | StringStreamToString (::std::stringstream *stream) |
| template<typename T > | |
| std::string | GetTypeName () |
| GTEST_DEFINE_string_ (internal_run_death_test,"","Indicates the file, line number, temporal index of ""the single death test to run, and a file descriptor to ""which a success code may be sent, all separated by ""the '|' characters. This flag is specified if and only if the current ""process is a sub-process launched for running a thread-safe ""death test. FOR INTERNAL USE ONLY.") | |
| GTEST_API_ TimeInMillis | GetTimeInMillis () |
| GTEST_API_ bool | ShouldUseColor (bool stdout_is_tty) |
| GTEST_API_ std::string | FormatTimeInMillisAsSeconds (TimeInMillis ms) |
| GTEST_API_ std::string | FormatEpochTimeInMillisAsIso8601 (TimeInMillis ms) |
| GTEST_API_ bool | ParseInt32Flag (const char *str, const char *flag, Int32 *value) |
| int | GetRandomSeedFromFlag (Int32 random_seed_flag) |
| int | GetNextRandomSeed (int seed) |
| GTEST_API_ std::string | CodePointToUtf8 (UInt32 code_point) |
| GTEST_API_ std::string | WideStringToUtf8 (const wchar_t *str, int num_chars) |
| void | WriteToShardStatusFileIfNeeded () |
| GTEST_API_ bool | ShouldShard (const char *total_shards_str, const char *shard_index_str, bool in_subprocess_for_death_test) |
| GTEST_API_ Int32 | Int32FromEnvOrDie (const char *env_var, Int32 default_val) |
| GTEST_API_ bool | ShouldRunTestOnShard (int total_shards, int shard_index, int test_id) |
| template<class Container , typename Predicate > | |
| int | CountIf (const Container &c, Predicate predicate) |
| template<class Container , typename Functor > | |
| void | ForEach (const Container &c, Functor functor) |
| template<typename E > | |
| E | GetElementOr (const std::vector< E > &v, int i, E default_value) |
| template<typename E > | |
| void | ShuffleRange (internal::Random *random, int begin, int end, std::vector< E > *v) |
| template<typename E > | |
| void | Shuffle (internal::Random *random, std::vector< E > *v) |
| GTEST_API_ FilePath | GetCurrentExecutableName () |
| GTEST_API_ void | ParseGoogleTestFlagsOnly (int *argc, char **argv) |
| GTEST_API_ void | ParseGoogleTestFlagsOnly (int *argc, wchar_t **argv) |
| bool | IsPrintableAscii (wchar_t c) |
| template<typename UnsignedChar , typename Char > | |
| void | PrintCharAndCodeTo (Char c, ostream *os) |
| void | PrintTo (wchar_t wc, ostream *os) |
| void | UniversalPrintArray (const char *begin, size_t len, ostream *os) |
| void | UniversalPrintArray (const wchar_t *begin, size_t len, ostream *os) |
| void | PrintTo (const char *s, ostream *os) |
| void | PrintTo (const wchar_t *s, ostream *os) |
| void | PrintStringTo (const ::std::string &s, ostream *os) |
| GTEST_API_ | GTEST_DEFINE_STATIC_MUTEX_ (g_linked_ptr_mutex) |
| AssertionResult | HasOneFailure (const char *, const char *, const char *, const TestPartResultArray &results, TestPartResult::Type type, const string &substr) |
| template<typename RawType > | |
| AssertionResult | FloatingPointLE (const char *expr1, const char *expr2, RawType val1, RawType val2) |
| UInt32 | ChopLowBits (UInt32 *bits, int n) |
| bool | IsUtf16SurrogatePair (wchar_t first, wchar_t second) |
| UInt32 | CreateCodePointFromUtf16SurrogatePair (wchar_t first, wchar_t second) |
| template<class T , typename Result > | |
| Result | HandleSehExceptionsInMethodIfSupported (T *object, Result(T::*method)(), const char *location) |
| template<class T , typename Result > | |
| Result | HandleExceptionsInMethodIfSupported (T *object, Result(T::*method)(), const char *location) |
| const char * | GetAnsiColorCode (GTestColor color) |
| void | ColoredPrintf (GTestColor color, const char *fmt,...) |
| void | PrintFullTestCommentIfPresent (const TestInfo &test_info) |
| const char * | ParseFlagValue (const char *str, const char *flag, bool def_optional) |
| bool | ParseBoolFlag (const char *str, const char *flag, bool *value) |
| bool | ParseStringFlag (const char *str, const char *flag, std::string *value) |
| template<typename CharType > | |
| void | ParseGoogleTestFlagsOnlyImpl (int *argc, CharType **argv) |
| template<typename CharType > | |
| void | InitGoogleTestImpl (int *argc, CharType **argv) |
Variables | |
| const char | kDeathTestStyleFlag [] = "death_test_style" |
| const char | kDeathTestUseFork [] = "death_test_use_fork" |
| const char | kInternalRunDeathTestFlag [] = "internal_run_death_test" |
| GTEST_API_ int | g_init_gtest_count = 0 |
| GTEST_API_ const char | kStackTraceMarker [] = "\nStack trace:\n" |
| class GTEST_API_ testing::internal::ScopedTrace | GTEST_ATTRIBUTE_UNUSED_ |
| const BiggestInt | kMaxBiggestInt |
| const char | kPathSeparator = '/' |
| const char | kPathSeparatorString [] = "/" |
| const char | kCurrentDirectoryString [] = "./" |
| GTEST_API_ const TypeId | kTestTypeIdInGoogleTest = GetTestTypeId() |
| const char | kAlsoRunDisabledTestsFlag [] = "also_run_disabled_tests" |
| const char | kBreakOnFailureFlag [] = "break_on_failure" |
| const char | kCatchExceptionsFlag [] = "catch_exceptions" |
| const char | kColorFlag [] = "color" |
| const char | kFilterFlag [] = "filter" |
| const char | kListTestsFlag [] = "list_tests" |
| const char | kOutputFlag [] = "output" |
| const char | kPrintTimeFlag [] = "print_time" |
| const char | kRandomSeedFlag [] = "random_seed" |
| const char | kRepeatFlag [] = "repeat" |
| const char | kShuffleFlag [] = "shuffle" |
| const char | kStackTraceDepthFlag [] = "stack_trace_depth" |
| const char | kStreamResultToFlag [] = "stream_result_to" |
| const char | kThrowOnFailureFlag [] = "throw_on_failure" |
| const int | kMaxRandomSeed = 99999 |
| GTEST_API_ bool | g_help_flag = false |
| const int | kStdOutFileno = STDOUT_FILENO |
| const int | kStdErrFileno = STDERR_FILENO |
| const char | kUnknownFile [] = "unknown file" |
| std::string | g_executable_path |
| const UInt32 | kMaxCodePoint1 = (static_cast<UInt32>(1) << 7) - 1 |
| const UInt32 | kMaxCodePoint2 = (static_cast<UInt32>(1) << (5 + 6)) - 1 |
| const UInt32 | kMaxCodePoint3 = (static_cast<UInt32>(1) << (4 + 2*6)) - 1 |
| const UInt32 | kMaxCodePoint4 = (static_cast<UInt32>(1) << (3 + 3*6)) - 1 |
| typedef long long testing::internal::BiggestInt |
| typedef FloatingPoint<double> testing::internal::Double |
| typedef bool_constant<false> testing::internal::false_type |
| typedef FloatingPoint<float> testing::internal::Float |
| typedef TypeWithSize<4>::Int testing::internal::Int32 |
| typedef TypeWithSize<8>::Int testing::internal::Int64 |
| typedef int testing::internal::IsContainer |
| typedef char testing::internal::IsNotContainer |
| typedef void(* testing::internal::SetUpTestCaseFunc)() |
| typedef ::std::string testing::internal::string |
| typedef void(* testing::internal::TearDownTestCaseFunc)() |
| typedef TypeWithSize<8>::Int testing::internal::TimeInMillis |
| typedef bool_constant<true> testing::internal::true_type |
| typedef const void* testing::internal::TypeId |
| typedef TypeWithSize<4>::UInt testing::internal::UInt32 |
| typedef TypeWithSize<8>::UInt testing::internal::UInt64 |
| typedef ::std::wstring testing::internal::wstring |
|
inline |
References AlwaysTrue().
| bool testing::internal::AlwaysTrue | ( | ) |
References IsTrue().
Referenced by AlwaysFalse().
| std::string testing::internal::AppendUserMessage | ( | const std::string & | gtest_msg, |
| const Message & | user_msg | ||
| ) |
References testing::Message::GetString().
Referenced by testing::internal::AssertHelper::operator=().
| Iter testing::internal::ArrayAwareFind | ( | Iter | begin, |
| Iter | end, | ||
| const Element & | elem | ||
| ) |
References ArrayEq().
| bool testing::internal::ArrayEq | ( | const T * | lhs, |
| size_t | size, | ||
| const U * | rhs | ||
| ) |
Referenced by ArrayAwareFind(), ArrayEq(), and testing::internal::NativeArray< Element >::operator==().
|
inline |
|
inline |
References ArrayEq().
| bool testing::internal::BoolFromGTestEnv | ( | const char * | flag, |
| bool | default_val | ||
| ) |
References testing::internal::posix::GetEnv().
| GTEST_API_ void testing::internal::CaptureStderr | ( | ) |
| GTEST_API_ void testing::internal::CaptureStdout | ( | ) |
| Derived* testing::internal::CheckedDowncastToActualType | ( | Base * | base | ) |
References GTEST_CHECK_.
|
inline |
Referenced by CodePointToUtf8().
| AssertionResult testing::internal::CmpHelperEQ | ( | const char * | expected_expression, |
| const char * | actual_expression, | ||
| const T1 & | expected, | ||
| const T2 & | actual | ||
| ) |
References testing::AssertionSuccess(), EqFailure(), and FormatForComparisonFailureMessage().
| AssertionResult testing::internal::CmpHelperEQ | ( | const char * | expected_expression, |
| const char * | actual_expression, | ||
| BiggestInt | expected, | ||
| BiggestInt | actual | ||
| ) |
| AssertionResult testing::internal::CmpHelperFloatingPointEQ | ( | const char * | expected_expression, |
| const char * | actual_expression, | ||
| RawType | expected, | ||
| RawType | actual | ||
| ) |
References testing::AssertionSuccess(), EqFailure(), and StringStreamToString().
| AssertionResult testing::internal::CmpHelperSTRCASEEQ | ( | const char * | expected_expression, |
| const char * | actual_expression, | ||
| const char * | expected, | ||
| const char * | actual | ||
| ) |
| AssertionResult testing::internal::CmpHelperSTRCASENE | ( | const char * | s1_expression, |
| const char * | s2_expression, | ||
| const char * | s1, | ||
| const char * | s2 | ||
| ) |
| AssertionResult testing::internal::CmpHelperSTREQ | ( | const char * | expected_expression, |
| const char * | actual_expression, | ||
| const char * | expected, | ||
| const char * | actual | ||
| ) |
| AssertionResult testing::internal::CmpHelperSTREQ | ( | const char * | expected_expression, |
| const char * | actual_expression, | ||
| const wchar_t * | expected, | ||
| const wchar_t * | actual | ||
| ) |
| AssertionResult testing::internal::CmpHelperSTRNE | ( | const char * | s1_expression, |
| const char * | s2_expression, | ||
| const char * | s1, | ||
| const char * | s2 | ||
| ) |
| AssertionResult testing::internal::CmpHelperSTRNE | ( | const char * | s1_expression, |
| const char * | s2_expression, | ||
| const wchar_t * | s1, | ||
| const wchar_t * | s2 | ||
| ) |
| std::string testing::internal::CodePointToUtf8 | ( | UInt32 | code_point | ) |
References ChopLowBits(), and testing::internal::String::FormatHexInt().
Referenced by WideStringToUtf8().
| void testing::internal::ColoredPrintf | ( | GTestColor | color, |
| const char * | fmt, | ||
| ... | |||
| ) |
References COLOR_DEFAULT, testing::internal::posix::FileNo(), GetAnsiColorCode(), testing::internal::posix::IsATTY(), and ShouldUseColor().
Referenced by ShouldShard(), and WriteToShardStatusFileIfNeeded().
| void testing::internal::CopyArray | ( | const T * | from, |
| size_t | size, | ||
| U * | to | ||
| ) |
Referenced by CopyArray().
|
inline |
|
inline |
References CopyArray().
|
inline |
Referenced by testing::TestCase::disabled_test_count(), testing::internal::UnitTestImpl::failed_test_case_count(), testing::TestCase::failed_test_count(), testing::TestResult::HasFatalFailure(), testing::TestResult::HasNonfatalFailure(), testing::TestCase::reportable_disabled_test_count(), testing::TestCase::reportable_test_count(), testing::internal::UnitTestImpl::successful_test_case_count(), testing::TestCase::successful_test_count(), testing::internal::UnitTestImpl::test_case_to_run_count(), and testing::TestCase::test_to_run_count().
|
inline |
Referenced by WideStringToUtf8().
| void testing::internal::DefaultPrintTo | ( | IsContainer | , |
| false_type | , | ||
| const C & | container, | ||
| ::std::ostream * | os | ||
| ) |
References UniversalPrint().
Referenced by PrintTo().
| void testing::internal::DefaultPrintTo | ( | IsNotContainer | , |
| true_type | , | ||
| T * | p, | ||
| ::std::ostream * | os | ||
| ) |
References IsTrue().
| void testing::internal::DefaultPrintTo | ( | IsNotContainer | , |
| false_type | , | ||
| const T & | value, | ||
| ::std::ostream * | os | ||
| ) |
References testing_internal::DefaultPrintNonContainerTo().
| AssertionResult testing::internal::DoubleNearPredFormat | ( | const char * | expr1, |
| const char * | expr2, | ||
| const char * | abs_error_expr, | ||
| double | val1, | ||
| double | val2, | ||
| double | abs_error | ||
| ) |
References testing::AssertionFailure(), testing::AssertionSuccess(), and mpfr::fabs().
|
inline |
References madness::f, and GTEST_CHECK_.
| AssertionResult testing::internal::EqFailure | ( | const char * | expected_expression, |
| const char * | actual_expression, | ||
| const std::string & | expected_value, | ||
| const std::string & | actual_value, | ||
| bool | ignoring_case | ||
| ) |
References testing::AssertionFailure().
Referenced by CmpHelperEQ(), CmpHelperFloatingPointEQ(), CmpHelperSTRCASEEQ(), and CmpHelperSTREQ().
| AssertionResult testing::internal::FloatingPointLE | ( | const char * | expr1, |
| const char * | expr2, | ||
| RawType | val1, | ||
| RawType | val2 | ||
| ) |
References testing::AssertionFailure(), testing::AssertionSuccess(), and StringStreamToString().
|
inline |
| void testing::internal::ForEach | ( | const Container & | c, |
| Functor | functor | ||
| ) |
| GTEST_API_::std::string testing::internal::FormatCompilerIndependentFileLocation | ( | const char * | file, |
| int | line | ||
| ) |
References StreamableToString().
| std::string testing::internal::FormatEpochTimeInMillisAsIso8601 | ( | TimeInMillis | ms | ) |
References StreamableToString().
| GTEST_API_::std::string testing::internal::FormatFileLocation | ( | const char * | file, |
| int | line | ||
| ) |
References StreamableToString().
Referenced by testing::internal::GTestLog::GTestLog().
| std::string testing::internal::FormatForComparisonFailureMessage | ( | const T1 & | value, |
| const T2 & | |||
| ) |
Referenced by CmpHelperEQ().
| std::string testing::internal::FormatTimeInMillisAsSeconds | ( | TimeInMillis | ms | ) |
| const char* testing::internal::GetAnsiColorCode | ( | GTestColor | color | ) |
References COLOR_GREEN, COLOR_RED, and COLOR_YELLOW.
Referenced by ColoredPrintf().
| std::string testing::internal::GetBoolAssertionFailureMessage | ( | const AssertionResult & | assertion_result, |
| const char * | expression_text, | ||
| const char * | actual_predicate_value, | ||
| const char * | expected_predicate_value | ||
| ) |
References testing::Message::GetString(), and testing::AssertionResult::message().
| GTEST_API_ std::string testing::internal::GetCapturedStderr | ( | ) |
| GTEST_API_ std::string testing::internal::GetCapturedStdout | ( | ) |
| FilePath testing::internal::GetCurrentExecutableName | ( | ) |
| std::string testing::internal::GetCurrentOsStackTraceExceptTop | ( | UnitTest * | unit_test, |
| int | skip_count | ||
| ) |
|
inline |
|
inline |
References GTEST_CHECK_.
Referenced by testing::internal::UnitTestImpl::RunAllTests().
|
inline |
References GetTimeInMillis().
Referenced by testing::internal::UnitTestImpl::RunAllTests().
| TypeId testing::internal::GetTestTypeId | ( | ) |
| size_t testing::internal::GetThreadCount | ( | ) |
| TimeInMillis testing::internal::GetTimeInMillis | ( | ) |
References error(), and GTEST_HAS_GETTIMEOFDAY_.
Referenced by GetRandomSeedFromFlag(), and testing::internal::UnitTestImpl::RunAllTests().
| TypeId testing::internal::GetTypeId | ( | ) |
| std::string testing::internal::GetTypeName | ( | ) |
References std::tr1::T().
|
inline |
References testing::UnitTest::GetInstance().
Referenced by GetCurrentOsStackTraceExceptTop(), HandleExceptionsInMethodIfSupported(), testing::Test::HasFatalFailure(), testing::internal::HasNewFatalFailureHelper::HasNewFatalFailureHelper(), testing::Test::HasNonfatalFailure(), InitGoogleTestImpl(), MakeAndRegisterTestInfo(), testing::internal::HasNewFatalFailureHelper::~HasNewFatalFailureHelper(), and testing::ScopedFakeTestPartResultReporter::~ScopedFakeTestPartResultReporter().
| GTEST_API_ testing::internal::GTEST_DECLARE_STATIC_MUTEX_ | ( | g_linked_ptr_mutex | ) |
| testing::internal::GTEST_DECLARE_string_ | ( | internal_run_death_test | ) |
| GTEST_API_ testing::internal::GTEST_DEFINE_STATIC_MUTEX_ | ( | g_linked_ptr_mutex | ) |
| testing::internal::GTEST_DEFINE_string_ | ( | internal_run_death_test | , |
| "" | , | ||
| "Indicates the | file, | ||
| line | number, | ||
| temporal index of""the single death test to | run, | ||
| and a file descriptor to""which a success code may be | sent, | ||
| all separated by""the '|'characters.This flag is specified if and only if the current""process is a sub-process launched for running a thread-safe""death test.FOR INTERNAL USE ONLY." | |||
| ) |
| testing::internal::GTEST_IMPL_CMP_HELPER_ | ( | NE | , |
| ! | |||
| ) |
| testing::internal::GTEST_IMPL_CMP_HELPER_ | ( | LE | , |
| <= | |||
| ) |
| testing::internal::GTEST_IMPL_CMP_HELPER_ | ( | LT | ) |
| testing::internal::GTEST_IMPL_CMP_HELPER_ | ( | GE | , |
| >= | |||
| ) |
| testing::internal::GTEST_IMPL_CMP_HELPER_ | ( | GT | ) |
| testing::internal::GTEST_IMPL_FORMAT_C_STRING_AS_POINTER_ | ( | char | ) |
| testing::internal::GTEST_IMPL_FORMAT_C_STRING_AS_POINTER_ | ( | wchar_t | ) |
| testing::internal::GTEST_IMPL_FORMAT_C_STRING_AS_STRING_ | ( | char | , |
| ::std::string | |||
| ) |
| Result testing::internal::HandleExceptionsInMethodIfSupported | ( | T * | object, |
| Result(T::*)() | method, | ||
| const char * | location | ||
| ) |
References GetUnitTestImpl(), HandleSehExceptionsInMethodIfSupported(), testing::TestPartResult::kFatalFailure, and ReportFailureInUnknownLocation().
Referenced by testing::UnitTest::Run().
| Result testing::internal::HandleSehExceptionsInMethodIfSupported | ( | T * | object, |
| Result(T::*)() | method, | ||
| const char * | location | ||
| ) |
References testing::TestPartResult::kFatalFailure, and ReportFailureInUnknownLocation().
Referenced by HandleExceptionsInMethodIfSupported().
| AssertionResult testing::internal::HasOneFailure | ( | const char * | , |
| const char * | , | ||
| const char * | , | ||
| const TestPartResultArray & | results, | ||
| TestPartResult::Type | type, | ||
| const string & | substr | ||
| ) |
References testing::AssertionFailure(), testing::AssertionSuccess(), testing::TestPartResultArray::GetTestPartResult(), testing::TestPartResult::kFatalFailure, testing::TestPartResult::message(), testing::TestPartResultArray::size(), and testing::TestPartResult::type().
Referenced by testing::internal::SingleFailureChecker::~SingleFailureChecker().
|
inline |
| void testing::internal::InitGoogleTestImpl | ( | int * | argc, |
| CharType ** | argv | ||
| ) |
References g_executable_path, GetUnitTestImpl(), ParseGoogleTestFlagsOnly(), testing::internal::UnitTestImpl::PostFlagParsingInit(), and StreamableToString().
Referenced by testing::InitGoogleTest().
| Int32 testing::internal::Int32FromEnvOrDie | ( | const char * | env_var, |
| Int32 | default_val | ||
| ) |
References testing::internal::posix::GetEnv(), and ParseInt32().
Referenced by testing::internal::UnitTestImpl::FilterTests(), and ShouldShard().
| Int32 testing::internal::Int32FromGTestEnv | ( | const char * | flag, |
| Int32 | default_val | ||
| ) |
References testing::internal::posix::GetEnv(), and ParseInt32().
|
inline |
|
inline |
| IsContainer testing::internal::IsContainerTest | ( | int | , |
| typename C::iterator * | = NULL, |
||
| typename C::const_iterator * | = NULL |
||
| ) |
| IsNotContainer testing::internal::IsContainerTest | ( | long | ) |
|
inline |
|
inline |
| char testing::internal::IsNullLiteralHelper | ( | Secret * | p | ) |
| char(& testing::internal::IsNullLiteralHelper | ( | ... | ) | )[2] |
|
inline |
|
inline |
| bool testing::internal::IsTrue | ( | bool | condition | ) |
Referenced by AlwaysTrue(), DefaultPrintTo(), and testing::internal::scoped_ptr< const ::std::string >::reset().
|
inline |
|
inline |
Referenced by WideStringToUtf8().
|
inline |
|
inline |
|
inline |
| linked_ptr<T> testing::internal::make_linked_ptr | ( | T * | ptr | ) |
| TestInfo * testing::internal::MakeAndRegisterTestInfo | ( | const char * | test_case_name, |
| const char * | name, | ||
| const char * | type_param, | ||
| const char * | value_param, | ||
| TypeId | fixture_class_id, | ||
| SetUpTestCaseFunc | set_up_tc, | ||
| TearDownTestCaseFunc | tear_down_tc, | ||
| TestFactoryBase * | factory | ||
| ) |
References testing::internal::UnitTestImpl::AddTestInfo(), and GetUnitTestImpl().
|
inline |
References testing::internal::linked_ptr< T >::get().
|
inline |
References testing::internal::linked_ptr< T >::get().
| bool testing::internal::ParseBoolFlag | ( | const char * | str, |
| const char * | flag, | ||
| bool * | value | ||
| ) |
References ParseFlagValue().
Referenced by ParseGoogleTestFlagsOnlyImpl().
| const char* testing::internal::ParseFlagValue | ( | const char * | str, |
| const char * | flag, | ||
| bool | def_optional | ||
| ) |
References GTEST_FLAG_PREFIX_.
Referenced by ParseBoolFlag(), ParseInt32Flag(), and ParseStringFlag().
| void testing::internal::ParseGoogleTestFlagsOnly | ( | int * | argc, |
| char ** | argv | ||
| ) |
References ParseGoogleTestFlagsOnlyImpl().
Referenced by InitGoogleTestImpl().
| void testing::internal::ParseGoogleTestFlagsOnly | ( | int * | argc, |
| wchar_t ** | argv | ||
| ) |
References ParseGoogleTestFlagsOnlyImpl().
| void testing::internal::ParseGoogleTestFlagsOnlyImpl | ( | int * | argc, |
| CharType ** | argv | ||
| ) |
References madness::arg(), g_help_flag, GTEST_FLAG, kAlsoRunDisabledTestsFlag, kBreakOnFailureFlag, kCatchExceptionsFlag, kColorFlag, kDeathTestStyleFlag, kDeathTestUseFork, kFilterFlag, kInternalRunDeathTestFlag, kListTestsFlag, kOutputFlag, kPrintTimeFlag, kRandomSeedFlag, kRepeatFlag, kShuffleFlag, kStackTraceDepthFlag, kStreamResultToFlag, kThrowOnFailureFlag, ParseBoolFlag(), ParseInt32Flag(), ParseStringFlag(), and StreamableToString().
Referenced by ParseGoogleTestFlagsOnly().
| bool testing::internal::ParseInt32 | ( | const Message & | src_text, |
| const char * | str, | ||
| Int32 * | value | ||
| ) |
References testing::Message::GetString().
Referenced by Int32FromEnvOrDie(), Int32FromGTestEnv(), and ParseInt32Flag().
| bool testing::internal::ParseInt32Flag | ( | const char * | str, |
| const char * | flag, | ||
| Int32 * | value | ||
| ) |
References ParseFlagValue(), and ParseInt32().
Referenced by ParseGoogleTestFlagsOnlyImpl().
| bool testing::internal::ParseStringFlag | ( | const char * | str, |
| const char * | flag, | ||
| std::string * | value | ||
| ) |
References ParseFlagValue().
Referenced by ParseGoogleTestFlagsOnlyImpl().
| void testing::internal::PrintCharAndCodeTo | ( | Char | c, |
| ostream * | os | ||
| ) |
References c, testing::internal::String::FormatHexInt(), and kHexEscape.
| void testing::internal::PrintFullTestCommentIfPresent | ( | const TestInfo & | test_info | ) |
References testing::TestInfo::type_param(), and testing::TestInfo::value_param().
| void testing::internal::PrintRawArrayTo | ( | const T | a[], |
| size_t | count, | ||
| ::std::ostream * | os | ||
| ) |
References UniversalPrint().
Referenced by UniversalPrintArray().
| void testing::internal::PrintStringTo | ( | const ::std::string & | s, |
| ostream * | os | ||
| ) |
| GTEST_API_ void testing::internal::PrintStringTo | ( | const ::std::string & | s, |
| ::std::ostream * | os | ||
| ) |
Referenced by PrintTo().
| void testing::internal::PrintTo | ( | wchar_t | wc, |
| ostream * | os | ||
| ) |
| void testing::internal::PrintTo | ( | const char * | s, |
| ostream * | os | ||
| ) |
| void testing::internal::PrintTo | ( | const wchar_t * | s, |
| ostream * | os | ||
| ) |
| void testing::internal::PrintTo | ( | const T & | value, |
| ::std::ostream * | os | ||
| ) |
References DefaultPrintTo().
Referenced by testing::internal::UniversalPrinter< T >::Print(), and PrintTo().
| void testing::internal::PrintTo | ( | unsigned char | c, |
| ::std::ostream * | os | ||
| ) |
References c.
| void testing::internal::PrintTo | ( | signed char | c, |
| ::std::ostream * | os | ||
| ) |
References c.
|
inline |
References PrintTo().
|
inline |
| GTEST_API_ void testing::internal::PrintTo | ( | wchar_t | wc, |
| ::std::ostream * | os | ||
| ) |
| GTEST_API_ void testing::internal::PrintTo | ( | const char * | s, |
| ::std::ostream * | os | ||
| ) |
|
inline |
References PrintTo().
|
inline |
References PrintTo().
|
inline |
References PrintTo().
|
inline |
References PrintTo().
|
inline |
References PrintTo().
| GTEST_API_ void testing::internal::PrintTo | ( | const wchar_t * | s, |
| ::std::ostream * | os | ||
| ) |
|
inline |
References PrintTo().
|
inline |
References PrintStringTo().
| void testing::internal::PrintTo | ( | const ::std::pair< T1, T2 > & | value, |
| ::std::ostream * | os | ||
| ) |
| void testing::internal::ReportFailureInUnknownLocation | ( | TestPartResult::Type | result_type, |
| const std::string & | message | ||
| ) |
References testing::UnitTest::GetInstance().
Referenced by HandleExceptionsInMethodIfSupported(), and HandleSehExceptionsInMethodIfSupported().
| bool testing::internal::ShouldRunTestOnShard | ( | int | total_shards, |
| int | shard_index, | ||
| int | test_id | ||
| ) |
Referenced by testing::internal::UnitTestImpl::FilterTests().
| bool testing::internal::ShouldShard | ( | const char * | total_shards_str, |
| const char * | shard_index_str, | ||
| bool | in_subprocess_for_death_test | ||
| ) |
References COLOR_RED, ColoredPrintf(), testing::Message::GetString(), and Int32FromEnvOrDie().
Referenced by testing::internal::UnitTestImpl::RunAllTests().
| bool testing::internal::ShouldUseColor | ( | bool | stdout_is_tty | ) |
|
inline |
References ShuffleRange().
| void testing::internal::ShuffleRange | ( | internal::Random * | random, |
| int | begin, | ||
| int | end, | ||
| std::vector< E > * | v | ||
| ) |
References testing::internal::Random::Generate(), GTEST_CHECK_, and std::swap().
Referenced by Shuffle(), and testing::internal::UnitTestImpl::ShuffleTests().
| bool testing::internal::SkipPrefix | ( | const char * | prefix, |
| const char ** | pstr | ||
| ) |
| std::string testing::internal::StreamableToString | ( | const T & | streamable | ) |
| const char * testing::internal::StringFromGTestEnv | ( | const char * | flag, |
| const char * | default_val | ||
| ) |
References testing::internal::posix::GetEnv().
| std::string testing::internal::StringStreamToString | ( | ::std::stringstream * | stream | ) |
Referenced by CmpHelperFloatingPointEQ(), FloatingPointLE(), testing::Message::GetString(), and WideStringToUtf8().
|
inline |
|
inline |
| void testing::internal::UniversalPrint | ( | const T & | value, |
| ::std::ostream * | os | ||
| ) |
References testing::internal::UniversalPrinter< T >::Print(), and std::tr1::T().
Referenced by DefaultPrintTo(), testing::internal::UniversalPrinter< T & >::Print(), testing::internal::UniversalTersePrinter< T >::Print(), testing::internal::UniversalTersePrinter< T & >::Print(), testing::internal::UniversalTersePrinter< const char * >::Print(), and PrintRawArrayTo().
| void testing::internal::UniversalPrintArray | ( | const char * | begin, |
| size_t | len, | ||
| ostream * | os | ||
| ) |
| void testing::internal::UniversalPrintArray | ( | const wchar_t * | begin, |
| size_t | len, | ||
| ostream * | os | ||
| ) |
| void testing::internal::UniversalPrintArray | ( | const T * | begin, |
| size_t | len, | ||
| ::std::ostream * | os | ||
| ) |
References PrintRawArrayTo().
Referenced by testing::internal::UniversalPrinter< T[N]>::Print().
| GTEST_API_ void testing::internal::UniversalPrintArray | ( | const char * | begin, |
| size_t | len, | ||
| ::std::ostream * | os | ||
| ) |
| GTEST_API_ void testing::internal::UniversalPrintArray | ( | const wchar_t * | begin, |
| size_t | len, | ||
| ::std::ostream * | os | ||
| ) |
| void testing::internal::UniversalTersePrint | ( | const T & | value, |
| ::std::ostream * | os | ||
| ) |
| std::string testing::internal::WideStringToUtf8 | ( | const wchar_t * | str, |
| int | num_chars | ||
| ) |
References CodePointToUtf8(), CreateCodePointFromUtf16SurrogatePair(), IsUtf16SurrogatePair(), L, and StringStreamToString().
Referenced by testing::internal::String::ShowWideCString().
| void testing::internal::WriteToShardStatusFileIfNeeded | ( | ) |
References COLOR_RED, ColoredPrintf(), testing::internal::posix::FOpen(), and testing::internal::posix::GetEnv().
Referenced by testing::internal::UnitTestImpl::RunAllTests().
| std::string testing::internal::g_executable_path |
Referenced by InitGoogleTestImpl().
| bool testing::internal::g_help_flag = false |
Referenced by ParseGoogleTestFlagsOnlyImpl(), and testing::internal::UnitTestImpl::RunAllTests().
| GTEST_API_ int testing::internal::g_init_gtest_count = 0 |
| class testing::internal::GTestFlagSaver testing::internal::GTEST_ATTRIBUTE_UNUSED_ |
| const char testing::internal::kAlsoRunDisabledTestsFlag[] = "also_run_disabled_tests" |
Referenced by ParseGoogleTestFlagsOnlyImpl().
| const char testing::internal::kBreakOnFailureFlag[] = "break_on_failure" |
Referenced by ParseGoogleTestFlagsOnlyImpl().
| const char testing::internal::kCatchExceptionsFlag[] = "catch_exceptions" |
Referenced by ParseGoogleTestFlagsOnlyImpl().
| const char testing::internal::kColorFlag[] = "color" |
Referenced by ParseGoogleTestFlagsOnlyImpl().
| const char testing::internal::kCurrentDirectoryString[] = "./" |
Referenced by testing::internal::FilePath::RemoveFileName().
| const char testing::internal::kDeathTestStyleFlag[] = "death_test_style" |
Referenced by ParseGoogleTestFlagsOnlyImpl().
| const char testing::internal::kDeathTestUseFork[] = "death_test_use_fork" |
Referenced by ParseGoogleTestFlagsOnlyImpl().
| const char testing::internal::kFilterFlag[] = "filter" |
Referenced by ParseGoogleTestFlagsOnlyImpl().
| const char testing::internal::kInternalRunDeathTestFlag[] = "internal_run_death_test" |
Referenced by ParseGoogleTestFlagsOnlyImpl().
| const char testing::internal::kListTestsFlag[] = "list_tests" |
Referenced by ParseGoogleTestFlagsOnlyImpl().
| const BiggestInt testing::internal::kMaxBiggestInt |
| const int testing::internal::kMaxRandomSeed = 99999 |
| const char testing::internal::kOutputFlag[] = "output" |
Referenced by ParseGoogleTestFlagsOnlyImpl().
| const char testing::internal::kPathSeparator = '/' |
| const char testing::internal::kPathSeparatorString[] = "/" |
| const char testing::internal::kPrintTimeFlag[] = "print_time" |
Referenced by ParseGoogleTestFlagsOnlyImpl().
| const char testing::internal::kRandomSeedFlag[] = "random_seed" |
Referenced by ParseGoogleTestFlagsOnlyImpl().
| const char testing::internal::kRepeatFlag[] = "repeat" |
Referenced by ParseGoogleTestFlagsOnlyImpl().
| const char testing::internal::kShuffleFlag[] = "shuffle" |
Referenced by ParseGoogleTestFlagsOnlyImpl().
| const char testing::internal::kStackTraceDepthFlag[] = "stack_trace_depth" |
Referenced by ParseGoogleTestFlagsOnlyImpl().
| const char testing::internal::kStackTraceMarker = "\nStack trace:\n" |
| const int testing::internal::kStdErrFileno = STDERR_FILENO |
| const int testing::internal::kStdOutFileno = STDOUT_FILENO |
| const char testing::internal::kStreamResultToFlag[] = "stream_result_to" |
Referenced by ParseGoogleTestFlagsOnlyImpl().
| const TypeId testing::internal::kTestTypeIdInGoogleTest = GetTestTypeId() |
| const char testing::internal::kThrowOnFailureFlag[] = "throw_on_failure" |
Referenced by ParseGoogleTestFlagsOnlyImpl().
| const char testing::internal::kUnknownFile[] = "unknown file" |
1.8.8