proxygen
|
Namespaces | |
edit_distance | |
invoke_argument | |
posix | |
Typedefs | |
typedef ::std::pair< size_t, size_t > | ElementMatcherPair |
typedef ::std::vector< ElementMatcherPair > | ElementMatcherPairs |
typedef ::std::vector< string > | Strings |
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 |
Functions | |
template<typename T > | |
void | PrintTo (const ReferenceWrapper< T > &ref,::std::ostream *os) |
void | PrintIfNotEmpty (const internal::string &explanation,::std::ostream *os) |
bool | IsReadableTypeName (const string &type_name) |
template<typename Value , typename T > | |
bool | MatchPrintAndExplain (Value &value, const Matcher< T > &matcher, MatchResultListener *listener) |
template<typename MatcherTuple , typename ValueTuple > | |
bool | TupleMatches (const MatcherTuple &matcher_tuple, const ValueTuple &value_tuple) |
template<typename MatcherTuple , typename ValueTuple > | |
void | ExplainMatchFailureTupleTo (const MatcherTuple &matchers, const ValueTuple &values,::std::ostream *os) |
template<typename Tuple , typename Func , typename OutIter > | |
OutIter | TransformTupleValues (Func f, const Tuple &t, OutIter out) |
bool | CaseInsensitiveCStringEquals (const char *lhs, const char *rhs) |
bool | CaseInsensitiveCStringEquals (const wchar_t *lhs, const wchar_t *rhs) |
template<typename StringType > | |
bool | CaseInsensitiveStringEquals (const StringType &s1, const StringType &s2) |
template<typename M > | |
PredicateFormatterFromMatcher< M > | MakePredicateFormatterFromMatcher (M matcher) |
GTEST_API_ ElementMatcherPairs | FindMaxBipartiteMatching (const MatchMatrix &g) |
GTEST_API_ bool | FindPairing (const MatchMatrix &matrix, MatchResultListener *listener) |
template<typename Tuple2Matcher , typename Second > | |
BoundSecondMatcher< Tuple2Matcher, Second > | MatcherBindSecond (const Tuple2Matcher &tm, const Second &second) |
GTEST_API_ string | FormatMatcherDescription (bool negation, const char *matcher_name, const Strings ¶m_values) |
template<typename InputIterator , typename OutputIterator > | |
OutputIterator | CopyElements (InputIterator first, InputIterator last, OutputIterator output) |
GTEST_API_ | GTEST_DECLARE_STATIC_MUTEX_ (g_gmock_mutex) |
GTEST_API_ void | LogWithLocation (testing::internal::LogSeverity severity, const char *file, int line, const string &message) |
void | ReportUninterestingCall (CallReaction reaction, const string &msg) |
GTEST_API_ string | ConvertIdentifierNameToWords (const char *id_name) |
template<typename Pointer > | |
const Pointer::element_type * | GetRawPointer (const Pointer &p) |
template<typename Element > | |
Element * | GetRawPointer (Element *p) |
template<typename From , typename To > | |
void | Assert (bool condition, const char *file, int line) |
void | Expect (bool condition, const char *file, int line, const string &msg) |
void | Expect (bool condition, const char *file, int line) |
GTEST_API_ bool | LogIsVisible (LogSeverity severity) |
GTEST_API_ void | Log (LogSeverity severity, const string &message, int stack_frames_to_skip) |
template<typename T > | |
T | Invalid () |
GTEST_API_ FailureReporterInterface * | GetFailureReporter () |
static | GTEST_DEFINE_STATIC_MUTEX_ (g_log_mutex) |
GTEST_API_ string | JoinAsTuple (const Strings &fields) |
static void | LogElementMatcherPairVec (const ElementMatcherPairs &pairs,::std::ostream *stream) |
GTEST_API_ | GTEST_DEFINE_STATIC_MUTEX_ (g_gmock_mutex) |
static const char * | ParseGoogleMockFlagValue (const char *str, const char *flag, bool def_optional) |
static bool | ParseGoogleMockBoolFlag (const char *str, const char *flag, bool *value) |
template<typename String > | |
static bool | ParseGoogleMockStringFlag (const char *str, const char *flag, String *value) |
template<typename CharType > | |
void | InitGoogleMockImpl (int *argc, CharType **argv) |
template<typename T > | |
std::string | StreamableToString (const T &streamable) |
template<typename T1 , typename T2 > | |
std::string | FormatForComparisonFailureMessage (const T1 &value, const T2 &) |
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) |
template<typename T1 , typename T2 > | |
AssertionResult | CmpHelperEQFailure (const char *lhs_expression, const char *rhs_expression, const T1 &lhs, const T2 &rhs) |
template<typename T1 , typename T2 > | |
AssertionResult | CmpHelperEQ (const char *lhs_expression, const char *rhs_expression, const T1 &lhs, const T2 &rhs) |
GTEST_API_ AssertionResult | CmpHelperEQ (const char *lhs_expression, const char *rhs_expression, BiggestInt lhs, BiggestInt rhs) |
template<typename T1 , typename T2 > | |
AssertionResult | CmpHelperOpFailure (const char *expr1, const char *expr2, const T1 &val1, const T2 &val2, const char *op) |
template<typename T1 , typename T2 > | |
AssertionResult | CmpHelperNE (const char *expr1, const char *expr2, const T1 &val1, const T2 &val2) |
GTEST_API_ AssertionResult | CmpHelperNE (const char *expr1, const char *expr2, BiggestInt val1, BiggestInt val2) |
template<typename T1 , typename T2 > | |
AssertionResult | CmpHelperLE (const char *expr1, const char *expr2, const T1 &val1, const T2 &val2) |
GTEST_API_ AssertionResult | CmpHelperLE (const char *expr1, const char *expr2, BiggestInt val1, BiggestInt val2) |
template<typename T1 , typename T2 > | |
AssertionResult | CmpHelperLT (const char *expr1, const char *expr2, const T1 &val1, const T2 &val2) |
GTEST_API_ AssertionResult | CmpHelperLT (const char *expr1, const char *expr2, BiggestInt val1, BiggestInt val2) |
template<typename T1 , typename T2 > | |
AssertionResult | CmpHelperGE (const char *expr1, const char *expr2, const T1 &val1, const T2 &val2) |
GTEST_API_ AssertionResult | CmpHelperGE (const char *expr1, const char *expr2, BiggestInt val1, BiggestInt val2) |
template<typename T1 , typename T2 > | |
AssertionResult | CmpHelperGT (const char *expr1, const char *expr2, const T1 &val1, const T2 &val2) |
GTEST_API_ AssertionResult | CmpHelperGT (const char *expr1, const char *expr2, BiggestInt val1, BiggestInt val2) |
GTEST_API_ AssertionResult | CmpHelperSTREQ (const char *s1_expression, const char *s2_expression, const char *s1, const char *s2) |
GTEST_API_ AssertionResult | CmpHelperSTRCASEEQ (const char *s1_expression, const char *s2_expression, const char *s1, const char *s2) |
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 *s1_expression, const char *s2_expression, const wchar_t *s1, const wchar_t *s2) |
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 *lhs_expression, const char *rhs_expression, RawType lhs_value, RawType rhs_value) |
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_ std::string | DiffStrings (const std::string &left, const std::string &right, size_t *total_line_count) |
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, CodeLocation code_location, 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) |
bool | IsTrue (bool condition) |
::std::string | FormatFileLocation (const char *file, int line) |
::std::string | FormatCompilerIndependentFileLocation (const char *file, int line) |
void | LogToStderr () |
void | FlushInfoLog () |
template<typename T > | |
const T & | move (const T &t) |
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) |
void | CaptureStdout () |
std::string | GetCapturedStdout () |
void | CaptureStderr () |
std::string | GetCapturedStderr () |
std::string | TempDir () |
size_t | GetFileSize (FILE *file) |
std::string | ReadEntireFile (FILE *file) |
const ::std::vector< testing::internal::string > & | GetArgvs () |
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) |
std::string | StripTrailingSpaces (std::string str) |
bool | ParseInt32 (const Message &src_text, const char *str, Int32 *value) |
bool | BoolFromGTestEnv (const char *flag, bool default_val) |
Int32 | Int32FromGTestEnv (const char *flag, Int32 default_val) |
std::string | 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.") | |
static bool | IsPathSeparator (char c) |
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) |
template<typename T > | |
static void | Delete (T *x) |
GTEST_API_ FilePath | GetCurrentExecutableName () |
GTEST_API_ void | ParseGoogleTestFlagsOnly (int *argc, char **argv) |
GTEST_API_ void | ParseGoogleTestFlagsOnly (int *argc, wchar_t **argv) |
static std::string | FlagToEnvVar (const char *flag) |
bool | IsPrintableAscii (wchar_t c) |
template<typename UnsignedChar , typename Char > | |
static CharFormat | PrintAsCharLiteralTo (Char c, ostream *os) |
static CharFormat | PrintAsStringLiteralTo (wchar_t c, ostream *os) |
static CharFormat | PrintAsStringLiteralTo (char c, ostream *os) |
template<typename UnsignedChar , typename Char > | |
void | PrintCharAndCodeTo (Char c, ostream *os) |
void | PrintTo (wchar_t wc, ostream *os) |
template<typename CharType > | |
GTEST_ATTRIBUTE_NO_SANITIZE_MEMORY_ GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_ static GTEST_ATTRIBUTE_NO_SANITIZE_THREAD_ void | PrintCharsAsStringTo (const CharType *begin, size_t len, ostream *os) |
template<typename CharType > | |
GTEST_ATTRIBUTE_NO_SANITIZE_MEMORY_ GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_ static GTEST_ATTRIBUTE_NO_SANITIZE_THREAD_ void | UniversalPrintCharArray (const CharType *begin, size_t len, 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) |
static bool | GTestIsInitialized () |
static int | SumOverTestCaseList (const std::vector< TestCase * > &case_list, int(TestCase::*method)() const) |
static bool | TestCasePassed (const TestCase *test_case) |
static bool | TestCaseFailed (const TestCase *test_case) |
static bool | ShouldRunTestCase (const TestCase *test_case) |
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) |
void | SplitString (const ::std::string &str, char delimiter,::std::vector< ::std::string > *dest) |
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) |
static std::string | PrintTestPartResultToString (const TestPartResult &test_part_result) |
static void | PrintTestPartResult (const TestPartResult &test_part_result) |
const char * | GetAnsiColorCode (GTestColor color) |
void | ColoredPrintf (GTestColor color, const char *fmt,...) |
void | PrintFullTestCommentIfPresent (const TestInfo &test_info) |
static bool | PortableLocaltime (time_t seconds, struct tm *out) |
static void | SetUpEnvironment (Environment *env) |
static void | TearDownEnvironment (Environment *env) |
static void | PrintOnOneLine (const char *str, int max_length) |
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) |
static bool | HasGoogleTestFlagPrefix (const char *str) |
static void | PrintColorEncoded (const char *str) |
bool | ParseGoogleTestFlag (const char *const arg) |
template<typename CharType > | |
void | ParseGoogleTestFlagsOnlyImpl (int *argc, CharType **argv) |
template<typename CharType > | |
void | InitGoogleTestImpl (int *argc, CharType **argv) |
TEST_F (ListenerTest, DoesFoo) | |
TEST_F (ListenerTest, DoesBar) | |
TEST (IsXDigitTest, WorksForNarrowAscii) | |
TEST (IsXDigitTest, ReturnsFalseForNarrowNonAscii) | |
TEST (IsXDigitTest, WorksForWideAscii) | |
TEST (IsXDigitTest, ReturnsFalseForWideNonAscii) | |
TEST (ImplicitCastTest, ConvertsPointers) | |
TEST (ImplicitCastTest, CanUseInheritance) | |
TEST (ImplicitCastTest, CanUseNonConstCastOperator) | |
TEST (ImplicitCastTest, CanUseConstCastOperatorOnConstValues) | |
TEST (ImplicitCastTest, CanSelectBetweenConstAndNonConstCasrAppropriately) | |
TEST (ImplicitCastTest, CanUseImplicitConstructor) | |
TEST (IteratorTraitsTest, WorksForSTLContainerIterators) | |
TEST (IteratorTraitsTest, WorksForPointerToNonConst) | |
TEST (IteratorTraitsTest, WorksForPointerToConst) | |
TEST (ScopedPtrTest, DefinesElementType) | |
TEST (GtestCheckSyntaxTest, BehavesLikeASingleStatement) | |
TEST (GtestCheckSyntaxTest, WorksWithSwitch) | |
TEST (FormatFileLocationTest, FormatsFileLocation) | |
TEST (FormatFileLocationTest, FormatsUnknownFile) | |
TEST (FormatFileLocationTest, FormatsUknownLine) | |
TEST (FormatFileLocationTest, FormatsUknownFileAndLine) | |
TEST (FormatCompilerIndependentFileLocationTest, FormatsFileLocation) | |
TEST (FormatCompilerIndependentFileLocationTest, FormatsUknownFile) | |
TEST (FormatCompilerIndependentFileLocationTest, FormatsUknownLine) | |
TEST (FormatCompilerIndependentFileLocationTest, FormatsUknownFileAndLine) | |
TEST (GetThreadCountTest, ReturnsZeroWhenUnableToCountThreads) | |
TEST (GtestCheckDeathTest, DiesWithCorrectOutputOnFailure) | |
TEST (RegexEngineSelectionTest, SelectsCorrectRegexEngine) | |
TEST (CaptureTest, CapturesStdout) | |
TEST (CaptureTest, CapturesStderr) | |
TEST (CaptureTest, CapturesStdoutAndStderr) | |
TEST (CaptureDeathTest, CannotReenterStdoutCapture) | |
TEST (ThreadLocalTest, DefaultConstructorInitializesToDefaultValues) | |
TEST (ThreadLocalTest, SingleParamConstructorInitializesToParam) | |
TEST (ThreadLocalTest, ValueDefaultContructorIsNotRequiredForParamVersion) | |
TEST (ThreadLocalTest, GetAndPointerReturnSameValue) | |
TEST (ThreadLocalTest, PointerAndConstPointerReturnSameValue) | |
TEST (ApiTest, UnitTestImmutableAccessorsWork) | |
AssertionResult | IsNull (const char *str) |
TEST (ApiTest, TestCaseImmutableAccessorsWork) | |
TEST (ApiTest, TestCaseDisabledAccessorsWork) | |
TEST (ApiTest, DISABLED_Dummy1) | |
TEST (DISABLED_Test, Dummy2) | |
static | GTEST_DEFINE_STATIC_MUTEX_ (g_log_mutex) |
static void | LogElementMatcherPairVec (const ElementMatcherPairs &pairs,::std::ostream *stream) |
static const char * | ParseGoogleMockFlagValue (const char *str, const char *flag, bool def_optional) |
static bool | ParseGoogleMockBoolFlag (const char *str, const char *flag, bool *value) |
template<typename String > | |
static bool | ParseGoogleMockStringFlag (const char *str, const char *flag, String *value) |
static bool | IsPathSeparator (char c) |
template<typename T > | |
static void | Delete (T *x) |
static std::string | FlagToEnvVar (const char *flag) |
template<typename UnsignedChar , typename Char > | |
static CharFormat | PrintAsCharLiteralTo (Char c, ostream *os) |
static CharFormat | PrintAsStringLiteralTo (wchar_t c, ostream *os) |
static CharFormat | PrintAsStringLiteralTo (char c, ostream *os) |
template<typename CharType > | |
GTEST_ATTRIBUTE_NO_SANITIZE_MEMORY_ GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_ static GTEST_ATTRIBUTE_NO_SANITIZE_THREAD_ void | PrintCharsAsStringTo (const CharType *begin, size_t len, ostream *os) |
template<typename CharType > | |
GTEST_ATTRIBUTE_NO_SANITIZE_MEMORY_ GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_ static GTEST_ATTRIBUTE_NO_SANITIZE_THREAD_ void | UniversalPrintCharArray (const CharType *begin, size_t len, ostream *os) |
static bool | GTestIsInitialized () |
static int | SumOverTestCaseList (const std::vector< TestCase * > &case_list, int(TestCase::*method)() const) |
static bool | TestCasePassed (const TestCase *test_case) |
static bool | TestCaseFailed (const TestCase *test_case) |
static bool | ShouldRunTestCase (const TestCase *test_case) |
static std::string | PrintTestPartResultToString (const TestPartResult &test_part_result) |
static void | PrintTestPartResult (const TestPartResult &test_part_result) |
static bool | PortableLocaltime (time_t seconds, struct tm *out) |
static void | SetUpEnvironment (Environment *env) |
static void | TearDownEnvironment (Environment *env) |
static void | PrintOnOneLine (const char *str, int max_length) |
static bool | HasGoogleTestFlagPrefix (const char *str) |
static void | PrintColorEncoded (const char *str) |
static | GTEST_DEFINE_STATIC_MUTEX_ (g_log_mutex) |
static void | LogElementMatcherPairVec (const ElementMatcherPairs &pairs,::std::ostream *stream) |
static const char * | ParseGoogleMockFlagValue (const char *str, const char *flag, bool def_optional) |
static bool | ParseGoogleMockBoolFlag (const char *str, const char *flag, bool *value) |
template<typename String > | |
static bool | ParseGoogleMockStringFlag (const char *str, const char *flag, String *value) |
static bool | IsPathSeparator (char c) |
template<typename T > | |
static void | Delete (T *x) |
static std::string | FlagToEnvVar (const char *flag) |
template<typename UnsignedChar , typename Char > | |
static CharFormat | PrintAsCharLiteralTo (Char c, ostream *os) |
static CharFormat | PrintAsStringLiteralTo (wchar_t c, ostream *os) |
static CharFormat | PrintAsStringLiteralTo (char c, ostream *os) |
template<typename CharType > | |
GTEST_ATTRIBUTE_NO_SANITIZE_MEMORY_ GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_ static GTEST_ATTRIBUTE_NO_SANITIZE_THREAD_ void | PrintCharsAsStringTo (const CharType *begin, size_t len, ostream *os) |
template<typename CharType > | |
GTEST_ATTRIBUTE_NO_SANITIZE_MEMORY_ GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_ static GTEST_ATTRIBUTE_NO_SANITIZE_THREAD_ void | UniversalPrintCharArray (const CharType *begin, size_t len, ostream *os) |
static bool | GTestIsInitialized () |
static int | SumOverTestCaseList (const std::vector< TestCase * > &case_list, int(TestCase::*method)() const) |
static bool | TestCasePassed (const TestCase *test_case) |
static bool | TestCaseFailed (const TestCase *test_case) |
static bool | ShouldRunTestCase (const TestCase *test_case) |
static std::string | PrintTestPartResultToString (const TestPartResult &test_part_result) |
static void | PrintTestPartResult (const TestPartResult &test_part_result) |
static bool | PortableLocaltime (time_t seconds, struct tm *out) |
static void | SetUpEnvironment (Environment *env) |
static void | TearDownEnvironment (Environment *env) |
static void | PrintOnOneLine (const char *str, int max_length) |
static bool | HasGoogleTestFlagPrefix (const char *str) |
static void | PrintColorEncoded (const char *str) |
Variables | |
GTEST_API_ ThreadLocal< Sequence * > | g_gmock_implicit_sequence |
const char | kInfoVerbosity [] = "info" |
const char | kWarningVerbosity [] = "warning" |
const char | kErrorVerbosity [] = "error" |
const char | kDeathTestStyleFlag [] = "death_test_style" |
const char | kDeathTestUseFork [] = "death_test_use_fork" |
const char | kInternalRunDeathTestFlag [] = "internal_run_death_test" |
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 | 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 char | kFlagfileFlag [] = "flagfile" |
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::vector< testing::internal::string > | g_argvs |
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 |
static const char | kTypeParamLabel [] = "TypeParam" |
static const char | kValueParamLabel [] = "GetParam()" |
static const char | kColorEncodedHelpMessage [] |
const int | kTypedTestCases = 0 |
const int | kTypedTests = 0 |
static const char | kTypeParamLabel [] = "TypeParam" |
static const char | kValueParamLabel [] = "GetParam()" |
static const char | kColorEncodedHelpMessage [] |
static const char | kTypeParamLabel [] = "TypeParam" |
static const char | kValueParamLabel [] = "GetParam()" |
static const char | kColorEncodedHelpMessage [] |
typedef long long testing::internal::BiggestInt |
Definition at line 2241 of file gtest-port.h.
typedef FloatingPoint< double > testing::internal::Double |
Definition at line 421 of file gtest-internal.h.
typedef::std::pair< size_t, size_t > testing::internal::ElementMatcherPair |
Definition at line 3297 of file gmock-matchers.h.
typedef::std::vector< ElementMatcherPair > testing::internal::ElementMatcherPairs |
Definition at line 3298 of file gmock-matchers.h.
typedef bool_constant< false > testing::internal::false_type |
Definition at line 2209 of file gtest-port.h.
typedef FloatingPoint< float > testing::internal::Float |
Definition at line 420 of file gtest-internal.h.
typedef TypeWithSize< 4 >::Int testing::internal::Int32 |
Definition at line 2494 of file gtest-port.h.
typedef TypeWithSize< 8 >::Int testing::internal::Int64 |
Definition at line 2496 of file gtest-port.h.
typedef int testing::internal::IsContainer |
Definition at line 930 of file gtest-internal.h.
typedef char testing::internal::IsNotContainer |
Definition at line 938 of file gtest-internal.h.
Definition at line 2159 of file gtest-port.h.
typedef void(* testing::internal::SetUpTestCaseFunc)() |
Definition at line 501 of file gtest-internal.h.
typedef::std::string testing::internal::string |
Definition at line 1097 of file gtest-port.h.
typedef::std::vector< string > testing::internal::Strings |
Definition at line 859 of file gtest-printers.h.
typedef void(* testing::internal::TearDownTestCaseFunc)() |
Definition at line 502 of file gtest-internal.h.
typedef TypeWithSize< 8 >::Int testing::internal::TimeInMillis |
Definition at line 2498 of file gtest-port.h.
typedef bool_constant< true > testing::internal::true_type |
Definition at line 2210 of file gtest-port.h.
typedef const void * testing::internal::TypeId |
Definition at line 429 of file gtest-internal.h.
typedef TypeWithSize< 4 >::UInt testing::internal::UInt32 |
Definition at line 2495 of file gtest-port.h.
typedef TypeWithSize< 8 >::UInt testing::internal::UInt64 |
Definition at line 2497 of file gtest-port.h.
typedef::std::wstring testing::internal::wstring |
Definition at line 1103 of file gtest-port.h.
Enumerator | |
---|---|
kAllow | |
kWarn | |
kFail | |
kDefault | |
kAllow | |
kWarn | |
kFail | |
kDefault | |
kAllow | |
kWarn | |
kFail | |
kDefault |
Definition at line 361 of file gmock-spec-builders.h.
Enumerator | |
---|---|
kAllow | |
kWarn | |
kFail | |
kDefault | |
kAllow | |
kWarn | |
kFail | |
kDefault | |
kAllow | |
kWarn | |
kFail | |
kDefault |
Definition at line 361 of file gmock-spec-builders.h.
Enumerator | |
---|---|
kAllow | |
kWarn | |
kFail | |
kDefault | |
kAllow | |
kWarn | |
kFail | |
kDefault | |
kAllow | |
kWarn | |
kFail | |
kDefault |
Definition at line 361 of file gmock-spec-builders.h.
Enumerator | |
---|---|
kAsIs | |
kHexEscape | |
kSpecialEscape | |
kAsIs | |
kHexEscape | |
kSpecialEscape | |
kAsIs | |
kHexEscape | |
kSpecialEscape |
Definition at line 128 of file gtest-printers.cc.
Enumerator | |
---|---|
kAsIs | |
kHexEscape | |
kSpecialEscape | |
kAsIs | |
kHexEscape | |
kSpecialEscape | |
kAsIs | |
kHexEscape | |
kSpecialEscape |
Definition at line 128 of file gtest-printers.cc.
Enumerator | |
---|---|
kAsIs | |
kHexEscape | |
kSpecialEscape | |
kAsIs | |
kHexEscape | |
kSpecialEscape | |
kAsIs | |
kHexEscape | |
kSpecialEscape |
Definition at line 128 of file gtest-printers.cc.
Enumerator | |
---|---|
COLOR_DEFAULT | |
COLOR_RED | |
COLOR_GREEN | |
COLOR_YELLOW | |
COLOR_DEFAULT | |
COLOR_RED | |
COLOR_GREEN | |
COLOR_YELLOW | |
COLOR_DEFAULT | |
COLOR_RED | |
COLOR_GREEN | |
COLOR_YELLOW |
Definition at line 2880 of file gtest.cc.
Enumerator | |
---|---|
COLOR_DEFAULT | |
COLOR_RED | |
COLOR_GREEN | |
COLOR_YELLOW | |
COLOR_DEFAULT | |
COLOR_RED | |
COLOR_GREEN | |
COLOR_YELLOW | |
COLOR_DEFAULT | |
COLOR_RED | |
COLOR_GREEN | |
COLOR_YELLOW |
Definition at line 2880 of file gtest.cc.
Enumerator | |
---|---|
COLOR_DEFAULT | |
COLOR_RED | |
COLOR_GREEN | |
COLOR_YELLOW | |
COLOR_DEFAULT | |
COLOR_RED | |
COLOR_GREEN | |
COLOR_YELLOW | |
COLOR_DEFAULT | |
COLOR_RED | |
COLOR_GREEN | |
COLOR_YELLOW |
Definition at line 2880 of file gtest.cc.
Enumerator | |
---|---|
GTEST_INFO | |
GTEST_WARNING | |
GTEST_ERROR | |
GTEST_FATAL | |
GTEST_INFO | |
GTEST_WARNING | |
GTEST_ERROR | |
GTEST_FATAL | |
GTEST_INFO | |
GTEST_WARNING | |
GTEST_ERROR | |
GTEST_FATAL |
Definition at line 1244 of file gtest-port.h.
Enumerator | |
---|---|
GTEST_INFO | |
GTEST_WARNING | |
GTEST_ERROR | |
GTEST_FATAL | |
GTEST_INFO | |
GTEST_WARNING | |
GTEST_ERROR | |
GTEST_FATAL | |
GTEST_INFO | |
GTEST_WARNING | |
GTEST_ERROR | |
GTEST_FATAL |
Definition at line 1244 of file gtest-port.h.
Enumerator | |
---|---|
GTEST_INFO | |
GTEST_WARNING | |
GTEST_ERROR | |
GTEST_FATAL | |
GTEST_INFO | |
GTEST_WARNING | |
GTEST_ERROR | |
GTEST_FATAL | |
GTEST_INFO | |
GTEST_WARNING | |
GTEST_ERROR | |
GTEST_FATAL |
Definition at line 1244 of file gtest-port.h.
Enumerator | |
---|---|
kInfo | |
kWarning | |
kInfo | |
kWarning | |
kInfo | |
kWarning |
Definition at line 306 of file gmock-internal-utils.h.
Enumerator | |
---|---|
kInfo | |
kWarning | |
kInfo | |
kWarning | |
kInfo | |
kWarning |
Definition at line 306 of file gmock-internal-utils.h.
Enumerator | |
---|---|
kInfo | |
kWarning | |
kInfo | |
kWarning | |
kInfo | |
kWarning |
Definition at line 306 of file gmock-internal-utils.h.
Enumerator | |
---|---|
kBool | |
kInteger | |
kFloatingPoint | |
kOther | |
kBool | |
kInteger | |
kFloatingPoint | |
kOther | |
kBool | |
kInteger | |
kFloatingPoint | |
kOther |
Definition at line 126 of file gmock-internal-utils.h.
Enumerator | |
---|---|
kBool | |
kInteger | |
kFloatingPoint | |
kOther | |
kBool | |
kInteger | |
kFloatingPoint | |
kOther | |
kBool | |
kInteger | |
kFloatingPoint | |
kOther |
Definition at line 126 of file gmock-internal-utils.h.
Enumerator | |
---|---|
kBool | |
kInteger | |
kFloatingPoint | |
kOther | |
kBool | |
kInteger | |
kFloatingPoint | |
kOther | |
kBool | |
kInteger | |
kFloatingPoint | |
kOther |
Definition at line 126 of file gmock-internal-utils.h.
|
inline |
Definition at line 736 of file gtest-internal.h.
References AlwaysTrue().
Referenced by testing::internal::CodeLocation::CodeLocation(), ColoredPrintf(), TEST(), TEST(), testing::internal::To::To(), and testing::internal::UnitTestRecordPropertyTestHelper::UnitTestRecordProperty().
bool testing::internal::AlwaysTrue | ( | ) |
Definition at line 4988 of file gtest.cc.
References IsTrue().
Referenced by AlwaysFalse(), testing::internal::CodeLocation::CodeLocation(), PrintOnOneLine(), ShouldRunTestCase(), SplitString(), TEST(), TEST(), testing::internal::To::To(), and testing::internal::UnitTestRecordPropertyTestHelper::UnitTestRecordProperty().
std::string testing::internal::AppendUserMessage | ( | const std::string & | gtest_msg, |
const Message & | user_msg | ||
) |
Definition at line 2001 of file gtest.cc.
References testing::Message::GetString(), and string.
Referenced by testing::internal::AssertHelper::operator=(), ShouldRunTestCase(), and testing::internal::UnitTestRecordPropertyTestHelper::UnitTestRecordProperty().
Iter testing::internal::ArrayAwareFind | ( | Iter | begin, |
Iter | end, | ||
const Element & | elem | ||
) |
Definition at line 983 of file gtest-internal.h.
References ArrayEq(), CopyArray(), folly::test::end(), folly::pushmi::operators::from, gen_gtest_pred_impl::Iter(), and folly::to().
Referenced by testing::internal::ContainerEqMatcher< Container >::MatchAndExplain(), TEST(), and testing::internal::UnitTestRecordPropertyTestHelper::UnitTestRecordProperty().
bool testing::internal::ArrayEq | ( | const T * | lhs, |
size_t | size, | ||
const U * | rhs | ||
) |
Definition at line 972 of file gtest-internal.h.
References ArrayEq(), i, and folly::size().
Referenced by TEST(), and testing::internal::UnitTestRecordPropertyTestHelper::UnitTestRecordProperty().
|
inline |
|
inline |
Definition at line 964 of file gtest-internal.h.
Referenced by ArrayAwareFind(), ArrayEq(), and testing::internal::NativeArray< Element >::operator==().
|
inline |
Definition at line 288 of file gmock-internal-utils.h.
Referenced by testing::internal::UntypedOnCallSpecBase::AssertSpecProperty(), testing::internal::ExpectationBase::AssertSpecProperty(), testing::internal::BuiltInDefaultValueGetter< T, false >::Get(), testing::internal::TypedExpectation< F >::GetCurrentAction(), testing::internal::UntypedFunctionMockerBase::GetHandleOf(), Invalid(), testing::internal::UntypedFunctionMockerBase::MockObject(), testing::internal::UntypedFunctionMockerBase::Name(), testing::Action< InnerFunctionType >::Perform(), and testing::internal::FunctionMockerBase< R(A1, A2)>::PerformDefaultAction().
bool testing::internal::BoolFromGTestEnv | ( | const char * | flag, |
bool | default_val | ||
) |
Definition at line 1191 of file gtest-port.cc.
References FlagToEnvVar(), testing::internal::posix::GetEnv(), and string.
Referenced by FlagToEnvVar(), and testing::GetDefaultFilter().
void testing::internal::CaptureStderr | ( | ) |
Referenced by CheckedDowncastToActualType(), TEST(), TEST(), testing::internal::To::To(), and testing::internal::GTestLog::~GTestLog().
void testing::internal::CaptureStdout | ( | ) |
Referenced by CheckedDowncastToActualType(), Mock::Mock(), testing::internal::ExpectationTester::SetCallCount(), testing::gmock_nice_strict_test::MockBar::str(), testing::gmock_nice_strict_test::TEST(), TEST(), testing::InitGoogleTestTest::TestParsingFlags(), testing::internal::To::To(), testing::internal::UnitTestRecordPropertyTestHelper::UnitTestRecordProperty(), and testing::internal::GTestLog::~GTestLog().
|
inline |
Definition at line 1090 of file gmock-matchers.h.
References CaseInsensitiveCStringEquals().
Referenced by CmpHelperSTRCASEEQ(), CmpHelperSTRCASENE(), testing::internal::String::EndsWithCaseInsensitive(), and ShouldUseColor().
|
inline |
Definition at line 1094 of file gmock-matchers.h.
Referenced by CaseInsensitiveCStringEquals(), CaseInsensitiveStringEquals(), and testing::internal::RefMatcher< T & >::Impl< Super >::DescribeNegationTo().
bool testing::internal::CaseInsensitiveStringEquals | ( | const StringType & | s1, |
const StringType & | s2 | ||
) |
Definition at line 1102 of file gmock-matchers.h.
References CaseInsensitiveCStringEquals().
Referenced by testing::internal::RefMatcher< T & >::Impl< Super >::DescribeNegationTo(), and testing::internal::StrEqualityMatcher< StringType >::MatchAndExplain().
Derived * testing::internal::CheckedDowncastToActualType | ( | Base * | base | ) |
Definition at line 1392 of file gtest-port.h.
References CaptureStderr(), CaptureStdout(), FILE, GetArgvs(), GetCapturedStderr(), GetCapturedStdout(), GetFileSize(), GTEST_API_, GTEST_CHECK_, GTEST_CHECK_POSIX_SUCCESS_, GTEST_DISALLOW_COPY_AND_ASSIGN_, mutex, Mutex, mutex_, ReadEntireFile(), Run(), string, T, TempDir(), folly::detail::distributed_mutex::time(), type_, and value.
AssertionResult testing::internal::CmpHelperEQ | ( | const char * | lhs_expression, |
const char * | rhs_expression, | ||
const T1 & | lhs, | ||
const T2 & | rhs | ||
) |
Definition at line 1387 of file gtest.h.
References testing::AssertionSuccess(), CmpHelperEQFailure(), GTEST_API_, GTEST_DISABLE_MSC_WARNINGS_POP_, GTEST_DISABLE_MSC_WARNINGS_PUSH_, and folly::detail::rhs.
Referenced by testing::internal::EqHelper< lhs_is_null_literal >::Compare(), testing::internal::EqHelper< true >::Compare(), and testing::UnitTest::impl().
AssertionResult testing::internal::CmpHelperEQ | ( | const char * | lhs_expression, |
const char * | rhs_expression, | ||
BiggestInt | lhs, | ||
BiggestInt | rhs | ||
) |
Definition at line 1437 of file gtest.cc.
References testing::AssertionSuccess(), EqFailure(), and FormatForComparisonFailureMessage().
AssertionResult testing::internal::CmpHelperEQFailure | ( | const char * | lhs_expression, |
const char * | rhs_expression, | ||
const T1 & | lhs, | ||
const T2 & | rhs | ||
) |
Definition at line 1375 of file gtest.h.
References EqFailure(), and FormatForComparisonFailureMessage().
Referenced by CmpHelperEQ(), and testing::UnitTest::impl().
AssertionResult testing::internal::CmpHelperFloatingPointEQ | ( | const char * | lhs_expression, |
const char * | rhs_expression, | ||
RawType | lhs_value, | ||
RawType | rhs_value | ||
) |
Definition at line 1631 of file gtest.h.
References testing::AssertionSuccess(), folly::digits10(), DoubleNearPredFormat(), EqFailure(), GTEST_API_, folly::detail::rhs, and StringStreamToString().
AssertionResult testing::internal::CmpHelperGE | ( | const char * | expr1, |
const char * | expr2, | ||
const T1 & | val1, | ||
const T2 & | val2 | ||
) |
AssertionResult testing::internal::CmpHelperGE | ( | const char * | expr1, |
const char * | expr2, | ||
BiggestInt | val1, | ||
BiggestInt | val2 | ||
) |
AssertionResult testing::internal::CmpHelperGT | ( | const char * | expr1, |
const char * | expr2, | ||
const T1 & | val1, | ||
const T2 & | val2 | ||
) |
AssertionResult testing::internal::CmpHelperGT | ( | const char * | expr1, |
const char * | expr2, | ||
BiggestInt | val1, | ||
BiggestInt | val2 | ||
) |
AssertionResult testing::internal::CmpHelperLE | ( | const char * | expr1, |
const char * | expr2, | ||
BiggestInt | val1, | ||
BiggestInt | val2 | ||
) |
AssertionResult testing::internal::CmpHelperLE | ( | const char * | expr1, |
const char * | expr2, | ||
const T1 & | val1, | ||
const T2 & | val2 | ||
) |
AssertionResult testing::internal::CmpHelperLT | ( | const char * | expr1, |
const char * | expr2, | ||
BiggestInt | val1, | ||
BiggestInt | val2 | ||
) |
AssertionResult testing::internal::CmpHelperLT | ( | const char * | expr1, |
const char * | expr2, | ||
const T1 & | val1, | ||
const T2 & | val2 | ||
) |
AssertionResult testing::internal::CmpHelperNE | ( | const char * | expr1, |
const char * | expr2, | ||
const T1 & | val1, | ||
const T2 & | val2 | ||
) |
AssertionResult testing::internal::CmpHelperNE | ( | const char * | expr1, |
const char * | expr2, | ||
BiggestInt | val1, | ||
BiggestInt | val2 | ||
) |
AssertionResult testing::internal::CmpHelperOpFailure | ( | const char * | expr1, |
const char * | expr2, | ||
const T1 & | val1, | ||
const T2 & | val2, | ||
const char * | op | ||
) |
Definition at line 1486 of file gtest.h.
References testing::AssertionFailure(), and FormatForComparisonFailureMessage().
Referenced by testing::internal::EqHelper< true >::Compare().
AssertionResult testing::internal::CmpHelperSTRCASEEQ | ( | const char * | s1_expression, |
const char * | s2_expression, | ||
const char * | s1, | ||
const char * | s2 | ||
) |
Definition at line 1503 of file gtest.cc.
References testing::AssertionSuccess(), CaseInsensitiveCStringEquals(), EqFailure(), and testing::PrintToString().
AssertionResult testing::internal::CmpHelperSTRCASENE | ( | const char * | s1_expression, |
const char * | s2_expression, | ||
const char * | s1, | ||
const char * | s2 | ||
) |
Definition at line 1533 of file gtest.cc.
References testing::AssertionFailure(), testing::AssertionSuccess(), CaseInsensitiveCStringEquals(), and needle.
AssertionResult testing::internal::CmpHelperSTREQ | ( | const char * | s1_expression, |
const char * | s2_expression, | ||
const char * | s1, | ||
const char * | s2 | ||
) |
Definition at line 1487 of file gtest.cc.
References testing::AssertionSuccess(), EqFailure(), and testing::PrintToString().
AssertionResult testing::internal::CmpHelperSTREQ | ( | const char * | s1_expression, |
const char * | s2_expression, | ||
const wchar_t * | s1, | ||
const wchar_t * | s2 | ||
) |
Definition at line 1869 of file gtest.cc.
References testing::AssertionSuccess(), EqFailure(), and testing::PrintToString().
AssertionResult testing::internal::CmpHelperSTRNE | ( | const char * | s1_expression, |
const char * | s2_expression, | ||
const char * | s1, | ||
const char * | s2 | ||
) |
Definition at line 1519 of file gtest.cc.
References testing::AssertionFailure(), and testing::AssertionSuccess().
AssertionResult testing::internal::CmpHelperSTRNE | ( | const char * | s1_expression, |
const char * | s2_expression, | ||
const wchar_t * | s1, | ||
const wchar_t * | s2 | ||
) |
Definition at line 1885 of file gtest.cc.
References testing::AssertionFailure(), testing::AssertionSuccess(), and testing::PrintToString().
std::string testing::internal::CodePointToUtf8 | ( | UInt32 | code_point | ) |
Definition at line 1759 of file gtest.cc.
References ChopLowBits().
Referenced by operator<<(), testing::internal::UnitTestRecordPropertyTestHelper::UnitTestRecordProperty(), WideStringToUtf8(), and testing::internal::GTestFlagSaver::~GTestFlagSaver().
void testing::internal::ColoredPrintf | ( | GTestColor | color, |
const char * | fmt, | ||
... | |||
) |
Definition at line 2956 of file gtest.cc.
References AlwaysFalse(), COLOR_DEFAULT, testing::internal::posix::FileNo(), GetAnsiColorCode(), testing::internal::posix::IsATTY(), and ShouldUseColor().
Referenced by testing::internal::PrettyUnitTestResultPrinter::OnEnvironmentsSetUpStart(), testing::internal::PrettyUnitTestResultPrinter::OnEnvironmentsTearDownStart(), testing::internal::PrettyUnitTestResultPrinter::OnTestCaseEnd(), testing::internal::PrettyUnitTestResultPrinter::OnTestCaseStart(), testing::internal::PrettyUnitTestResultPrinter::OnTestEnd(), testing::internal::PrettyUnitTestResultPrinter::OnTestIterationEnd(), testing::internal::PrettyUnitTestResultPrinter::OnTestIterationStart(), testing::internal::PrettyUnitTestResultPrinter::OnTestProgramEnd(), testing::internal::PrettyUnitTestResultPrinter::OnTestStart(), PrintColorEncoded(), testing::internal::PrettyUnitTestResultPrinter::PrintFailedTests(), ShouldShard(), TearDownEnvironment(), and WriteToShardStatusFileIfNeeded().
GTEST_API_ string testing::internal::ConvertIdentifierNameToWords | ( | const char * | id_name | ) |
Definition at line 54 of file gmock-internal-utils.cc.
References IsAlNum(), IsAlpha(), IsDigit(), IsLower(), IsUpper(), and ToLower().
Referenced by FormatMatcherDescription().
void testing::internal::CopyArray | ( | const T * | from, |
size_t | size, | ||
U * | to | ||
) |
Definition at line 1012 of file gtest-internal.h.
References CopyArray(), i, and folly::size().
Referenced by TEST(), and testing::internal::UnitTestRecordPropertyTestHelper::UnitTestRecordProperty().
|
inline |
Definition at line 1000 of file gtest-internal.h.
References folly::pushmi::operators::from.
|
inline |
Definition at line 1004 of file gtest-internal.h.
Referenced by ArrayAwareFind(), CopyArray(), and testing::internal::NativeArray< Element >::InitCopy().
|
inline |
Definition at line 98 of file gmock-more-actions.h.
References folly::gen::first, and gmock_output_test::output.
Referenced by testing::ACTION_TEMPLATE(), and testing::internal::InvokeMethodAction< Class, MethodPtr >::Perform().
|
inline |
Definition at line 283 of file gtest-internal-inl.h.
References count.
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(), operator<<(), testing::TestCase::reportable_disabled_test_count(), testing::TestCase::reportable_test_count(), ShouldRunTestCase(), testing::internal::UnitTestImpl::successful_test_case_count(), testing::TestCase::successful_test_count(), testing::internal::UnitTestImpl::test_case_to_run_count(), testing::TestCase::test_to_run_count(), testing::TestPartFatallyFailed(), testing::TestPartNonfatallyFailed(), testing::internal::UnitTestRecordPropertyTestHelper::UnitTestRecordProperty(), and testing::internal::GTestFlagSaver::~GTestFlagSaver().
|
inline |
Definition at line 1800 of file gtest.cc.
References folly::gen::first.
Referenced by WideStringToUtf8().
void testing::internal::DefaultPrintTo | ( | IsContainer | , |
false_type | , | ||
const C & | container, | ||
::std::ostream * | os | ||
) |
Definition at line 370 of file gtest-printers.h.
References count, and UniversalPrint().
void testing::internal::DefaultPrintTo | ( | IsNotContainer | , |
true_type | , | ||
T * | p, | ||
::std::ostream * | os | ||
) |
void testing::internal::DefaultPrintTo | ( | IsNotContainer | , |
false_type | , | ||
const T & | value, | ||
::std::ostream * | os | ||
) |
Definition at line 436 of file gtest-printers.h.
References testing_internal::DefaultPrintNonContainerTo().
Referenced by PrintTo().
|
static |
Definition at line 340 of file gtest-internal-inl.h.
References x.
|
static |
Definition at line 340 of file gtest-internal-inl.h.
References x.
|
static |
Definition at line 340 of file gtest-internal-inl.h.
References x.
Referenced by testing::gmock_nice_strict_test::MockBar::str(), and testing::gmock_nice_strict_test::TEST().
GTEST_API_ std::string testing::internal::DiffStrings | ( | const std::string & | left, |
const std::string & | right, | ||
size_t * | total_line_count | ||
) |
AssertionResult testing::internal::DoubleNearPredFormat | ( | const char * | expr1, |
const char * | expr2, | ||
const char * | abs_error_expr, | ||
double | val1, | ||
double | val2, | ||
double | abs_error | ||
) |
Definition at line 1362 of file gtest.cc.
References testing::AssertionFailure(), testing::AssertionSuccess(), and diff().
Referenced by CmpHelperFloatingPointEQ().
|
inline |
Definition at line 1367 of file gtest-port.h.
References f, GTEST_CHECK_, GTEST_INTENTIONAL_CONST_COND_POP_, GTEST_INTENTIONAL_CONST_COND_PUSH_, and folly::to().
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 | ||
) |
Definition at line 1312 of file gtest.cc.
References testing::AssertionFailure(), and testing::internal::edit_distance::CreateUnifiedDiff().
Referenced by CmpHelperEQ(), CmpHelperEQFailure(), CmpHelperFloatingPointEQ(), CmpHelperSTRCASEEQ(), CmpHelperSTREQ(), testing::UnitTest::impl(), and testing::internal::UnitTestRecordPropertyTestHelper::UnitTestRecordProperty().
|
inline |
Definition at line 294 of file gmock-internal-utils.h.
Referenced by Expect(), testing::internal::UntypedOnCallSpecBase::ExpectSpecProperty(), testing::internal::ExpectationBase::ExpectSpecProperty(), ReportUninterestingCall(), testing::internal::UntypedFunctionMockerBase::UntypedInvokeWith(), and testing::internal::UntypedFunctionMockerBase::VerifyAndClearExpectationsLocked().
|
inline |
Definition at line 301 of file gmock-internal-utils.h.
References Expect().
void testing::internal::ExplainMatchFailureTupleTo | ( | const MatcherTuple & | matchers, |
const ValueTuple & | values, | ||
::std::ostream * | os | ||
) |
Definition at line 810 of file gmock-matchers.h.
Referenced by testing::internal::TuplePrefix< 0 >::ExplainMatchFailuresTo(), testing::internal::TypedExpectation< F >::ExplainMatchResultTo(), and testing::gmock_matchers_test::TEST().
GTEST_API_ ElementMatcherPairs testing::internal::FindMaxBipartiteMatching | ( | const MatchMatrix & | g | ) |
Definition at line 308 of file gmock-matchers.cc.
References testing::internal::MaxBipartiteMatchState::Compute().
Referenced by FindPairing(), LogElementMatcherPairVec(), testing::internal::MatchMatrix::SpaceIndex(), testing::gmock_matchers_test::TEST_P(), and testing::internal::MaxBipartiteMatchState::TryAugment().
GTEST_API_ bool testing::internal::FindPairing | ( | const MatchMatrix & | matrix, |
MatchResultListener * | listener | ||
) |
Definition at line 328 of file gmock-matchers.cc.
References FindMaxBipartiteMatching(), testing::MatchResultListener::IsInterested(), LogElementMatcherPairVec(), testing::internal::MatchMatrix::RhsSize(), and testing::MatchResultListener::stream().
Referenced by LogElementMatcherPairVec(), testing::internal::UnorderedElementsAreMatcherImpl< Container >::MatchAndExplain(), and testing::internal::MatchMatrix::SpaceIndex().
|
static |
Definition at line 1134 of file gtest-port.cc.
References BoolFromGTestEnv(), folly::test::end(), flag, FlagToEnvVar(), testing::internal::posix::GetEnv(), testing::Message::GetString(), GTEST_FLAG_PREFIX_, i, Int32FromGTestEnv(), ParseInt32(), string, StringFromGTestEnv(), ToUpper(), and value.
|
static |
Definition at line 1134 of file gtest-port.cc.
References BoolFromGTestEnv(), folly::test::end(), flag, FlagToEnvVar(), testing::internal::posix::GetEnv(), testing::Message::GetString(), GTEST_FLAG_PREFIX_, i, Int32FromGTestEnv(), ParseInt32(), string, StringFromGTestEnv(), ToUpper(), and value.
|
static |
Definition at line 1134 of file gtest-port.cc.
References flag, testing::Message::GetString(), GTEST_FLAG_PREFIX_, i, string, and ToUpper().
Referenced by BoolFromGTestEnv(), FlagToEnvVar(), Int32FromGTestEnv(), and StringFromGTestEnv().
AssertionResult testing::internal::FloatingPointLE | ( | const char * | expr1, |
const char * | expr2, | ||
RawType | val1, | ||
RawType | val2 | ||
) |
Definition at line 1384 of file gtest.cc.
References testing::AssertionFailure(), testing::AssertionSuccess(), folly::digits10(), folly::detail::rhs, and StringStreamToString().
|
inline |
Definition at line 1276 of file gtest-port.h.
void testing::internal::ForEach | ( | const Container & | c, |
Functor | functor | ||
) |
Definition at line 296 of file gtest-internal-inl.h.
References for_each().
Referenced by testing::internal::UnitTestImpl::ClearNonAdHocTestResult(), testing::TestCase::ClearResult(), operator<<(), testing::internal::UnitTestImpl::RunAllTests(), testing::internal::TestEventRepeater::set_forwarding_enabled(), TearDownEnvironment(), testing::internal::UnitTestRecordPropertyTestHelper::UnitTestRecordProperty(), testing::internal::GTestFlagSaver::~GTestFlagSaver(), testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile(), testing::TestCase::~TestCase(), testing::internal::TestEventRepeater::~TestEventRepeater(), and testing::internal::UnitTestImpl::~UnitTestImpl().
GTEST_API_::std::string testing::internal::FormatCompilerIndependentFileLocation | ( | const char * | file, |
int | line | ||
) |
Definition at line 898 of file gtest-port.cc.
References StreamableToString(), and string.
Referenced by testing::internal::XmlUnitTestResultPrinter::OutputXmlTestInfo(), testing::internal::RE::PartialMatch(), PortableLocaltime(), TEST(), and testing::internal::To::To().
std::string testing::internal::FormatEpochTimeInMillisAsIso8601 | ( | TimeInMillis | ms | ) |
Definition at line 3574 of file gtest.cc.
References testing::internal::String::FormatIntWidth2(), PortableLocaltime(), and StreamableToString().
Referenced by operator<<(), testing::internal::XmlUnitTestResultPrinter::OutputXmlTestInfo(), PortableLocaltime(), and testing::internal::UnitTestRecordPropertyTestHelper::UnitTestRecordProperty().
GTEST_API_::std::string testing::internal::FormatFileLocation | ( | const char * | file, |
int | line | ||
) |
Definition at line 880 of file gtest-port.cc.
References StreamableToString(), and string.
Referenced by testing::UnitTest::AddTestPartResult(), testing::internal::CodeLocation::CodeLocation(), testing::internal::FunctionMockerBase< R(A1, A2)>::DescribeDefaultActionTo(), testing::internal::ExpectationBase::DescribeLocationTo(), testing::internal::GTestLog::GTestLog(), MakeAndRegisterTestInfo(), testing::internal::RE::PartialMatch(), PrintTestPartResultToString(), testing::internal::ExpectationTester::SetCallCount(), TEST(), testing::TestPartNonfatallyFailed(), testing::internal::To::To(), and testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile().
std::string testing::internal::FormatForComparisonFailureMessage | ( | const T1 & | value, |
const T2 & | |||
) |
Definition at line 349 of file gtest-printers.h.
Referenced by testing::gtest_printers_test::Big::Big(), CmpHelperEQ(), CmpHelperEQFailure(), CmpHelperOpFailure(), testing::internal::EqHelper< true >::Compare(), testing::UnitTest::impl(), testing::gtest_printers_test::TEST(), and foo::StreamableTemplateInFoo< T >::value().
GTEST_API_ string testing::internal::FormatMatcherDescription | ( | bool | negation, |
const char * | matcher_name, | ||
const Strings & | param_values | ||
) |
Definition at line 127 of file gmock-matchers.cc.
References ConvertIdentifierNameToWords(), and JoinAsTuple().
Referenced by testing::internal::BoundSecondMatcher< Tuple2Matcher, Second >::Impl< T >::MatchAndExplain(), MatcherBindSecond(), and testing::gmock_matchers_test::TEST().
std::string testing::internal::FormatTimeInMillisAsSeconds | ( | TimeInMillis | ms | ) |
Definition at line 3550 of file gtest.cc.
Referenced by testing::internal::XmlUnitTestResultPrinter::EscapeXmlText(), operator<<(), testing::internal::XmlUnitTestResultPrinter::OutputXmlTestInfo(), PortableLocaltime(), and testing::internal::UnitTestRecordPropertyTestHelper::UnitTestRecordProperty().
const char * testing::internal::GetAnsiColorCode | ( | GTestColor | color | ) |
Definition at line 2904 of file gtest.cc.
References COLOR_GREEN, COLOR_RED, and COLOR_YELLOW.
Referenced by ColoredPrintf().
const ::std::vector< testing::internal::string > & testing::internal::GetArgvs | ( | ) |
Definition at line 389 of file gtest.cc.
References g_argvs.
Referenced by CheckedDowncastToActualType(), GetCurrentExecutableName(), GTestIsInitialized(), ReadEntireFile(), and ShouldRunTestCase().
std::string testing::internal::GetBoolAssertionFailureMessage | ( | const AssertionResult & | assertion_result, |
const char * | expression_text, | ||
const char * | actual_predicate_value, | ||
const char * | expected_predicate_value | ||
) |
Definition at line 1346 of file gtest.cc.
References testing::Message::GetString(), and testing::AssertionResult::message().
std::string testing::internal::GetCapturedStderr | ( | ) |
Referenced by CheckedDowncastToActualType(), TEST(), TEST(), testing::internal::To::To(), and testing::internal::GTestLog::~GTestLog().
std::string testing::internal::GetCapturedStdout | ( | ) |
Referenced by CheckedDowncastToActualType(), Mock::Mock(), testing::internal::ExpectationTester::SetCallCount(), testing::gmock_nice_strict_test::MockBar::str(), testing::gmock_nice_strict_test::TEST(), TEST(), testing::InitGoogleTestTest::TestParsingFlags(), testing::internal::To::To(), testing::internal::UnitTestRecordPropertyTestHelper::UnitTestRecordProperty(), and testing::internal::GTestLog::~GTestLog().
FilePath testing::internal::GetCurrentExecutableName | ( | ) |
Definition at line 399 of file gtest.cc.
References GetArgvs(), testing::internal::FilePath::RemoveDirectoryName(), and testing::internal::FilePath::Set().
Referenced by testing::internal::UnitTestOptions::GetAbsolutePathToOutputFile(), testing::internal::TestPropertyKeyIs::operator()(), ShouldRunTestCase(), and testing::TEST_F().
std::string testing::internal::GetCurrentOsStackTraceExceptTop | ( | UnitTest * | unit_test, |
int | skip_count | ||
) |
Definition at line 4973 of file gtest.cc.
References testing::internal::UnitTestImpl::CurrentOsStackTraceExceptTop(), and GetUnitTestImpl().
Referenced by testing::internal::CodeLocation::CodeLocation(), Log(), PrintOnOneLine(), testing::internal::GoogleTestFailureReporter::ReportFailure(), TEST(), and testing::internal::UnitTestRecordPropertyTestHelper::UnitTestRecordProperty().
|
inline |
Definition at line 303 of file gtest-internal-inl.h.
References i.
Referenced by testing::internal::UnitTestImpl::GetMutableTestCase(), testing::TestCase::GetMutableTestInfo(), testing::internal::UnitTestImpl::GetTestCase(), testing::TestCase::GetTestInfo(), operator<<(), testing::internal::UnitTestRecordPropertyTestHelper::UnitTestRecordProperty(), and testing::internal::GTestFlagSaver::~GTestFlagSaver().
GTEST_API_ FailureReporterInterface * testing::internal::GetFailureReporter | ( | ) |
Definition at line 94 of file gmock-internal-utils.cc.
References GTEST_DEFINE_STATIC_MUTEX_().
Referenced by testing::internal::GoogleTestFailureReporter::ReportFailure().
size_t testing::internal::GetFileSize | ( | FILE * | file | ) |
Definition at line 1076 of file gtest-port.cc.
Referenced by CheckedDowncastToActualType(), and ReadEntireFile().
|
inline |
Definition at line 152 of file gtest-internal-inl.h.
References GTEST_CHECK_.
Referenced by operator<<(), testing::internal::UnitTestImpl::RunAllTests(), TearDownEnvironment(), and testing::internal::UnitTestRecordPropertyTestHelper::UnitTestRecordProperty().
|
inline |
Definition at line 136 of file gtest-internal-inl.h.
References GetTimeInMillis().
Referenced by operator<<(), testing::internal::UnitTestImpl::RunAllTests(), TearDownEnvironment(), and testing::internal::UnitTestRecordPropertyTestHelper::UnitTestRecordProperty().
|
inline |
Definition at line 76 of file gmock-internal-utils.h.
Referenced by testing::internal::IsNullMatcher::MatchAndExplain(), testing::internal::NotNullMatcher::MatchAndExplain(), and testing::internal::PointeeMatcher< InnerMatcher >::Impl< Pointer >::MatchAndExplain().
|
inline |
Definition at line 81 of file gmock-internal-utils.h.
TypeId testing::internal::GetTestTypeId | ( | ) |
Definition at line 620 of file gtest.cc.
Referenced by GetTypeId(), testing::Test::HasSameFixtureClass(), testing::internal::FloatingPoint< RawType >::Max(), operator<<(), ShouldRunTestCase(), testing::TestPartNonfatallyFailed(), and testing::internal::UnitTestRecordPropertyTestHelper::UnitTestRecordProperty().
size_t testing::internal::GetThreadCount | ( | ) |
Definition at line 169 of file gtest-port.cc.
References ADD_FAILURE, testing::internal::Mutex::AssertHeld(), buffer(), c, ch, EXPECT_TRUE, FALSE, folly::gen::first, bm::free(), testing::internal::RE::full_regex_, testing::internal::RE::FullMatch(), GTEST_CHECK_, GTEST_DISALLOW_COPY_AND_ASSIGN_, i, testing::internal::RE::Init(), testing::internal::RE::is_valid_, folly::detail::lock(), testing::internal::Mutex::Lock(), map(), testing::internal::Mutex::Mutex(), mutex_, testing::internal::RE::partial_regex_, testing::internal::RE::PartialMatch(), testing::internal::RE::pattern_, ptr, regex, repeat(), testing::internal::posix::StrDup(), string, TRUE, type_, testing::internal::Mutex::Unlock(), and testing::internal::RE::~RE().
Referenced by testing::internal::ThreadLocal< testing::TestPartResultReporterInterface * >::set(), TEST(), and testing::internal::To::To().
TimeInMillis testing::internal::GetTimeInMillis | ( | ) |
Definition at line 806 of file gtest.cc.
References folly::pushmi::operators::error(), GTEST_DISABLE_MSC_WARNINGS_POP_, GTEST_DISABLE_MSC_WARNINGS_PUSH_, GTEST_HAS_GETTIMEOFDAY_, and now().
Referenced by GetRandomSeedFromFlag(), testing::TestInfo::Run(), testing::TestCase::Run(), testing::internal::UnitTestImpl::RunAllTests(), ShouldRunTestCase(), TearDownEnvironment(), and testing::internal::UnitTestRecordPropertyTestHelper::UnitTestRecordProperty().
TypeId testing::internal::GetTypeId | ( | ) |
Definition at line 447 of file gtest-internal.h.
References GetTestTypeId(), and GTEST_API_.
Referenced by testing::internal::FloatingPoint< RawType >::Max(), and testing::internal::UnitTestRecordPropertyTestHelper::UnitTestRecordProperty().
std::string testing::internal::GetTypeName | ( | ) |
|
inline |
Definition at line 927 of file gtest-internal-inl.h.
References argv, ch, folly::test::end(), testing::UnitTest::GetInstance(), GTEST_API_, GTEST_CHECK_, testing::UnitTest::impl(), IsDigit(), number, ParseGoogleTestFlagsOnly(), regex, repeat(), and string.
Referenced by GetCurrentOsStackTraceExceptTop(), testing::TestInfoTest::GetTestInfo(), HandleExceptionsInMethodIfSupported(), testing::Test::HasFatalFailure(), testing::internal::HasNewFatalFailureHelper::HasNewFatalFailureHelper(), testing::Test::HasNonfatalFailure(), testing::Test::HasSameFixtureClass(), testing::UnitTest::impl(), testing::ScopedFakeTestPartResultReporter::Init(), InitGoogleTestImpl(), MakeAndRegisterTestInfo(), operator<<(), PrintOnOneLine(), testing::Test::Run(), testing::TestInfo::Run(), testing::TestCase::Run(), testing::internal::UnitTestImpl::set_catch_exceptions(), ShouldRunTestCase(), testing::TEST(), TEST(), testing::TestPartNonfatallyFailed(), testing::internal::UnitTestRecordPropertyTestHelper::UnitTestRecordProperty(), testing::internal::HasNewFatalFailureHelper::~HasNewFatalFailureHelper(), and testing::ScopedFakeTestPartResultReporter::~ScopedFakeTestPartResultReporter().
GTEST_API_ testing::internal::GTEST_DECLARE_STATIC_MUTEX_ | ( | g_linked_ptr_mutex | ) |
GTEST_API_ testing::internal::GTEST_DECLARE_STATIC_MUTEX_ | ( | g_gmock_mutex | ) |
testing::internal::GTEST_DECLARE_string_ | ( | internal_run_death_test | ) |
GTEST_API_ testing::internal::GTEST_DEFINE_STATIC_MUTEX_ | ( | g_gmock_mutex | ) |
|
static |
|
static |
|
static |
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." | |||
) |
Referenced by testing::GetDefaultFilter().
|
static |
Definition at line 330 of file gtest.cc.
References GetArgvs().
|
static |
Definition at line 330 of file gtest.cc.
References GetArgvs().
|
static |
Definition at line 330 of file gtest.cc.
References GetArgvs().
Referenced by InitGoogleTestImpl(), testing::internal::UnitTestImpl::RunAllTests(), and TearDownEnvironment().
Result testing::internal::HandleExceptionsInMethodIfSupported | ( | T * | object, |
Result(T::*)() | method, | ||
const char * | location | ||
) |
Definition at line 2410 of file gtest.cc.
References GetUnitTestImpl(), HandleSehExceptionsInMethodIfSupported(), testing::TestPartResult::kFatalFailure, and ReportFailureInUnknownLocation().
Referenced by testing::Test::Run(), testing::TestInfo::Run(), testing::TestCase::Run(), testing::UnitTest::Run(), testing::TestPartNonfatallyFailed(), and testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile().
Result testing::internal::HandleSehExceptionsInMethodIfSupported | ( | T * | object, |
Result(T::*)() | method, | ||
const char * | location | ||
) |
Definition at line 2383 of file gtest.cc.
References testing::TestPartResult::kFatalFailure, ReportFailureInUnknownLocation(), and string.
Referenced by HandleExceptionsInMethodIfSupported(), and testing::TestPartNonfatallyFailed().
|
static |
Definition at line 5105 of file gtest.cc.
References GTEST_FLAG_PREFIX_, GTEST_FLAG_PREFIX_DASH_, and SkipPrefix().
|
static |
Definition at line 5105 of file gtest.cc.
References GTEST_FLAG_PREFIX_, GTEST_FLAG_PREFIX_DASH_, and SkipPrefix().
|
static |
Definition at line 5105 of file gtest.cc.
References GTEST_FLAG_PREFIX_, GTEST_FLAG_PREFIX_DASH_, and SkipPrefix().
Referenced by ParseGoogleTestFlagsOnlyImpl().
AssertionResult testing::internal::HasOneFailure | ( | const char * | , |
const char * | , | ||
const char * | , | ||
const TestPartResultArray & | results, | ||
TestPartResult::Type | type, | ||
const string & | substr | ||
) |
Definition at line 631 of file gtest.cc.
References testing::AssertionFailure(), testing::AssertionSuccess(), testing::TestPartResultArray::GetTestPartResult(), i, testing::TestPartResult::kFatalFailure, testing::TestPartResult::message(), testing::TestPartResultArray::size(), string, testing::TestPartResult::type(), and type.
Referenced by ShouldRunTestCase(), and testing::internal::SingleFailureChecker::~SingleFailureChecker().
Definition at line 1343 of file gtest-port.h.
References x.
Referenced by foo::StreamableTemplateInFoo< T >::value().
void testing::internal::InitGoogleMockImpl | ( | int * | argc, |
CharType ** | argv | ||
) |
Definition at line 128 of file gmock.cc.
References GMOCK_FLAG, i, testing::InitGoogleTest(), ParseGoogleMockBoolFlag(), ParseGoogleMockStringFlag(), StreamableToString(), and string.
Referenced by testing::InitGoogleMock(), and ParseGoogleMockStringFlag().
void testing::internal::InitGoogleTestImpl | ( | int * | argc, |
CharType ** | argv | ||
) |
Definition at line 5344 of file gtest.cc.
References g_argvs, GetUnitTestImpl(), GTestIsInitialized(), i, ParseGoogleTestFlagsOnly(), testing::internal::UnitTestImpl::PostFlagParsingInit(), and StreamableToString().
Referenced by testing::InitGoogleTest().
Definition at line 4760 of file gtest.cc.
References testing::internal::posix::GetEnv(), and ParseInt32().
Referenced by testing::internal::UnitTestImpl::FilterTests(), testing::internal::PrettyUnitTestResultPrinter::OnTestIterationStart(), testing::internal::PrettyUnitTestResultPrinter::OnTestProgramEnd(), ShouldShard(), TearDownEnvironment(), testing::internal::UnitTestRecordPropertyTestHelper::UnitTestRecordProperty(), and testing::internal::GTestFlagSaver::~GTestFlagSaver().
Definition at line 1204 of file gtest-port.cc.
References FlagToEnvVar(), testing::internal::posix::GetEnv(), ParseInt32(), and string.
Referenced by FlagToEnvVar(), and testing::GetDefaultFilter().
|
inline |
Definition at line 377 of file gmock-internal-utils.h.
References Assert().
Referenced by wangle::EvbHandshakeHelper::start().
|
inline |
|
inline |
IsContainer testing::internal::IsContainerTest | ( | int | , |
typename C::iterator * | = NULL , |
||
typename C::const_iterator * | = NULL |
||
) |
Definition at line 932 of file gtest-internal.h.
Referenced by TEST(), and testing::internal::UnitTestRecordPropertyTestHelper::UnitTestRecordProperty().
IsNotContainer testing::internal::IsContainerTest | ( | long | ) |
Definition at line 940 of file gtest-internal.h.
|
inline |
Definition at line 2257 of file gtest-port.h.
Referenced by ConvertIdentifierNameToWords(), GetUnitTestImpl(), and testing::internal::UnitTestImpl::set_catch_exceptions().
|
inline |
AssertionResult testing::internal::IsNull | ( | const char * | str | ) |
Definition at line 140 of file gtest-unittest-api_test.cc.
References testing::AssertionFailure(), and testing::AssertionSuccess().
Referenced by testing::internal::UnitTestHelper::GetSortedTests(), testing::gmock_matchers_test::Type< T >::IsTypeOf(), testing::gmock_matchers_test::MATCHER_P(), testing::internal::FinalSuccessChecker::TearDown(), TEST(), testing::gmock_matchers_test::TEST(), and testing::gmock_matchers_test::FloatingPointNearTest< RawType >::TestNearMatches().
char testing::internal::IsNullLiteralHelper | ( | Secret * | p | ) |
char(& testing::internal::IsNullLiteralHelper | ( | ... | ) | )[2] |
|
static |
Definition at line 90 of file gtest-filepath.cc.
References testing::internal::FilePath::c_str(), testing::internal::FilePath::ConcatPaths(), testing::internal::FilePath::CreateDirectoriesRecursively(), testing::internal::FilePath::CreateFolder(), upload::dest, testing::internal::FilePath::DirectoryExists(), testing::internal::String::EndsWithCaseInsensitive(), testing::internal::FilePath::FileOrDirectoryExists(), testing::internal::FilePath::FilePath(), testing::internal::FilePath::FindLastPathSeparator(), testing::internal::FilePath::GenerateUniqueFileName(), testing::internal::FilePath::GetCurrentDir(), GTEST_PATH_MAX_, testing::internal::FilePath::IsAbsolutePath(), testing::internal::posix::IsDir(), testing::internal::FilePath::IsDirectory(), testing::internal::FilePath::IsEmpty(), IsPathSeparator(), testing::internal::FilePath::IsRootDirectory(), kCurrentDirectoryString, kPathSeparator, testing::internal::FilePath::MakeFileName(), name, testing::internal::FilePath::Normalize(), number, parent, testing::internal::FilePath::pathname_, testing::internal::FilePath::RemoveDirectoryName(), testing::internal::FilePath::RemoveExtension(), testing::internal::FilePath::RemoveFileName(), testing::internal::FilePath::RemoveTrailingPathSeparator(), testing::internal::FilePath::Set(), testing::internal::posix::Stat(), StreamableToString(), testing::internal::FilePath::string(), and string.
|
static |
Definition at line 90 of file gtest-filepath.cc.
References kPathSeparator.
Referenced by testing::internal::FilePath::IsAbsolutePath(), testing::internal::FilePath::IsDirectory(), IsPathSeparator(), testing::internal::FilePath::IsRootDirectory(), and testing::internal::FilePath::Normalize().
|
static |
Definition at line 90 of file gtest-filepath.cc.
References testing::internal::FilePath::c_str(), testing::internal::FilePath::ConcatPaths(), testing::internal::FilePath::CreateDirectoriesRecursively(), testing::internal::FilePath::CreateFolder(), upload::dest, testing::internal::FilePath::DirectoryExists(), testing::internal::String::EndsWithCaseInsensitive(), testing::internal::FilePath::FileOrDirectoryExists(), testing::internal::FilePath::FilePath(), testing::internal::FilePath::FindLastPathSeparator(), testing::internal::FilePath::GenerateUniqueFileName(), testing::internal::FilePath::GetCurrentDir(), GTEST_PATH_MAX_, testing::internal::FilePath::IsAbsolutePath(), testing::internal::posix::IsDir(), testing::internal::FilePath::IsDirectory(), testing::internal::FilePath::IsEmpty(), IsPathSeparator(), testing::internal::FilePath::IsRootDirectory(), kCurrentDirectoryString, kPathSeparator, testing::internal::FilePath::MakeFileName(), name, testing::internal::FilePath::Normalize(), number, parent, testing::internal::FilePath::pathname_, testing::internal::FilePath::RemoveDirectoryName(), testing::internal::FilePath::RemoveExtension(), testing::internal::FilePath::RemoveFileName(), testing::internal::FilePath::RemoveTrailingPathSeparator(), testing::internal::FilePath::Set(), testing::internal::posix::Stat(), StreamableToString(), testing::internal::FilePath::string(), and string.
|
inline |
Definition at line 137 of file gtest-printers.cc.
Referenced by PrintAsCharLiteralTo().
|
inline |
Definition at line 688 of file gmock-matchers.h.
Referenced by testing::SafeMatcherCastImpl< T >::Cast(), MatchPrintAndExplain(), and testing::gmock_matchers_test::TEST().
|
inline |
Definition at line 2263 of file gtest-port.h.
Referenced by testing::internal::CodeLocation::CodeLocation(), testing::IsNotSubstring(), and StripTrailingSpaces().
bool testing::internal::IsTrue | ( | bool | condition | ) |
Definition at line 4986 of file gtest.cc.
Referenced by AlwaysTrue(), DefaultPrintTo(), PrintOnOneLine(), and testing::internal::scoped_ptr< const ::std::string >::reset().
|
inline |
|
inline |
|
inline |
|
inline |
GTEST_API_ string testing::internal::JoinAsTuple | ( | const Strings & | fields | ) |
Definition at line 105 of file gmock-matchers.cc.
References i.
Referenced by FormatMatcherDescription(), and testing::gmock_matchers_test::TEST().
GTEST_API_ void testing::internal::Log | ( | LogSeverity | severity, |
const string & | message, | ||
int | stack_frames_to_skip | ||
) |
Definition at line 131 of file gmock-internal-utils.cc.
References GetCurrentOsStackTraceExceptTop(), testing::UnitTest::GetInstance(), kWarning, LogIsVisible(), and message.
Referenced by testing::internal::ExpectationBase::CheckActionCountIfNotDone(), testing::internal::TypedExpectation< F >::GetCurrentAction(), LogWithLocation(), testing::internal::GoogleTestFailureReporter::ReportFailure(), ReportUninterestingCall(), and testing::internal::UntypedFunctionMockerBase::UntypedInvokeWith().
|
static |
Definition at line 312 of file gmock-matchers.cc.
References gen_gtest_pred_impl::Iter(), and stream.
|
static |
Definition at line 312 of file gmock-matchers.cc.
References b, FindMaxBipartiteMatching(), FindPairing(), GTEST_API_, testing::internal::MatchMatrix::HasEdge(), i, testing::MatchResultListener::IsInterested(), gen_gtest_pred_impl::Iter(), testing::internal::MatchMatrix::LhsSize(), testing::internal::MatchMatrix::RhsSize(), testing::MatchResultListener::stream(), and stream.
Referenced by FindPairing(), and LogElementMatcherPairVec().
|
static |
Definition at line 312 of file gmock-matchers.cc.
References b, FindMaxBipartiteMatching(), FindPairing(), GTEST_API_, testing::internal::MatchMatrix::HasEdge(), i, testing::MatchResultListener::IsInterested(), gen_gtest_pred_impl::Iter(), testing::internal::MatchMatrix::LhsSize(), LogElementMatcherPairVec(), testing::internal::MatchMatrix::RhsSize(), testing::MatchResultListener::stream(), and stream.
GTEST_API_ bool testing::internal::LogIsVisible | ( | LogSeverity | severity | ) |
Definition at line 110 of file gmock-internal-utils.cc.
References GMOCK_FLAG, kErrorVerbosity, kInfoVerbosity, and kWarning.
Referenced by Log(), testing::internal::GoogleTestFailureReporter::ReportFailure(), and testing::internal::UntypedFunctionMockerBase::UntypedInvokeWith().
|
inline |
Definition at line 1275 of file gtest-port.h.
GTEST_API_ void testing::internal::LogWithLocation | ( | testing::internal::LogSeverity | severity, |
const char * | file, | ||
int | line, | ||
const string & | message | ||
) |
Definition at line 59 of file gmock-spec-builders.cc.
Referenced by testing::internal::TypedExpectation< F >::GetActionForArguments(), testing::internal::MockSpec< R(A1, A2, A3, A4, A5, A6, A7, A8, A9) >::InternalDefaultActionSetAt(), and testing::internal::MockSpec< R(A1, A2, A3, A4, A5, A6, A7, A8, A9) >::InternalExpectedAt().
linked_ptr< T > testing::internal::make_linked_ptr | ( | T * | ptr | ) |
Definition at line 236 of file gtest-linked_ptr.h.
References ptr.
Referenced by testing::internal::linked_ptr< const testing::MatcherInterface< const internal::string & > >::copy().
TestInfo * testing::internal::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 at line 2543 of file gtest.cc.
References testing::internal::UnitTestImpl::AddTestInfo(), testing::internal::CodeLocation::file, FormatFileLocation(), testing::Message::GetString(), GetUnitTestImpl(), testing::internal::CodeLocation::line, testing::TestInfo::name(), testing::TestInfo::name_, testing::TestInfo::test_case_name(), and testing::TestInfo::TestInfo().
Referenced by testing::internal::CodeLocation::CodeLocation(), testing::TestInfo::result(), and testing::TestPartNonfatallyFailed().
|
inline |
Definition at line 1879 of file gmock-matchers.h.
References move().
Referenced by testing::internal::PredicateFormatterFromMatcher< M >::operator()().
BoundSecondMatcher< Tuple2Matcher, Second > testing::internal::MatcherBindSecond | ( | const Tuple2Matcher & | tm, |
const Second & | second | ||
) |
Definition at line 3612 of file gmock-matchers.h.
References FormatMatcherDescription(), and GTEST_API_.
Referenced by testing::internal::BoundSecondMatcher< Tuple2Matcher, Second >::Impl< T >::MatchAndExplain(), and testing::UnorderedPointwise().
bool testing::internal::MatchPrintAndExplain | ( | Value & | value, |
const Matcher< T > & | matcher, | ||
MatchResultListener * | listener | ||
) |
Definition at line 701 of file gmock-matchers.h.
References testing::MatchResultListener::IsInterested(), IsReadableTypeName(), testing::internal::MatcherBase< T >::MatchAndExplain(), testing::internal::MatcherBase< T >::Matches(), PrintIfNotEmpty(), testing::StringMatchResultListener::str(), testing::MatchResultListener::stream(), and UniversalPrint().
Referenced by testing::SafeMatcherCastImpl< T >::Cast(), testing::internal::PointeeMatcher< InnerMatcher >::Impl< Pointer >::MatchAndExplain(), testing::internal::WhenDynamicCastToMatcher< To >::MatchAndExplain(), testing::internal::WhenDynamicCastToMatcher< To & >::MatchAndExplain(), testing::internal::ResultOfMatcher< Callable >::Impl< T >::MatchAndExplain(), testing::internal::FieldMatcher< Class, FieldType >::MatchAndExplainImpl(), testing::internal::PropertyMatcher< Class, PropertyType >::MatchAndExplainImpl(), and testing::internal::PredicateFormatterFromMatcher< M >::operator()().
Definition at line 1317 of file gtest-port.h.
References folly::pushmi::detail::t.
Referenced by testing::ByMove(), MakePredicateFormatterFromMatcher(), testing::internal::PredicateFormatterFromMatcher< M >::operator()(), testing::internal::ReturnAction< R >::Impl< ByMoveWrapper< R_ >, F >::Perform(), testing::internal::DoBothAction< Action1, Action2 >::Impl< F >::Perform(), testing::Return(), and ShouldRunTestCase().
|
inline |
Definition at line 228 of file gtest-linked_ptr.h.
References testing::internal::linked_ptr< T >::get().
Referenced by testing::internal::linked_ptr< const testing::MatcherInterface< const internal::string & > >::copy(), and testing::TEST().
|
inline |
Definition at line 223 of file gtest-linked_ptr.h.
References testing::internal::linked_ptr< T >::get().
Referenced by testing::gmock_matchers_test::ConvertibleFromAny::ConvertibleFromAny(), testing::internal::linked_ptr< const testing::MatcherInterface< const internal::string & > >::copy(), testing::gmock_matchers_test::IntReferenceWrapper::IntReferenceWrapper(), testing::TEST(), and testing::gmock_matchers_test::Unprintable::Unprintable().
bool testing::internal::ParseBoolFlag | ( | const char * | str, |
const char * | flag, | ||
bool * | value | ||
) |
Definition at line 5053 of file gtest.cc.
References ParseFlagValue().
Referenced by ParseGoogleTestFlag(), ParseGoogleTestFlagsOnlyImpl(), and PrintOnOneLine().
const char * testing::internal::ParseFlagValue | ( | const char * | str, |
const char * | flag, | ||
bool | def_optional | ||
) |
Definition at line 5015 of file gtest.cc.
References flag, GTEST_FLAG_PREFIX_, and string.
Referenced by ParseBoolFlag(), ParseInt32Flag(), ParseStringFlag(), and PrintOnOneLine().
|
static |
Definition at line 91 of file gmock.cc.
References ParseGoogleMockFlagValue().
|
static |
Definition at line 91 of file gmock.cc.
References ParseGoogleMockFlagValue().
Referenced by InitGoogleMockImpl(), and ParseGoogleMockStringFlag().
|
static |
Definition at line 91 of file gmock.cc.
References ParseGoogleMockFlagValue().
|
static |
Definition at line 58 of file gmock.cc.
Referenced by ParseGoogleMockBoolFlag(), and ParseGoogleMockStringFlag().
|
static |
|
static |
|
static |
Definition at line 110 of file gmock.cc.
References ParseGoogleMockFlagValue().
Referenced by InitGoogleMockImpl(), and ParseGoogleMockStringFlag().
|
static |
Definition at line 110 of file gmock.cc.
References argv, GMOCK_FLAG, GTEST_API_, i, testing::InitGoogleMock(), InitGoogleMockImpl(), testing::InitGoogleTest(), ParseGoogleMockBoolFlag(), ParseGoogleMockFlagValue(), ParseGoogleMockStringFlag(), StreamableToString(), and string.
|
static |
Definition at line 110 of file gmock.cc.
References argv, GMOCK_FLAG, GTEST_API_, i, testing::InitGoogleMock(), InitGoogleMockImpl(), testing::InitGoogleTest(), ParseGoogleMockBoolFlag(), ParseGoogleMockFlagValue(), ParseGoogleMockStringFlag(), StreamableToString(), and string.
bool testing::internal::ParseGoogleTestFlag | ( | const char *const | arg | ) |
Definition at line 5223 of file gtest.cc.
References testing::internal::UnitTestImpl::catch_exceptions(), folly::empty(), testing::internal::posix::FClose(), FILE, folly::pushmi::operators::filter, testing::internal::posix::FOpen(), g_help_flag, GTEST_FLAG, i, kAlsoRunDisabledTestsFlag, kBreakOnFailureFlag, kCatchExceptionsFlag, kColorFlag, kDeathTestStyleFlag, kDeathTestUseFork, kFilterFlag, kInternalRunDeathTestFlag, kListTestsFlag, kOutputFlag, kPrintTimeFlag, kRandomSeedFlag, kRepeatFlag, kShuffleFlag, kStackTraceDepthFlag, kStreamResultToFlag, kThrowOnFailureFlag, folly::gen::lines(), gmock_output_test::output, ParseBoolFlag(), ParseInt32Flag(), ParseStringFlag(), testing::internal::UnitTestImpl::random_seed(), ReadEntireFile(), repeat(), SplitString(), and string.
Referenced by ParseGoogleTestFlagsOnlyImpl().
void testing::internal::ParseGoogleTestFlagsOnly | ( | int * | argc, |
char ** | argv | ||
) |
Definition at line 5332 of file gtest.cc.
References ParseGoogleTestFlagsOnlyImpl().
Referenced by GetUnitTestImpl(), InitGoogleTestImpl(), testing::internal::UnitTestImpl::set_catch_exceptions(), and testing::InitGoogleTestTest::TestParsingFlags().
void testing::internal::ParseGoogleTestFlagsOnly | ( | int * | argc, |
wchar_t ** | argv | ||
) |
Definition at line 5335 of file gtest.cc.
References ParseGoogleTestFlagsOnlyImpl().
void testing::internal::ParseGoogleTestFlagsOnlyImpl | ( | int * | argc, |
CharType ** | argv | ||
) |
Definition at line 5279 of file gtest.cc.
References g_help_flag, GTEST_FLAG, HasGoogleTestFlagPrefix(), i, kFlagfileFlag, ParseBoolFlag(), ParseGoogleTestFlag(), ParseInt32Flag(), ParseStringFlag(), PrintColorEncoded(), StreamableToString(), and string.
Referenced by ParseGoogleTestFlagsOnly().
Definition at line 1149 of file gtest-port.cc.
References folly::test::end(), and testing::Message::GetString().
Referenced by FlagToEnvVar(), Int32FromEnvOrDie(), Int32FromGTestEnv(), ParseInt32Flag(), PrintOnOneLine(), and TearDownEnvironment().
bool testing::internal::ParseInt32Flag | ( | const char * | str, |
const char * | flag, | ||
Int32 * | value | ||
) |
Definition at line 5070 of file gtest.cc.
References ParseFlagValue(), and ParseInt32().
Referenced by ParseGoogleTestFlag(), ParseGoogleTestFlagsOnlyImpl(), PrintOnOneLine(), and testing::internal::UnitTestRecordPropertyTestHelper::UnitTestRecordProperty().
bool testing::internal::ParseStringFlag | ( | const char * | str, |
const char * | flag, | ||
std::string * | value | ||
) |
Definition at line 5087 of file gtest.cc.
References ParseFlagValue().
Referenced by ParseGoogleTestFlag(), ParseGoogleTestFlagsOnlyImpl(), and PrintOnOneLine().
|
static |
Definition at line 3556 of file gtest.cc.
References testing::TestCase::ad_hoc_test_result(), testing::UnitTest::ad_hoc_test_result(), ch, folly::netops::close(), folly::netops::connect(), testing::internal::OsStackTraceGetter::CurrentStackTrace(), data, testing::TestResult::elapsed_time(), testing::TestCase::elapsed_time(), testing::UnitTest::elapsed_time(), testing::TestPartResult::failed(), testing::TestCase::failed_test_count(), testing::UnitTest::failed_test_count(), testing::internal::TraceInfo::file, testing::TestPartResult::file_name(), testing::internal::String::FormatByte(), FormatCompilerIndependentFileLocation(), FormatEpochTimeInMillisAsIso8601(), testing::internal::String::FormatIntWidth2(), FormatTimeInMillisAsSeconds(), testing::UnitTest::GetInstance(), testing::GetReservedAttributesForElement(), testing::Message::GetString(), testing::UnitTest::GetTestCase(), testing::TestCase::GetTestInfo(), testing::TestResult::GetTestPartResult(), testing::TestResult::GetTestProperty(), GTEST_CHECK_, GTEST_FLAG, GTEST_LOCK_EXCLUDED_, GTEST_LOG_, GTEST_NAME_, i, testing::TestInfo::is_reportable(), testing::internal::OsStackTraceGetterInterface::kElidedFramesMarker, testing::internal::TraceInfo::line, testing::TestPartResult::line_number(), testing::TestPartResult::message(), testing::internal::TraceInfo::message, testing::UnitTest::mutex_, name, testing::TestInfo::name(), testing::TestCase::name(), testing::internal::XmlUnitTestResultPrinter::OutputXmlAttribute(), testing::internal::XmlUnitTestResultPrinter::OutputXmlCDataSection(), testing::internal::XmlUnitTestResultPrinter::OutputXmlTestInfo(), testing::UnitTest::PopGTestTrace(), PortableLocaltime(), testing::internal::XmlUnitTestResultPrinter::PrintXmlTestCase(), testing::internal::XmlUnitTestResultPrinter::PrintXmlUnitTest(), testing::UnitTest::PushGTestTrace(), testing::UnitTest::random_seed(), testing::TestCase::reportable_disabled_test_count(), testing::UnitTest::reportable_disabled_test_count(), testing::TestCase::reportable_test_count(), testing::UnitTest::reportable_test_count(), testing::TestInfo::result(), testing::internal::ScopedTrace::ScopedTrace(), testing::TestInfo::should_run(), folly::netops::socket(), testing::UnitTest::start_timestamp(), StreamableToString(), string, testing::TestPartResult::summary(), testing::TestResult::test_property_count(), testing::internal::XmlUnitTestResultPrinter::TestPropertiesAsXmlAttributes(), testing::TestResult::total_part_count(), testing::UnitTest::total_test_case_count(), testing::TestCase::total_test_count(), testing::TestInfo::type_param(), testing::internal::OsStackTraceGetter::UponLeavingGTest(), testing::TestInfo::value_param(), and testing::internal::ScopedTrace::~ScopedTrace().
|
static |
Definition at line 3556 of file gtest.cc.
References testing::TestCase::ad_hoc_test_result(), testing::UnitTest::ad_hoc_test_result(), ch, folly::netops::close(), folly::netops::connect(), testing::internal::OsStackTraceGetter::CurrentStackTrace(), data, testing::TestResult::elapsed_time(), testing::TestCase::elapsed_time(), testing::UnitTest::elapsed_time(), testing::TestPartResult::failed(), testing::TestCase::failed_test_count(), testing::UnitTest::failed_test_count(), testing::internal::TraceInfo::file, testing::TestPartResult::file_name(), testing::internal::String::FormatByte(), FormatCompilerIndependentFileLocation(), FormatEpochTimeInMillisAsIso8601(), testing::internal::String::FormatIntWidth2(), FormatTimeInMillisAsSeconds(), testing::UnitTest::GetInstance(), testing::GetReservedAttributesForElement(), testing::Message::GetString(), testing::UnitTest::GetTestCase(), testing::TestCase::GetTestInfo(), testing::TestResult::GetTestPartResult(), testing::TestResult::GetTestProperty(), GTEST_CHECK_, GTEST_FLAG, GTEST_LOCK_EXCLUDED_, GTEST_LOG_, GTEST_NAME_, i, testing::TestInfo::is_reportable(), testing::internal::OsStackTraceGetterInterface::kElidedFramesMarker, testing::internal::TraceInfo::line, testing::TestPartResult::line_number(), testing::TestPartResult::message(), testing::internal::TraceInfo::message, testing::UnitTest::mutex_, name, testing::TestInfo::name(), testing::TestCase::name(), testing::internal::XmlUnitTestResultPrinter::OutputXmlAttribute(), testing::internal::XmlUnitTestResultPrinter::OutputXmlCDataSection(), testing::internal::XmlUnitTestResultPrinter::OutputXmlTestInfo(), testing::UnitTest::PopGTestTrace(), PortableLocaltime(), testing::internal::XmlUnitTestResultPrinter::PrintXmlTestCase(), testing::internal::XmlUnitTestResultPrinter::PrintXmlUnitTest(), testing::UnitTest::PushGTestTrace(), testing::UnitTest::random_seed(), testing::TestCase::reportable_disabled_test_count(), testing::UnitTest::reportable_disabled_test_count(), testing::TestCase::reportable_test_count(), testing::UnitTest::reportable_test_count(), testing::TestInfo::result(), testing::internal::ScopedTrace::ScopedTrace(), testing::TestInfo::should_run(), folly::netops::socket(), testing::UnitTest::start_timestamp(), StreamableToString(), string, testing::TestPartResult::summary(), testing::TestResult::test_property_count(), testing::internal::XmlUnitTestResultPrinter::TestPropertiesAsXmlAttributes(), testing::TestResult::total_part_count(), testing::UnitTest::total_test_case_count(), testing::TestCase::total_test_count(), testing::TestInfo::type_param(), testing::internal::OsStackTraceGetter::UponLeavingGTest(), testing::TestInfo::value_param(), and testing::internal::ScopedTrace::~ScopedTrace().
|
static |
Definition at line 3556 of file gtest.cc.
Referenced by FormatEpochTimeInMillisAsIso8601(), and PortableLocaltime().
|
static |
Definition at line 146 of file gtest-printers.cc.
References c, IsPrintableAscii(), kAsIs, kHexEscape, and kSpecialEscape.
|
static |
Definition at line 146 of file gtest-printers.cc.
References c, IsPrintableAscii(), kAsIs, kHexEscape, and kSpecialEscape.
|
static |
Definition at line 146 of file gtest-printers.cc.
References c, IsPrintableAscii(), kAsIs, kHexEscape, and kSpecialEscape.
|
static |
Definition at line 192 of file gtest-printers.cc.
References c, kAsIs, and kSpecialEscape.
|
static |
Definition at line 192 of file gtest-printers.cc.
References c, kAsIs, and kSpecialEscape.
|
static |
Definition at line 192 of file gtest-printers.cc.
References c, kAsIs, and kSpecialEscape.
|
static |
Definition at line 207 of file gtest-printers.cc.
References c, testing::gmock_generated_actions_test::Char(), folly::format(), GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_, GTEST_ATTRIBUTE_NO_SANITIZE_MEMORY_, GTEST_ATTRIBUTE_NO_SANITIZE_THREAD_, kHexEscape, PrintCharAndCodeTo(), and PrintTo().
Referenced by PrintAsStringLiteralTo(), and PrintCharsAsStringTo().
|
static |
Definition at line 207 of file gtest-printers.cc.
References PrintAsStringLiteralTo().
|
static |
Definition at line 207 of file gtest-printers.cc.
References c, testing::gmock_generated_actions_test::Char(), folly::format(), GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_, GTEST_ATTRIBUTE_NO_SANITIZE_MEMORY_, GTEST_ATTRIBUTE_NO_SANITIZE_THREAD_, kHexEscape, PrintAsStringLiteralTo(), PrintCharAndCodeTo(), and PrintTo().
void testing::internal::PrintCharAndCodeTo | ( | Char | c, |
ostream * | os | ||
) |
Definition at line 217 of file gtest-printers.cc.
References c, folly::format(), and kHexEscape.
Referenced by PrintAsStringLiteralTo().
|
static |
Definition at line 262 of file gtest-printers.cc.
References GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_, GTEST_ATTRIBUTE_NO_SANITIZE_MEMORY_, GTEST_ATTRIBUTE_NO_SANITIZE_THREAD_, IsXDigit(), kHexEscape, and PrintAsStringLiteralTo().
|
static |
Definition at line 262 of file gtest-printers.cc.
References GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_, GTEST_ATTRIBUTE_NO_SANITIZE_MEMORY_, GTEST_ATTRIBUTE_NO_SANITIZE_THREAD_, IsXDigit(), kHexEscape, and PrintAsStringLiteralTo().
Referenced by PrintStringTo(), PrintTo(), and UniversalPrintCharArray().
|
static |
Definition at line 262 of file gtest-printers.cc.
References GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_, GTEST_ATTRIBUTE_NO_SANITIZE_MEMORY_, GTEST_ATTRIBUTE_NO_SANITIZE_THREAD_, IsXDigit(), kHexEscape, and PrintAsStringLiteralTo().
|
static |
Definition at line 5125 of file gtest.cc.
References ch, COLOR_DEFAULT, COLOR_GREEN, COLOR_RED, COLOR_YELLOW, ColoredPrintf(), and string.
|
static |
Definition at line 5125 of file gtest.cc.
References ch, COLOR_DEFAULT, COLOR_GREEN, COLOR_RED, COLOR_YELLOW, ColoredPrintf(), and string.
Referenced by ParseGoogleTestFlagsOnlyImpl().
|
static |
Definition at line 5125 of file gtest.cc.
References ch, COLOR_DEFAULT, COLOR_GREEN, COLOR_RED, COLOR_YELLOW, ColoredPrintf(), and string.
void testing::internal::PrintFullTestCommentIfPresent | ( | const TestInfo & | test_info | ) |
Definition at line 3009 of file gtest.cc.
References testing::TestInfo::type_param(), testing::TestCase::type_param(), and testing::TestInfo::value_param().
Referenced by testing::internal::PrettyUnitTestResultPrinter::OnTestEnd(), testing::internal::PrettyUnitTestResultPrinter::OnTestProgramEnd(), and testing::internal::PrettyUnitTestResultPrinter::PrintFailedTests().
|
inline |
Definition at line 678 of file gmock-matchers.h.
Referenced by testing::SafeMatcherCastImpl< T >::Cast(), testing::internal::TuplePrefix< N >::ExplainMatchFailuresTo(), testing::internal::TypedExpectation< F >::ExplainMatchResultTo(), testing::internal::ArgsMatcherImpl< ArgsTuple, k0, k1, k2, k3, k4, k5, k6, k7, k8, k9 >::MatchAndExplain(), testing::internal::SizeIsMatcher< SizeMatcher >::Impl< Container >::MatchAndExplain(), testing::internal::BeginEndDistanceIsMatcher< DistanceMatcher >::Impl< Container >::MatchAndExplain(), testing::internal::WhenSortedByMatcher< Comparator, ContainerMatcher >::Impl< LhsContainer >::MatchAndExplain(), testing::internal::PointwiseMatcher< TupleMatcher, RhsContainer >::Impl< LhsContainer >::MatchAndExplain(), testing::internal::PairMatcherImpl< PairType >::MatchAndExplain(), testing::internal::ElementsAreMatcherImpl< Container >::MatchAndExplain(), testing::internal::QuantifierMatcherImpl< Container >::MatchAndExplainImpl(), and MatchPrintAndExplain().
|
static |
Definition at line 4846 of file gtest.cc.
References i.
Referenced by testing::internal::UnitTestImpl::ListTestsMatchingFilter(), and PrintOnOneLine().
|
static |
Definition at line 4846 of file gtest.cc.
References AlwaysTrue(), testing::internal::UnitTestImpl::current_test_result(), testing::internal::UnitTestImpl::CurrentOsStackTraceExceptTop(), flag, GetCurrentOsStackTraceExceptTop(), GetUnitTestImpl(), GTEST_FLAG_PREFIX_, i, IsTrue(), testing::internal::UnitTestImpl::ListTestsMatchingFilter(), testing::TestInfo::matches_filter_, testing::TestInfo::name(), testing::TestCase::name(), testing::internal::UnitTestImpl::os_stack_trace_getter(), ParseBoolFlag(), ParseFlagValue(), ParseInt32(), ParseInt32Flag(), ParseStringFlag(), prefix(), PrintOnOneLine(), random(), testing::internal::UnitTestImpl::set_os_stack_trace_getter(), ShuffleRange(), testing::internal::UnitTestImpl::ShuffleTests(), SkipPrefix(), string, testing::TestCase::test_info_list(), testing::TestCase::type_param(), testing::internal::UnitTestImpl::UnshuffleTests(), and testing::TestInfo::value_param().
|
static |
Definition at line 4846 of file gtest.cc.
References AlwaysTrue(), testing::internal::UnitTestImpl::current_test_result(), testing::internal::UnitTestImpl::CurrentOsStackTraceExceptTop(), flag, GetCurrentOsStackTraceExceptTop(), GetUnitTestImpl(), GTEST_FLAG_PREFIX_, i, IsTrue(), testing::internal::UnitTestImpl::ListTestsMatchingFilter(), testing::TestInfo::matches_filter_, testing::TestInfo::name(), testing::TestCase::name(), testing::internal::UnitTestImpl::os_stack_trace_getter(), ParseBoolFlag(), ParseFlagValue(), ParseInt32(), ParseInt32Flag(), ParseStringFlag(), prefix(), PrintOnOneLine(), random(), testing::internal::UnitTestImpl::set_os_stack_trace_getter(), ShuffleRange(), testing::internal::UnitTestImpl::ShuffleTests(), SkipPrefix(), string, testing::TestCase::test_info_list(), testing::TestCase::type_param(), testing::internal::UnitTestImpl::UnshuffleTests(), and testing::TestInfo::value_param().
void testing::internal::PrintRawArrayTo | ( | const T | a[], |
size_t | count, | ||
::std::ostream * | os | ||
) |
Definition at line 548 of file gtest-printers.h.
References count, GTEST_API_, i, PrintStringTo(), PrintTo(), string, and UniversalPrint().
Referenced by testing::internal::UniversalPrinter< T >::Print(), and UniversalPrintArray().
void testing::internal::PrintStringTo | ( | const ::std::string & | s, |
ostream * | os | ||
) |
Definition at line 354 of file gtest-printers.cc.
References PrintCharsAsStringTo().
Referenced by PrintTo(), and UniversalPrintCharArray().
GTEST_API_ void testing::internal::PrintStringTo | ( | const ::std::string & | s, |
::std::ostream * | os | ||
) |
Referenced by PrintRawArrayTo(), and PrintTo().
|
static |
Definition at line 2860 of file gtest.cc.
References PrintTestPartResultToString(), and string.
|
static |
Definition at line 2860 of file gtest.cc.
References PrintTestPartResultToString(), and string.
Referenced by testing::internal::PrettyUnitTestResultPrinter::OnTestProgramEnd().
|
static |
Definition at line 2860 of file gtest.cc.
References PrintTestPartResultToString(), and string.
Referenced by testing::internal::PrettyUnitTestResultPrinter::OnTestPartResult().
|
static |
Definition at line 2850 of file gtest.cc.
References testing::TestPartResult::file_name(), FormatFileLocation(), testing::TestPartResult::line_number(), testing::TestPartResult::message(), testing::TestPartResultTypeToString(), and testing::TestPartResult::type().
|
static |
Definition at line 2850 of file gtest.cc.
References testing::TestPartResult::file_name(), FormatFileLocation(), testing::TestPartResult::line_number(), testing::TestPartResult::message(), testing::TestPartResultTypeToString(), and testing::TestPartResult::type().
Referenced by testing::Test::HasSameFixtureClass(), and PrintTestPartResult().
|
static |
Definition at line 2850 of file gtest.cc.
References testing::TestPartResult::file_name(), FormatFileLocation(), testing::TestPartResult::line_number(), testing::TestPartResult::message(), testing::TestPartResultTypeToString(), and testing::TestPartResult::type().
Referenced by PrintTestPartResult(), and testing::TestPartNonfatallyFailed().
void testing::internal::PrintTo | ( | wchar_t | wc, |
ostream * | os | ||
) |
Definition at line 250 of file gtest-printers.cc.
References GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_, GTEST_ATTRIBUTE_NO_SANITIZE_MEMORY_, and GTEST_ATTRIBUTE_NO_SANITIZE_THREAD_.
void testing::internal::PrintTo | ( | const char * | s, |
ostream * | os | ||
) |
Definition at line 320 of file gtest-printers.cc.
References PrintCharsAsStringTo(), and s.
void testing::internal::PrintTo | ( | const wchar_t * | s, |
ostream * | os | ||
) |
Definition at line 337 of file gtest-printers.cc.
References PrintCharsAsStringTo(), PrintStringTo(), s, and string.
Referenced by PrintAsStringLiteralTo(), and UniversalPrintCharArray().
void testing::internal::PrintTo | ( | const T & | value, |
::std::ostream * | os | ||
) |
Definition at line 454 of file gtest-printers.h.
References c, DefaultPrintTo(), GTEST_API_, and PrintTo().
void testing::internal::PrintTo | ( | unsigned char | c, |
::std::ostream * | os | ||
) |
Definition at line 241 of file gtest-printers.cc.
References c.
void testing::internal::PrintTo | ( | signed char | c, |
::std::ostream * | os | ||
) |
Definition at line 244 of file gtest-printers.cc.
References c.
|
inline |
Definition at line 487 of file gtest-printers.h.
References PrintTo().
|
inline |
Definition at line 495 of file gtest-printers.h.
References GTEST_API_, PrintTo(), and s.
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 |
Definition at line 510 of file gtest-printers.h.
References PrintTo().
|
inline |
Definition at line 516 of file gtest-printers.h.
References PrintTo().
|
inline |
Definition at line 519 of file gtest-printers.h.
References PrintTo().
|
inline |
Definition at line 522 of file gtest-printers.h.
References PrintTo().
|
inline |
Definition at line 525 of file gtest-printers.h.
References GTEST_API_, and PrintTo().
GTEST_API_ void testing::internal::PrintTo | ( | const wchar_t * | s, |
::std::ostream * | os | ||
) |
|
inline |
Definition at line 537 of file gtest-printers.h.
References PrintTo().
|
inline |
Definition at line 565 of file gtest-printers.h.
References GTEST_API_, PrintStringTo(), PrintTo(), folly::pushmi::detail::t, and T.
void testing::internal::PrintTo | ( | const ::std::pair< T1, T2 > & | value, |
::std::ostream * | os | ||
) |
Definition at line 676 of file gtest-printers.h.
References GTEST_DISABLE_MSC_WARNINGS_PUSH_, and testing::gtest_printers_test::Print().
Referenced by testing::internal::UniversalPrinter< T >::Print(), PrintRawArrayTo(), and PrintTo().
void testing::internal::PrintTo | ( | const ReferenceWrapper< T > & | ref, |
::std::ostream * | os | ||
) |
Definition at line 964 of file gmock-actions.h.
References testing::internal::UniversalPrinter< T >::Print(), T, and value.
Referenced by testing::internal::edit_distance::CalculateOptimalEdits(), testing::internal::ReferenceWrapper< T >::operator T &(), testing::internal::ExpectationTester::SetCallCount(), and TEST().
std::string testing::internal::ReadEntireFile | ( | FILE * | file | ) |
Definition at line 1081 of file gtest-port.cc.
References testing::internal::posix::Abort(), buffer(), GetArgvs(), GetFileSize(), and string.
Referenced by CheckedDowncastToActualType(), ParseGoogleTestFlag(), and testing::internal::GTestLog::~GTestLog().
void testing::internal::ReportFailureInUnknownLocation | ( | TestPartResult::Type | result_type, |
const std::string & | message | ||
) |
Definition at line 2250 of file gtest.cc.
References testing::UnitTest::AddTestPartResult(), and testing::UnitTest::GetInstance().
Referenced by HandleExceptionsInMethodIfSupported(), HandleSehExceptionsInMethodIfSupported(), testing::UnitTest::impl(), and testing::TestPartNonfatallyFailed().
void testing::internal::ReportUninterestingCall | ( | CallReaction | reaction, |
const string & | msg | ||
) |
Definition at line 247 of file gmock-spec-builders.cc.
References Expect(), GMOCK_FLAG, kAllow, kInfo, kInfoVerbosity, kWarn, kWarning, and Log().
Referenced by testing::internal::FunctionMockerBase< R(A1, A2)>::PrintTriedExpectationsLocked(), and testing::internal::UntypedFunctionMockerBase::UntypedInvokeWith().
|
static |
Definition at line 4539 of file gtest.cc.
References testing::Environment::SetUp().
|
static |
Definition at line 4539 of file gtest.cc.
References testing::Environment::SetUp().
Referenced by testing::internal::UnitTestImpl::RunAllTests(), and TearDownEnvironment().
|
static |
Definition at line 4539 of file gtest.cc.
References testing::Environment::SetUp().
|
static |
Definition at line 356 of file gtest.cc.
References add, AlwaysTrue(), AppendUserMessage(), testing::internal::AssertHelper::AssertHelper(), testing::AssertionFailure(), testing::AssertionResult::AssertionResult(), testing::AssertionSuccess(), testing::internal::edit_distance::CalculateOptimalEdits(), testing::internal::FilePath::ConcatPaths(), CountIf(), testing::internal::String::CStringEquals(), testing::internal::UnitTestImpl::CurrentOsStackTraceExceptTop(), data_, testing::internal::DefaultGlobalTestPartResultReporter::DefaultGlobalTestPartResultReporter(), testing::internal::DefaultPerThreadTestPartResultReporter::DefaultPerThreadTestPartResultReporter(), upload::dest, folly::digits10(), testing::internal::UnitTestImpl::disabled_test_count(), testing::TestCase::disabled_test_count(), folly::pushmi::operators::error(), EXPECT_PRED_FORMAT3, testing::internal::UnitTestImpl::failed_test_case_count(), testing::internal::UnitTestImpl::failed_test_count(), testing::TestCase::failed_test_count(), folly::pushmi::operators::filter, testing::internal::UnitTestOptions::FilterMatchesTest(), g_argvs, testing::internal::FilePath::GenerateUniqueFileName(), testing::internal::scoped_ptr< T >::get(), testing::internal::UnitTestOptions::GetAbsolutePathToOutputFile(), GetArgvs(), GetCurrentExecutableName(), testing::internal::UnitTestImpl::GetGlobalTestPartResultReporter(), testing::UnitTest::GetInstance(), testing::internal::UnitTestOptions::GetOutputFormat(), testing::Message::GetString(), testing::TestPartResultArray::GetTestPartResult(), testing::internal::UnitTestImpl::GetTestPartResultReporterForCurrentThread(), GetTestTypeId(), GetTimeInMillis(), GetUnitTestImpl(), GTEST_API_, GTEST_DEFINE_STATIC_MUTEX_(), GTEST_DISABLE_MSC_WARNINGS_POP_, GTEST_DISABLE_MSC_WARNINGS_PUSH_, GTEST_FLAG, GTEST_HAS_GETTIMEOFDAY_, HasOneFailure(), i, ids_, testing::UnitTest::impl(), testing::ScopedFakeTestPartResultReporter::Init(), testing::internal::FilePath::IsAbsolutePath(), testing::internal::FilePath::IsDirectory(), testing::internal::edit_distance::kAdd, testing::TestPartResult::kFatalFailure, testing::internal::edit_distance::kMatch, testing::internal::edit_distance::kRemove, testing::internal::edit_distance::kReplace, kTestTypeIdInGoogleTest, testing::kUniversalFilter, folly::detail::lock(), testing::internal::UnitTestOptions::MatchesFilter(), testing::TestPartResult::message(), testing::Message::Message(), message, testing::AssertionResult::message_, move(), name, now(), testing::AssertionResult::operator!(), testing::Message::operator<<(), testing::internal::AssertHelper::operator=(), gmock_output_test::output, testing::internal::UnitTestOptions::PatternMatchesString(), testing::internal::FilePath::RemoveDirectoryName(), replace(), testing::internal::UnitTestImpl::reportable_disabled_test_count(), testing::TestCase::reportable_disabled_test_count(), testing::internal::UnitTestImpl::reportable_test_count(), testing::TestCase::reportable_test_count(), testing::ScopedFakeTestPartResultReporter::ReportTestPartResult(), testing::internal::DefaultGlobalTestPartResultReporter::ReportTestPartResult(), testing::internal::DefaultPerThreadTestPartResultReporter::ReportTestPartResult(), folly::detail::rhs, testing::ScopedFakeTestPartResultReporter::ScopedFakeTestPartResultReporter(), testing::internal::FilePath::Set(), testing::internal::UnitTestImpl::SetGlobalTestPartResultReporter(), testing::internal::UnitTestImpl::SetTestPartResultReporterForCurrentThread(), testing::TestCase::should_run(), ShouldRunTestCase(), testing::internal::String::ShowWideCString(), testing::internal::SingleFailureChecker::SingleFailureChecker(), testing::TestPartResultArray::size(), SplitString(), testing::internal::FilePath::string(), string, StringStreamToString(), testing::AssertionResult::success_, testing::internal::UnitTestImpl::successful_test_case_count(), testing::internal::UnitTestImpl::successful_test_count(), testing::TestCase::successful_test_count(), SumOverTestCaseList(), testing::AssertionResult::swap(), folly::f14::swap(), testing::internal::UnitTestImpl::test_case_to_run_count(), testing::internal::UnitTestImpl::test_to_run_count(), testing::TestCase::test_to_run_count(), TestCaseFailed(), TestCasePassed(), testing::internal::UnitTestImpl::total_test_case_count(), testing::internal::UnitTestImpl::total_test_count(), testing::TestCase::total_test_count(), testing::TestPartResult::type(), type, type_, testing::internal::AssertHelper::~AssertHelper(), testing::ScopedFakeTestPartResultReporter::~ScopedFakeTestPartResultReporter(), and testing::internal::SingleFailureChecker::~SingleFailureChecker().
|
static |
Definition at line 356 of file gtest.cc.
References add, AlwaysTrue(), AppendUserMessage(), testing::internal::AssertHelper::AssertHelper(), testing::AssertionFailure(), testing::AssertionResult::AssertionResult(), testing::AssertionSuccess(), testing::internal::edit_distance::CalculateOptimalEdits(), testing::internal::FilePath::ConcatPaths(), CountIf(), testing::internal::String::CStringEquals(), testing::internal::UnitTestImpl::CurrentOsStackTraceExceptTop(), data_, testing::internal::DefaultGlobalTestPartResultReporter::DefaultGlobalTestPartResultReporter(), testing::internal::DefaultPerThreadTestPartResultReporter::DefaultPerThreadTestPartResultReporter(), upload::dest, folly::digits10(), testing::internal::UnitTestImpl::disabled_test_count(), testing::TestCase::disabled_test_count(), folly::pushmi::operators::error(), EXPECT_PRED_FORMAT3, testing::internal::UnitTestImpl::failed_test_case_count(), testing::internal::UnitTestImpl::failed_test_count(), testing::TestCase::failed_test_count(), folly::pushmi::operators::filter, testing::internal::UnitTestOptions::FilterMatchesTest(), g_argvs, testing::internal::FilePath::GenerateUniqueFileName(), testing::internal::scoped_ptr< T >::get(), testing::internal::UnitTestOptions::GetAbsolutePathToOutputFile(), GetArgvs(), GetCurrentExecutableName(), testing::internal::UnitTestImpl::GetGlobalTestPartResultReporter(), testing::UnitTest::GetInstance(), testing::internal::UnitTestOptions::GetOutputFormat(), testing::Message::GetString(), testing::TestPartResultArray::GetTestPartResult(), testing::internal::UnitTestImpl::GetTestPartResultReporterForCurrentThread(), GetTestTypeId(), GetTimeInMillis(), GetUnitTestImpl(), GTEST_API_, GTEST_DEFINE_STATIC_MUTEX_(), GTEST_DISABLE_MSC_WARNINGS_POP_, GTEST_DISABLE_MSC_WARNINGS_PUSH_, GTEST_FLAG, GTEST_HAS_GETTIMEOFDAY_, HasOneFailure(), i, ids_, testing::UnitTest::impl(), testing::ScopedFakeTestPartResultReporter::Init(), testing::internal::FilePath::IsAbsolutePath(), testing::internal::FilePath::IsDirectory(), testing::internal::edit_distance::kAdd, testing::TestPartResult::kFatalFailure, testing::internal::edit_distance::kMatch, testing::internal::edit_distance::kRemove, testing::internal::edit_distance::kReplace, kTestTypeIdInGoogleTest, testing::kUniversalFilter, folly::detail::lock(), testing::internal::UnitTestOptions::MatchesFilter(), testing::TestPartResult::message(), testing::Message::Message(), message, testing::AssertionResult::message_, move(), name, now(), testing::AssertionResult::operator!(), testing::Message::operator<<(), testing::internal::AssertHelper::operator=(), gmock_output_test::output, testing::internal::UnitTestOptions::PatternMatchesString(), testing::internal::FilePath::RemoveDirectoryName(), replace(), testing::internal::UnitTestImpl::reportable_disabled_test_count(), testing::TestCase::reportable_disabled_test_count(), testing::internal::UnitTestImpl::reportable_test_count(), testing::TestCase::reportable_test_count(), testing::ScopedFakeTestPartResultReporter::ReportTestPartResult(), testing::internal::DefaultGlobalTestPartResultReporter::ReportTestPartResult(), testing::internal::DefaultPerThreadTestPartResultReporter::ReportTestPartResult(), folly::detail::rhs, testing::ScopedFakeTestPartResultReporter::ScopedFakeTestPartResultReporter(), testing::internal::FilePath::Set(), testing::internal::UnitTestImpl::SetGlobalTestPartResultReporter(), testing::internal::UnitTestImpl::SetTestPartResultReporterForCurrentThread(), testing::TestCase::should_run(), ShouldRunTestCase(), testing::internal::String::ShowWideCString(), testing::internal::SingleFailureChecker::SingleFailureChecker(), testing::TestPartResultArray::size(), SplitString(), testing::internal::FilePath::string(), string, StringStreamToString(), testing::AssertionResult::success_, testing::internal::UnitTestImpl::successful_test_case_count(), testing::internal::UnitTestImpl::successful_test_count(), testing::TestCase::successful_test_count(), SumOverTestCaseList(), testing::AssertionResult::swap(), folly::f14::swap(), testing::internal::UnitTestImpl::test_case_to_run_count(), testing::internal::UnitTestImpl::test_to_run_count(), testing::TestCase::test_to_run_count(), TestCaseFailed(), TestCasePassed(), testing::internal::UnitTestImpl::total_test_case_count(), testing::internal::UnitTestImpl::total_test_count(), testing::TestCase::total_test_count(), testing::TestPartResult::type(), type, type_, testing::internal::AssertHelper::~AssertHelper(), testing::ScopedFakeTestPartResultReporter::~ScopedFakeTestPartResultReporter(), and testing::internal::SingleFailureChecker::~SingleFailureChecker().
|
static |
Definition at line 356 of file gtest.cc.
References testing::TestCase::should_run().
Referenced by ShouldRunTestCase(), and testing::internal::UnitTestImpl::test_case_to_run_count().
bool testing::internal::ShouldRunTestOnShard | ( | int | total_shards, |
int | shard_index, | ||
int | test_id | ||
) |
Definition at line 4778 of file gtest.cc.
Referenced by testing::internal::UnitTestImpl::FilterTests(), TearDownEnvironment(), testing::internal::UnitTestRecordPropertyTestHelper::UnitTestRecordProperty(), and testing::internal::GTestFlagSaver::~GTestFlagSaver().
bool testing::internal::ShouldShard | ( | const char * | total_shards_str, |
const char * | shard_index_str, | ||
bool | in_subprocess_for_death_test | ||
) |
Definition at line 4715 of file gtest.cc.
References COLOR_RED, ColoredPrintf(), testing::Message::GetString(), and Int32FromEnvOrDie().
Referenced by testing::internal::PrettyUnitTestResultPrinter::OnTestIterationStart(), testing::internal::PrettyUnitTestResultPrinter::OnTestProgramEnd(), testing::internal::UnitTestImpl::RunAllTests(), TearDownEnvironment(), testing::internal::UnitTestRecordPropertyTestHelper::UnitTestRecordProperty(), and testing::internal::GTestFlagSaver::~GTestFlagSaver().
bool testing::internal::ShouldUseColor | ( | bool | stdout_is_tty | ) |
Definition at line 2916 of file gtest.cc.
References CaseInsensitiveCStringEquals(), testing::internal::posix::GetEnv(), and GTEST_FLAG.
Referenced by ColoredPrintf(), main(), TEST(), and testing::internal::UnitTestRecordPropertyTestHelper::UnitTestRecordProperty().
|
inline |
Definition at line 333 of file gtest-internal-inl.h.
References ShuffleRange().
Referenced by operator<<(), testing::TestCase::ShuffleTests(), testing::internal::UnitTestRecordPropertyTestHelper::UnitTestRecordProperty(), and testing::internal::GTestFlagSaver::~GTestFlagSaver().
void testing::internal::ShuffleRange | ( | internal::Random * | random, |
int | begin, | ||
int | end, | ||
std::vector< E > * | v | ||
) |
Definition at line 312 of file gtest-internal-inl.h.
References testing::internal::Random::Generate(), GTEST_CHECK_, folly::size(), and folly::f14::swap().
Referenced by operator<<(), PrintOnOneLine(), Shuffle(), testing::internal::UnitTestImpl::ShuffleTests(), testing::internal::UnitTestRecordPropertyTestHelper::UnitTestRecordProperty(), and testing::internal::GTestFlagSaver::~GTestFlagSaver().
bool testing::internal::SkipPrefix | ( | const char * | prefix, |
const char ** | pstr | ||
) |
Definition at line 5001 of file gtest.cc.
Referenced by testing::internal::CodeLocation::CodeLocation(), HasGoogleTestFlagPrefix(), PrintOnOneLine(), TEST(), and testing::internal::UnitTestRecordPropertyTestHelper::UnitTestRecordProperty().
void testing::internal::SplitString | ( | const ::std::string & | str, |
char | delimiter, | ||
::std::vector< ::std::string > * | dest | ||
) |
Definition at line 922 of file gtest.cc.
References AlwaysTrue().
Referenced by testing::internal::CodeLocation::CodeLocation(), ParseGoogleTestFlag(), and ShouldRunTestCase().
std::string testing::internal::StreamableToString | ( | const T & | streamable | ) |
Definition at line 243 of file gtest-message.h.
Referenced by testing::internal::CodeLocation::CodeLocation(), FormatCompilerIndependentFileLocation(), testing::FormatCountableNoun(), FormatEpochTimeInMillisAsIso8601(), FormatFileLocation(), InitGoogleMockImpl(), InitGoogleTestImpl(), IsPathSeparator(), testing::internal::FilePath::MakeFileName(), testing::internal::PrettyUnitTestResultPrinter::OnTestCaseEnd(), testing::internal::PrettyUnitTestResultPrinter::OnTestEnd(), testing::internal::PrettyUnitTestResultPrinter::OnTestIterationEnd(), testing::internal::PrettyUnitTestResultPrinter::OnTestProgramEnd(), testing::Message::operator<<(), testing::internal::XmlUnitTestResultPrinter::OutputXmlTestInfo(), ParseGoogleMockStringFlag(), ParseGoogleTestFlagsOnlyImpl(), PortableLocaltime(), testing::TEST(), testing::internal::TestResultAccessor::test_part_results(), and testing::internal::UnitTestRecordPropertyTestHelper::UnitTestRecordProperty().
std::string testing::internal::StringFromGTestEnv | ( | const char * | flag, |
const char * | default_val | ||
) |
Definition at line 1229 of file gtest-port.cc.
References FlagToEnvVar(), testing::internal::posix::GetEnv(), string, and value.
Referenced by FlagToEnvVar(), and testing::GetDefaultFilter().
std::string testing::internal::StringStreamToString | ( | ::std::stringstream * | stream | ) |
Definition at line 1982 of file gtest.cc.
References ch, folly::test::end(), start, and string.
Referenced by CmpHelperFloatingPointEQ(), testing::internal::XmlUnitTestResultPrinter::EscapeXmlText(), FloatingPointLE(), testing::Message::GetString(), testing::internal::XmlUnitTestResultPrinter::OnTestIterationEnd(), ShouldRunTestCase(), and WideStringToUtf8().
|
inline |
Definition at line 2284 of file gtest-port.h.
References IsSpace().
Referenced by testing::internal::CodeLocation::CodeLocation().
|
static |
|
static |
Definition at line 335 of file gtest.cc.
Referenced by testing::internal::UnitTestImpl::disabled_test_count(), testing::internal::UnitTestImpl::failed_test_count(), testing::internal::UnitTestImpl::reportable_disabled_test_count(), testing::internal::UnitTestImpl::reportable_test_count(), ShouldRunTestCase(), testing::internal::UnitTestImpl::successful_test_count(), testing::internal::UnitTestImpl::test_to_run_count(), and testing::internal::UnitTestImpl::total_test_count().
|
static |
|
static |
Definition at line 4540 of file gtest.cc.
References COLOR_RED, ColoredPrintf(), failed, FILE, testing::internal::UnitTestOptions::FilterMatchesTest(), testing::internal::UnitTestImpl::FilterTests(), testing::internal::posix::FOpen(), for_each(), ForEach(), forever, g_help_flag, testing::internal::posix::GetEnv(), GetNextRandomSeed(), GetRandomSeedFromFlag(), testing::Message::GetString(), GetTimeInMillis(), GTEST_FLAG, GTestIsInitialized(), testing::Test::HasFatalFailure(), i, Int32FromEnvOrDie(), testing::TestInfo::is_disabled_, testing::TestInfo::matches_filter_, testing::internal::UnitTestOptions::MatchesFilter(), testing::TestInfo::name(), testing::TestCase::name(), testing::TestEventListener::OnEnvironmentsSetUpEnd(), testing::TestEventListener::OnEnvironmentsSetUpStart(), testing::TestEventListener::OnEnvironmentsTearDownEnd(), testing::TestEventListener::OnEnvironmentsTearDownStart(), testing::TestEventListener::OnTestIterationEnd(), testing::TestEventListener::OnTestIterationStart(), testing::TestEventListener::OnTestProgramEnd(), testing::TestEventListener::OnTestProgramStart(), ParseInt32(), random(), repeat(), testing::internal::UnitTestImpl::RunAllTests(), testing::TestCase::set_should_run(), SetUpEnvironment(), testing::TestCase::should_run(), testing::TestInfo::should_run_, ShouldRunTestOnShard(), ShouldShard(), start, string, testing::Environment::TearDown(), TearDownEnvironment(), testing::TestCase::test_info_list(), and WriteToShardStatusFileIfNeeded().
|
static |
Definition at line 4540 of file gtest.cc.
References COLOR_RED, ColoredPrintf(), failed, FILE, testing::internal::UnitTestOptions::FilterMatchesTest(), testing::internal::UnitTestImpl::FilterTests(), testing::internal::posix::FOpen(), for_each(), ForEach(), forever, g_help_flag, testing::internal::posix::GetEnv(), GetNextRandomSeed(), GetRandomSeedFromFlag(), testing::Message::GetString(), GetTimeInMillis(), GTEST_FLAG, GTestIsInitialized(), testing::Test::HasFatalFailure(), i, Int32FromEnvOrDie(), testing::TestInfo::is_disabled_, testing::TestInfo::matches_filter_, testing::internal::UnitTestOptions::MatchesFilter(), testing::TestInfo::name(), testing::TestCase::name(), testing::TestEventListener::OnEnvironmentsSetUpEnd(), testing::TestEventListener::OnEnvironmentsSetUpStart(), testing::TestEventListener::OnEnvironmentsTearDownEnd(), testing::TestEventListener::OnEnvironmentsTearDownStart(), testing::TestEventListener::OnTestIterationEnd(), testing::TestEventListener::OnTestIterationStart(), testing::TestEventListener::OnTestProgramEnd(), testing::TestEventListener::OnTestProgramStart(), ParseInt32(), random(), repeat(), testing::internal::UnitTestImpl::RunAllTests(), testing::TestCase::set_should_run(), SetUpEnvironment(), testing::TestCase::should_run(), testing::TestInfo::should_run_, ShouldRunTestOnShard(), ShouldShard(), start, string, testing::Environment::TearDown(), TearDownEnvironment(), testing::TestCase::test_info_list(), and WriteToShardStatusFileIfNeeded().
|
static |
Definition at line 4540 of file gtest.cc.
References testing::Environment::TearDown().
Referenced by testing::internal::UnitTestImpl::RunAllTests(), and TearDownEnvironment().
std::string testing::internal::TempDir | ( | ) |
Definition at line 1058 of file gtest-port.cc.
References testing::internal::posix::GetEnv(), and string.
Referenced by CheckedDowncastToActualType(), and testing::TEST_F().
testing::internal::TEST | ( | IsXDigitTest | , |
WorksForNarrowAscii | |||
) |
Definition at line 64 of file gtest-port_test.cc.
References EXPECT_FALSE, EXPECT_TRUE, and IsXDigit().
Referenced by testing::gmock_matchers_test::AllArgsHelper::AllArgsHelper(), testing::gmock_matchers_test::AStruct::AStruct(), testing::gmock_matchers_test::ConvertibleFromAny::ConvertibleFromAny(), testing::internal::Derived::Derived(), testing::gmock_matchers_test::Derived::Derived(), testing::gmock_matchers_test::ReferencesBarOrIsZeroImpl::DescribeNegationTo(), testing::gmock_matchers_test::IsHalfOfMatcher::DescribeNegationTo(), testing::gmock_matchers_test::EvenMatcherImpl::DescribeTo(), testing::gmock_matchers_test::NewEvenMatcherImpl::DescribeTo(), testing::gmock_matchers_test::DivisibleByImpl::divider(), testing::internal::UnitTestHelper::GetSortedTests(), testing::gmock_matchers_test::IntReferenceWrapper::IntReferenceWrapper(), testing::gmock_matchers_test::Type< T >::IsTypeOf(), testing::gmock_matchers_test::DerivedClass::k(), testing::gmock_matchers_test::GreaterThanMatcher::MatchAndExplain(), testing::gmock_matchers_test::PolymorphicIsEvenImpl::MatchAndExplain(), testing::gmock_matchers_test::MATCHER_P(), testing::internal::NoDefaultContructor::NoDefaultContructor(), testing::internal::Castable::operator Base(), testing::internal::ConstCastable::operator Base(), testing::internal::ConstAndNonConstCastable::operator Base(), testing::gmock_matchers_test::ConvertibleToBool::operator bool(), testing::gmock_matchers_test::IsGreaterThan::operator()(), testing::gmock_matchers_test::Functor::operator()(), testing::gmock_matchers_test::PolymorphicFunctor::operator()(), testing::gmock_matchers_test::ReferencingFunctor::operator()(), testing::gmock_matchers_test::ConstPropagatingPtr< T >::operator*(), operator<<(), testing::gmock_matchers_test::NotCopyable::operator>=(), testing::internal::ExpectationTester::SetCallCount(), testing::CurrentTestInfoTest::TearDownTestCase(), TEST(), testing::gmock_matchers_test::TEST(), testing::TEST(), TEST(), testing::gmock_matchers_test::FloatingPointNearTest< RawType >::TestNearMatches(), testing::internal::To::To(), testing::gmock_matchers_test::Unprintable::Unprintable(), and testing::gmock_matchers_test::IntValue::value().
testing::internal::TEST | ( | IsXDigitTest | , |
ReturnsFalseForNarrowNonAscii | |||
) |
testing::internal::TEST | ( | IsXDigitTest | , |
WorksForWideAscii | |||
) |
Definition at line 82 of file gtest-port_test.cc.
References EXPECT_FALSE, EXPECT_TRUE, and IsXDigit().
testing::internal::TEST | ( | IsXDigitTest | , |
ReturnsFalseForWideNonAscii | |||
) |
testing::internal::TEST | ( | ApiTest | , |
UnitTestImmutableAccessorsWork | |||
) |
Definition at line 114 of file gtest-unittest-api_test.cc.
References ASSERT_EQ, testing::UnitTest::disabled_test_count(), EXPECT_EQ, EXPECT_STREQ, testing::UnitTest::GetInstance(), testing::internal::UnitTestHelper::GetSortedTestCases(), name, testing::UnitTest::test_case_to_run_count(), testing::UnitTest::test_to_run_count(), testing::UnitTest::total_test_case_count(), and testing::UnitTest::total_test_count().
testing::internal::TEST | ( | ImplicitCastTest | , |
ConvertsPointers | |||
) |
testing::internal::TEST | ( | ImplicitCastTest | , |
CanUseInheritance | |||
) |
testing::internal::TEST | ( | ImplicitCastTest | , |
CanUseNonConstCastOperator | |||
) |
testing::internal::TEST | ( | ApiTest | , |
TestCaseImmutableAccessorsWork | |||
) |
Definition at line 147 of file gtest-unittest-api_test.cc.
References ASSERT_EQ, ASSERT_TRUE, testing::TestCase::disabled_test_count(), EXPECT_EQ, EXPECT_FALSE, EXPECT_STREQ, EXPECT_TRUE, testing::internal::UnitTestHelper::FindTestCase(), testing::internal::UnitTestHelper::GetSortedTests(), IsNull(), name, testing::TestCase::name(), testing::TestCase::should_run(), testing::TestCase::test_to_run_count(), testing::TestCase::total_test_count(), and testing::TestCase::type_param().
testing::internal::TEST | ( | ImplicitCastTest | , |
CanUseConstCastOperatorOnConstValues | |||
) |
testing::internal::TEST | ( | ImplicitCastTest | , |
CanSelectBetweenConstAndNonConstCasrAppropriately | |||
) |
testing::internal::TEST | ( | ImplicitCastTest | , |
CanUseImplicitConstructor | |||
) |
Definition at line 207 of file gtest-port_test.cc.
References EXPECT_TRUE, and folly::to().
testing::internal::TEST | ( | ApiTest | , |
TestCaseDisabledAccessorsWork | |||
) |
Definition at line 210 of file gtest-unittest-api_test.cc.
References ASSERT_EQ, ASSERT_TRUE, testing::TestCase::disabled_test_count(), EXPECT_EQ, EXPECT_FALSE, EXPECT_STREQ, EXPECT_TRUE, testing::internal::UnitTestHelper::FindTestCase(), testing::TestCase::GetTestInfo(), IsNull(), testing::TestCase::name(), testing::TestCase::should_run(), testing::TestCase::test_to_run_count(), testing::TestCase::total_test_count(), and testing::TestCase::type_param().
testing::internal::TEST | ( | IteratorTraitsTest | , |
WorksForSTLContainerIterators | |||
) |
testing::internal::TEST | ( | IteratorTraitsTest | , |
WorksForPointerToNonConst | |||
) |
Definition at line 221 of file gtest-port_test.cc.
testing::internal::TEST | ( | IteratorTraitsTest | , |
WorksForPointerToConst | |||
) |
testing::internal::TEST | ( | ApiTest | , |
DISABLED_Dummy1 | |||
) |
Definition at line 231 of file gtest-unittest-api_test.cc.
testing::internal::TEST | ( | DISABLED_Test | , |
Dummy2 | |||
) |
Definition at line 232 of file gtest-unittest-api_test.cc.
testing::internal::TEST | ( | ScopedPtrTest | , |
DefinesElementType | |||
) |
Definition at line 234 of file gtest-port_test.cc.
testing::internal::TEST | ( | GtestCheckSyntaxTest | , |
BehavesLikeASingleStatement | |||
) |
Definition at line 240 of file gtest-port_test.cc.
References AlwaysFalse(), AlwaysTrue(), and GTEST_CHECK_.
testing::internal::TEST | ( | GtestCheckSyntaxTest | , |
WorksWithSwitch | |||
) |
testing::internal::TEST | ( | FormatFileLocationTest | , |
FormatsFileLocation | |||
) |
Definition at line 270 of file gtest-port_test.cc.
References EXPECT_PRED_FORMAT2, FormatFileLocation(), and testing::IsSubstring().
testing::internal::TEST | ( | FormatFileLocationTest | , |
FormatsUnknownFile | |||
) |
Definition at line 275 of file gtest-port_test.cc.
References EXPECT_PRED_FORMAT2, FormatFileLocation(), and testing::IsSubstring().
testing::internal::TEST | ( | FormatFileLocationTest | , |
FormatsUknownLine | |||
) |
Definition at line 281 of file gtest-port_test.cc.
References EXPECT_EQ, and FormatFileLocation().
testing::internal::TEST | ( | FormatFileLocationTest | , |
FormatsUknownFileAndLine | |||
) |
Definition at line 285 of file gtest-port_test.cc.
References EXPECT_EQ, and FormatFileLocation().
testing::internal::TEST | ( | FormatCompilerIndependentFileLocationTest | , |
FormatsFileLocation | |||
) |
Definition at line 290 of file gtest-port_test.cc.
References EXPECT_EQ, and FormatCompilerIndependentFileLocation().
testing::internal::TEST | ( | FormatCompilerIndependentFileLocationTest | , |
FormatsUknownFile | |||
) |
Definition at line 294 of file gtest-port_test.cc.
References EXPECT_EQ, and FormatCompilerIndependentFileLocation().
testing::internal::TEST | ( | FormatCompilerIndependentFileLocationTest | , |
FormatsUknownLine | |||
) |
Definition at line 299 of file gtest-port_test.cc.
References EXPECT_EQ, and FormatCompilerIndependentFileLocation().
testing::internal::TEST | ( | FormatCompilerIndependentFileLocationTest | , |
FormatsUknownFileAndLine | |||
) |
Definition at line 303 of file gtest-port_test.cc.
References ASSERT_EQ, data, dummy(), EXPECT_EQ, FormatCompilerIndependentFileLocation(), GetThreadCount(), i, folly::detail::lock(), testing::internal::Mutex::Lock(), mutex, TEST(), and testing::internal::Mutex::Unlock().
testing::internal::TEST | ( | GetThreadCountTest | , |
ReturnsZeroWhenUnableToCountThreads | |||
) |
testing::internal::TEST | ( | GtestCheckDeathTest | , |
DiesWithCorrectOutputOnFailure | |||
) |
Definition at line 353 of file gtest-port_test.cc.
References EXPECT_DEATH_IF_SUPPORTED, GTEST_CHECK_, regex, and TEST().
testing::internal::TEST | ( | RegexEngineSelectionTest | , |
SelectsCorrectRegexEngine | |||
) |
Definition at line 384 of file gtest-port_test.cc.
References ASSERT_FALSE, folly::empty(), EXPECT_FALSE, EXPECT_NONFATAL_FAILURE, EXPECT_PRED1, EXPECT_STREQ, EXPECT_TRUE, testing::internal::RE::FullMatch(), GTEST_USES_POSIX_RE, testing::internal::RE::PartialMatch(), testing::internal::RE::pattern(), simple, string, TEST(), testing::TYPED_TEST(), and testing::TYPED_TEST_CASE().
testing::internal::TEST | ( | CaptureTest | , |
CapturesStdout | |||
) |
Definition at line 932 of file gtest-port_test.cc.
References CaptureStdout(), EXPECT_EQ, EXPECT_STREQ, GetCapturedStdout(), and string.
testing::internal::TEST | ( | CaptureTest | , |
CapturesStderr | |||
) |
Definition at line 942 of file gtest-port_test.cc.
References CaptureStderr(), EXPECT_EQ, EXPECT_STREQ, GetCapturedStderr(), and string.
testing::internal::TEST | ( | CaptureTest | , |
CapturesStdoutAndStderr | |||
) |
Definition at line 953 of file gtest-port_test.cc.
References CaptureStderr(), CaptureStdout(), EXPECT_STREQ, GetCapturedStderr(), and GetCapturedStdout().
testing::internal::TEST | ( | CaptureDeathTest | , |
CannotReenterStdoutCapture | |||
) |
Definition at line 962 of file gtest-port_test.cc.
References CaptureStdout(), EXPECT_DEATH_IF_SUPPORTED, and GetCapturedStdout().
testing::internal::TEST | ( | ThreadLocalTest | , |
DefaultConstructorInitializesToDefaultValues | |||
) |
Definition at line 974 of file gtest-port_test.cc.
References EXPECT_EQ, EXPECT_TRUE, and testing::internal::ThreadLocal< T >::get().
testing::internal::TEST | ( | ThreadLocalTest | , |
SingleParamConstructorInitializesToParam | |||
) |
Definition at line 982 of file gtest-port_test.cc.
References EXPECT_EQ, testing::internal::ThreadLocal< T >::get(), and i.
testing::internal::TEST | ( | ThreadLocalTest | , |
ValueDefaultContructorIsNotRequiredForParamVersion | |||
) |
Definition at line 997 of file gtest-port_test.cc.
References bar, and testing::internal::ThreadLocal< T >::pointer().
testing::internal::TEST | ( | ThreadLocalTest | , |
GetAndPointerReturnSameValue | |||
) |
Definition at line 1002 of file gtest-port_test.cc.
References EXPECT_EQ, testing::internal::ThreadLocal< T >::get(), testing::internal::ThreadLocal< T >::pointer(), and testing::internal::ThreadLocal< T >::set().
testing::internal::TEST | ( | ThreadLocalTest | , |
PointerAndConstPointerReturnSameValue | |||
) |
Definition at line 1012 of file gtest-port_test.cc.
References ASSERT_EQ, ASSERT_FALSE, testing::internal::Mutex::AssertHeld(), dummy(), EXPECT_DEATH_IF_SUPPORTED, EXPECT_EQ, EXPECT_STREQ, EXPECT_TRUE, FALSE, testing::internal::ThreadLocal< T >::get(), GTEST_CHECK_, GTEST_CHECK_POSIX_SUCCESS_, GTEST_DISALLOW_ASSIGN_, GTEST_DISALLOW_COPY_AND_ASSIGN_, i, folly::detail::lock(), m, mutex, mutex_, testing::internal::ThreadLocal< T >::pointer(), testing::internal::scoped_ptr< T >::reset(), testing::internal::ThreadLocal< T >::set(), folly::size(), string, T, shell_builder::temp, TEST(), TRUE, and value.
testing::internal::TEST_F | ( | ListenerTest | , |
DoesFoo | |||
) |
Definition at line 158 of file gtest-listener_test.cc.
References SUCCEED.
Referenced by testing::gmock_matchers_test::EMString(), testing::TestInfoTest::GetTestResult(), operator<<(), testing::SetUpTestCaseTest::SetUp(), testing::internal::ListenerTest::TearDown(), testing::CurrentTestInfoTest::TearDownTestCase(), testing::TEST(), testing::TEST_F(), and testing::gmock_matchers_test::FloatingPointNearTest< RawType >::TestNearMatches().
testing::internal::TEST_F | ( | ListenerTest | , |
DoesBar | |||
) |
|
static |
Definition at line 350 of file gtest.cc.
References testing::TestCase::Failed(), and testing::TestCase::should_run().
Referenced by testing::internal::UnitTestImpl::failed_test_case_count(), and ShouldRunTestCase().
|
static |
Definition at line 350 of file gtest.cc.
References testing::TestCase::Failed(), and testing::TestCase::should_run().
|
static |
Definition at line 350 of file gtest.cc.
References testing::TestCase::Failed(), and testing::TestCase::should_run().
|
static |
Definition at line 345 of file gtest.cc.
References testing::TestCase::Passed(), and testing::TestCase::should_run().
Referenced by ShouldRunTestCase(), and testing::internal::UnitTestImpl::successful_test_case_count().
|
static |
Definition at line 345 of file gtest.cc.
References testing::TestCase::Passed(), and testing::TestCase::should_run().
|
static |
Definition at line 345 of file gtest.cc.
References testing::TestCase::Passed(), and testing::TestCase::should_run().
|
inline |
|
inline |
OutIter testing::internal::TransformTupleValues | ( | Func | f, |
const Tuple & | t, | ||
OutIter | out | ||
) |
Definition at line 853 of file gmock-matchers.h.
References Run().
Referenced by testing::internal::UnorderedElementsAreMatcher< MatcherTuple >::operator Matcher< Container >(), testing::internal::ElementsAreMatcher< MatcherTuple >::operator Matcher< Container >(), and testing::internal::TransformTupleValuesHelper< Tuple, Func, OutIter >::IterateOverTuple< Tup, 0 >::operator()().
bool testing::internal::TupleMatches | ( | const MatcherTuple & | matcher_tuple, |
const ValueTuple & | value_tuple | ||
) |
Definition at line 796 of file gmock-matchers.h.
References GTEST_COMPILE_ASSERT_, testing::Matches(), and value.
Referenced by testing::internal::TuplePrefix< 0 >::ExplainMatchFailuresTo(), testing::internal::TypedExpectation< F >::ExplainMatchResultTo(), testing::internal::OnCallSpec< F >::Matches(), and testing::internal::TypedExpectation< F >::Matches().
void testing::internal::UniversalPrint | ( | const T & | value, |
::std::ostream * | os | ||
) |
Definition at line 852 of file gtest-printers.h.
References testing::gtest_printers_test::Print(), and T.
Referenced by testing::SafeMatcherCastImpl< T >::Cast(), DefaultPrintTo(), testing::internal::ComparisonBase< D, Rhs, Op >::Impl< Lhs >::DescribeNegationTo(), testing::internal::HasSubstrMatcher< StringType >::DescribeNegationTo(), testing::internal::StartsWithMatcher< StringType >::DescribeNegationTo(), testing::internal::EndsWithMatcher< StringType >::DescribeNegationTo(), testing::internal::ContainerEqMatcher< Container >::DescribeNegationTo(), testing::internal::PointwiseMatcher< TupleMatcher, RhsContainer >::Impl< LhsContainer >::DescribeNegationTo(), testing::internal::ComparisonBase< D, Rhs, Op >::Impl< Lhs >::DescribeTo(), testing::internal::HasSubstrMatcher< StringType >::DescribeTo(), testing::internal::StartsWithMatcher< StringType >::DescribeTo(), testing::internal::EndsWithMatcher< StringType >::DescribeTo(), testing::internal::ContainerEqMatcher< Container >::DescribeTo(), testing::internal::BoundSecondMatcher< Tuple2Matcher, Second >::Impl< T >::DescribeTo(), testing::internal::StrEqualityMatcher< StringType >::DescribeToHelper(), testing::internal::TuplePrefix< N >::ExplainMatchFailuresTo(), testing::internal::ContainerEqMatcher< Container >::MatchAndExplain(), testing::internal::WhenSortedByMatcher< Comparator, ContainerMatcher >::Impl< LhsContainer >::MatchAndExplain(), testing::internal::PointwiseMatcher< TupleMatcher, RhsContainer >::Impl< LhsContainer >::MatchAndExplain(), MatchPrintAndExplain(), testing::internal::UniversalPrinter< T & >::Print(), testing::internal::UniversalTersePrinter< T >::Print(), testing::internal::UniversalTersePrinter< T & >::Print(), testing::internal::UniversalTersePrinter< const char * >::Print(), testing::internal::UniversalTersePrinter< char * >::Print(), testing::internal::UniversalTersePrinter< wchar_t * >::Print(), PrintRawArrayTo(), testing::gtest_printers_test::TEST(), testing::internal::FunctionMockerBase< R(A1, A2)>::UntypedDescribeUninterestingCall(), testing::internal::FunctionMockerBase< R(A1, A2)>::UntypedPrintArgs(), and foo::StreamableTemplateInFoo< T >::value().
void testing::internal::UniversalPrintArray | ( | const char * | begin, |
size_t | len, | ||
ostream * | os | ||
) |
Definition at line 309 of file gtest-printers.cc.
References UniversalPrintCharArray().
void testing::internal::UniversalPrintArray | ( | const wchar_t * | begin, |
size_t | len, | ||
ostream * | os | ||
) |
Definition at line 315 of file gtest-printers.cc.
References UniversalPrintCharArray().
Referenced by UniversalPrintCharArray().
void testing::internal::UniversalPrintArray | ( | const T * | begin, |
size_t | len, | ||
::std::ostream * | os | ||
) |
Definition at line 716 of file gtest-printers.h.
References folly::test::begin(), GTEST_API_, PrintRawArrayTo(), and UniversalPrintArray().
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 | ||
) |
|
static |
Definition at line 286 of file gtest-printers.cc.
References folly::test::begin(), PrintCharsAsStringTo(), PrintStringTo(), PrintTo(), s, string, UniversalPrintArray(), and UniversalPrintCharArray().
|
static |
Definition at line 286 of file gtest-printers.cc.
References PrintCharsAsStringTo().
|
static |
Definition at line 286 of file gtest-printers.cc.
References folly::test::begin(), PrintCharsAsStringTo(), PrintStringTo(), PrintTo(), s, string, and UniversalPrintArray().
Referenced by UniversalPrintArray(), and UniversalPrintCharArray().
void testing::internal::UniversalTersePrint | ( | const T & | value, |
::std::ostream * | os | ||
) |
Definition at line 843 of file gtest-printers.h.
References testing::gtest_printers_test::Print().
Referenced by testing::internal::UniversalTersePrinter< wchar_t * >::Print(), testing::gtest_printers_test::TEST(), and foo::StreamableTemplateInFoo< T >::value().
std::string testing::internal::WideStringToUtf8 | ( | const wchar_t * | str, |
int | num_chars | ||
) |
Definition at line 1823 of file gtest.cc.
References CodePointToUtf8(), CreateCodePointFromUtf16SurrogatePair(), i, IsUtf16SurrogatePair(), stream, and StringStreamToString().
Referenced by operator<<(), testing::internal::String::ShowWideCString(), testing::internal::UnitTestRecordPropertyTestHelper::UnitTestRecordProperty(), and testing::internal::GTestFlagSaver::~GTestFlagSaver().
void testing::internal::WriteToShardStatusFileIfNeeded | ( | ) |
Definition at line 4693 of file gtest.cc.
References COLOR_RED, ColoredPrintf(), FILE, testing::internal::posix::FOpen(), and testing::internal::posix::GetEnv().
Referenced by testing::internal::UnitTestImpl::RunAllTests(), TearDownEnvironment(), and testing::internal::GTestFlagSaver::~GTestFlagSaver().
std::vector< testing::internal::string > testing::internal::g_argvs |
Definition at line 387 of file gtest.cc.
Referenced by GetArgvs(), InitGoogleTestImpl(), and ShouldRunTestCase().
GTEST_API_ ThreadLocal< Sequence * > testing::internal::g_gmock_implicit_sequence |
Definition at line 243 of file gmock-spec-builders.cc.
Referenced by testing::InSequence::InSequence(), testing::Sequence::Sequence(), and testing::InSequence::~InSequence().
bool testing::internal::g_help_flag = false |
Definition at line 188 of file gtest.cc.
Referenced by ParseGoogleTestFlag(), ParseGoogleTestFlagsOnlyImpl(), testing::internal::UnitTestImpl::RunAllTests(), TearDownEnvironment(), and testing::InitGoogleTestTest::TestParsingFlags().
class testing::internal::GTestFlagSaver testing::internal::GTEST_ATTRIBUTE_UNUSED_ |
Referenced by testing::Sequence::Sequence(), and testing::internal::GTestFlagSaver::~GTestFlagSaver().
const char testing::internal::kAlsoRunDisabledTestsFlag = "also_run_disabled_tests" |
Definition at line 89 of file gtest-internal-inl.h.
Referenced by ParseGoogleTestFlag().
const char testing::internal::kBreakOnFailureFlag = "break_on_failure" |
Definition at line 90 of file gtest-internal-inl.h.
Referenced by ParseGoogleTestFlag().
const char testing::internal::kCatchExceptionsFlag = "catch_exceptions" |
Definition at line 91 of file gtest-internal-inl.h.
Referenced by ParseGoogleTestFlag().
|
static |
|
static |
|
static |
const char testing::internal::kColorFlag = "color" |
Definition at line 92 of file gtest-internal-inl.h.
Referenced by ParseGoogleTestFlag().
const char testing::internal::kCurrentDirectoryString = "./" |
Definition at line 86 of file gtest-filepath.cc.
Referenced by IsPathSeparator(), and testing::internal::FilePath::RemoveFileName().
const char testing::internal::kDeathTestStyleFlag = "death_test_style" |
Definition at line 50 of file gtest-death-test-internal.h.
Referenced by ParseGoogleTestFlag().
const char testing::internal::kDeathTestUseFork = "death_test_use_fork" |
Definition at line 51 of file gtest-death-test-internal.h.
Referenced by ParseGoogleTestFlag().
const char testing::internal::kErrorVerbosity = "error" |
Definition at line 318 of file gmock-internal-utils.h.
Referenced by LogIsVisible(), testing::internal::GoogleTestFailureReporter::ReportFailure(), and testing::internal::ExpectationTester::SetCallCount().
const char testing::internal::kFilterFlag = "filter" |
Definition at line 93 of file gtest-internal-inl.h.
Referenced by ParseGoogleTestFlag().
const char testing::internal::kFlagfileFlag = "flagfile" |
Definition at line 103 of file gtest-internal-inl.h.
Referenced by ParseGoogleTestFlagsOnlyImpl().
const char testing::internal::kInfoVerbosity = "info" |
Definition at line 314 of file gmock-internal-utils.h.
Referenced by LogIsVisible(), testing::internal::GoogleTestFailureReporter::ReportFailure(), ReportUninterestingCall(), and testing::internal::ExpectationTester::SetCallCount().
const char testing::internal::kInternalRunDeathTestFlag = "internal_run_death_test" |
Definition at line 52 of file gtest-death-test-internal.h.
Referenced by ParseGoogleTestFlag().
const char testing::internal::kListTestsFlag = "list_tests" |
Definition at line 94 of file gtest-internal-inl.h.
Referenced by ParseGoogleTestFlag().
const BiggestInt testing::internal::kMaxBiggestInt |
Definition at line 2439 of file gtest-port.h.
const int testing::internal::kMaxRandomSeed = 99999 |
Definition at line 106 of file gtest-internal-inl.h.
Referenced by operator<<(), and testing::internal::UnitTestRecordPropertyTestHelper::UnitTestRecordProperty().
const char testing::internal::kOutputFlag = "output" |
Definition at line 95 of file gtest-internal-inl.h.
Referenced by ParseGoogleTestFlag().
const char testing::internal::kPathSeparator = '/' |
Definition at line 85 of file gtest-filepath.cc.
Referenced by IsPathSeparator(), and testing::internal::FilePath::Normalize().
const char testing::internal::kPrintTimeFlag = "print_time" |
Definition at line 96 of file gtest-internal-inl.h.
Referenced by ParseGoogleTestFlag().
const char testing::internal::kRandomSeedFlag = "random_seed" |
Definition at line 97 of file gtest-internal-inl.h.
Referenced by ParseGoogleTestFlag().
const char testing::internal::kRepeatFlag = "repeat" |
Definition at line 98 of file gtest-internal-inl.h.
Referenced by ParseGoogleTestFlag().
const char testing::internal::kShuffleFlag = "shuffle" |
Definition at line 99 of file gtest-internal-inl.h.
Referenced by ParseGoogleTestFlag().
const char testing::internal::kStackTraceDepthFlag = "stack_trace_depth" |
Definition at line 100 of file gtest-internal-inl.h.
Referenced by ParseGoogleTestFlag().
const char testing::internal::kStackTraceMarker = "\nStack trace:\n" |
Definition at line 184 of file gtest.cc.
Referenced by testing::UnitTest::AddTestPartResult(), testing::TestPartResult::ExtractSummary(), and testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile().
const int testing::internal::kStdErrFileno = STDERR_FILENO |
Definition at line 89 of file gtest-port.cc.
const int testing::internal::kStdOutFileno = STDOUT_FILENO |
Definition at line 88 of file gtest-port.cc.
const char testing::internal::kStreamResultToFlag = "stream_result_to" |
Definition at line 101 of file gtest-internal-inl.h.
Referenced by ParseGoogleTestFlag().
const TypeId testing::internal::kTestTypeIdInGoogleTest = GetTestTypeId() |
Definition at line 626 of file gtest.cc.
Referenced by operator<<(), ShouldRunTestCase(), and testing::internal::UnitTestRecordPropertyTestHelper::UnitTestRecordProperty().
const char testing::internal::kThrowOnFailureFlag = "throw_on_failure" |
Definition at line 102 of file gtest-internal-inl.h.
Referenced by ParseGoogleTestFlag().
const int testing::internal::kTypedTestCases = 0 |
Definition at line 107 of file gtest-unittest-api_test.cc.
Referenced by testing::internal::UnitTestHelper::GetSortedTests().
const int testing::internal::kTypedTests = 0 |
Definition at line 108 of file gtest-unittest-api_test.cc.
Referenced by testing::internal::UnitTestHelper::GetSortedTests().
|
static |
|
static |
|
static |
const char testing::internal::kUnknownFile = "unknown file" |
Definition at line 876 of file gtest-port.cc.
|
static |
|
static |
|
static |
const char testing::internal::kWarningVerbosity = "warning" |
Definition at line 316 of file gmock-internal-utils.h.
Referenced by main(), and testing::internal::ExpectationTester::SetCallCount().