F´ Flight Software - C/C++ Documentation NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
testing::internal Namespace Reference

Namespaces

namespace  edit_distance
 

Classes

struct  ActionImpl
 
struct  ActionImpl< R(Args...), Impl >
 
class  AssignAction
 
class  BriefUnitTestResultPrinter
 
class  BuiltInDefaultValue
 
class  BuiltInDefaultValue< const T >
 
class  BuiltInDefaultValue< T * >
 
struct  BuiltInDefaultValueGetter
 
struct  BuiltInDefaultValueGetter< T, false >
 
struct  ByMoveWrapper
 
struct  conjunction
 
struct  conjunction< P1 >
 
struct  conjunction< P1, Ps... >
 
class  DefaultGlobalTestPartResultReporter
 
class  DefaultPerThreadTestPartResultReporter
 
struct  DeleteArgAction
 
struct  disjunction
 
struct  disjunction< P1 >
 
struct  disjunction< P1, Ps... >
 
class  DoAllAction
 
class  DoAllAction< FinalAction >
 
class  DoAllAction< InitialAction, OtherActions... >
 
class  DoDefaultAction
 
struct  ExcessiveArg
 
class  FailureReporterInterface
 
struct  Function
 
struct  Function< R(Args...)>
 
class  GoogleTestFailureReporter
 
class  GTestFlagSaver
 
class  IgnoreResultAction
 
struct  ImplBase
 
struct  InvokeArgumentAction
 
struct  InvokeMethodAction
 
struct  InvokeMethodWithoutArgsAction
 
struct  InvokeWithoutArgsAction
 
struct  is_callable_r_impl
 
struct  is_callable_r_impl< void_t< call_result_t< F, Args... > >, R, F, Args... >
 
struct  is_implicitly_convertible
 
class  JsonUnitTestResultPrinter
 
struct  KindOf
 
class  MaxBipartiteMatchState
 
class  NaggyMockImpl
 
struct  negation
 
class  NiceMockImpl
 
class  OsStackTraceGetter
 
class  OsStackTraceGetterInterface
 
class  PrettyUnitTestResultPrinter
 
struct  RemoveConstFromKey
 
struct  RemoveConstFromKey< std::pair< const K, V > >
 
class  ReturnAction
 
class  ReturnAction< ByMoveWrapper< T > >
 
struct  ReturnArgAction
 
struct  ReturnNewAction
 
class  ReturnNullAction
 
struct  ReturnPointeeAction
 
class  ReturnRefAction
 
class  ReturnRefOfCopyAction
 
class  ReturnRoundRobinAction
 
class  ReturnVoidAction
 
struct  SaveArgAction
 
struct  SaveArgPointeeAction
 
class  ScopedPrematureExitFile
 
struct  SetArgRefereeAction
 
struct  SetArgumentPointeeAction
 
struct  SetArrayArgumentAction
 
class  SetErrnoAndReturnAction
 
class  StlContainerView
 
class  StlContainerView< ::std::tuple< ElementPointer, Size > >
 
class  StlContainerView< Element[N]>
 
class  StrictMockImpl
 
class  TestEventRepeater
 
class  TestPropertyKeyIs
 
class  TestResultAccessor
 
class  TestSuiteNameIs
 
struct  ThisRefAdjuster
 
class  Timer
 
struct  TraceInfo
 
class  UnitTestImpl
 
class  UnitTestOptions
 
struct  WithArgsAction
 
class  WithoutMatchers
 
class  XmlUnitTestResultPrinter
 

Typedefs

template<typename... >
using void_t = void
 
template<typename F , typename... Args>
using call_result_t = decltype(std::declval<F>()(std::declval<Args>()...))
 
template<typename R , typename F , typename... Args>
using is_callable_r = is_callable_r_impl<void, R, F, Args...>
 
template<typename T >
using identity_t = T
 
template<TypeKind kFromKind, typename From , TypeKind kToKind, typename To >
using LosslessArithmeticConvertibleImpl
 
template<typename From , typename To >
using LosslessArithmeticConvertible
 

Enumerations

enum  TypeKind { kBool , kInteger , kFloatingPoint , kOther }
 
enum  LogSeverity { kInfo = 0 , kWarning = 1 }
 
enum  CharFormat { kAsIs , kHexEscape , kSpecialEscape }
 

Functions

 GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ (void,)
 
 GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ (::std::string, "")
 
 GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ (bool, false)
 
 GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ (unsigned char, '\0')
 
 GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ (signed char, '\0')
 
 GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ (char, '\0')
 
 GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ (unsigned short, 0U)
 
 GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ (signed short, 0)
 
 GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ (unsigned int, 0U)
 
 GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ (signed int, 0)
 
 GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ (unsigned long, 0UL)
 
 GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ (signed long, 0L)
 
 GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ (unsigned long long, 0)
 
 GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ (signed long long, 0)
 
 GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ (float, 0)
 
 GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ (double, 0)
 
template<typename T >
std::add_const< T >::type & as_const (T &t)
 
template<typename F , typename Impl >
::testing::Action< F > MakeAction ()
 
template<typename F , typename Impl >
::testing::Action< F > MakeAction (std::shared_ptr< Impl > impl)
 
constexpr bool PrefixOf (const char *a, const char *b)
 
template<int N, int M>
constexpr bool StartsWith (const char(&prefix)[N], const char(&str)[M])
 
template<int N, int M>
constexpr bool EndsWith (const char(&suffix)[N], const char(&str)[M])
 
template<int N, int M>
constexpr bool Equals (const char(&a)[N], const char(&b)[M])
 
template<int N>
constexpr bool ValidateSpec (const char(&spec)[N])
 
template<typename F , typename... Args>
auto InvokeArgument (F f, Args... args) -> decltype(f(args...))
 
template<typename T >
std::true_type StrictnessModifierProbe (const NiceMock< T > &)
 
template<typename T >
std::true_type StrictnessModifierProbe (const NaggyMock< T > &)
 
template<typename T >
std::true_type StrictnessModifierProbe (const StrictMock< T > &)
 
std::false_type StrictnessModifierProbe (...)
 
template<typename T >
constexpr bool HasStrictnessModifier ()
 
GTEST_API_ std::string JoinAsKeyValueTuple (const std::vector< const char * > &names, const Strings &values)
 
GTEST_API_ std::string ConvertIdentifierNameToWords (const char *id_name)
 
template<typename Pointer >
const Pointer::element_type * GetRawPointer (const Pointer &p)
 
template<typename Element >
const Element * GetRawPointer (const std::reference_wrapper< Element > &r)
 
template<typename Element >
Element * GetRawPointer (Element *p)
 
 GMOCK_DECLARE_KIND_ (bool, kBool)
 
 GMOCK_DECLARE_KIND_ (char, kInteger)
 
 GMOCK_DECLARE_KIND_ (signed char, kInteger)
 
 GMOCK_DECLARE_KIND_ (unsigned char, kInteger)
 
 GMOCK_DECLARE_KIND_ (short, kInteger)
 
 GMOCK_DECLARE_KIND_ (unsigned short, kInteger)
 
 GMOCK_DECLARE_KIND_ (int, kInteger)
 
 GMOCK_DECLARE_KIND_ (unsigned int, kInteger)
 
 GMOCK_DECLARE_KIND_ (long, kInteger)
 
 GMOCK_DECLARE_KIND_ (unsigned long, kInteger)
 
 GMOCK_DECLARE_KIND_ (long long, kInteger)
 
 GMOCK_DECLARE_KIND_ (unsigned long long, kInteger)
 
 GMOCK_DECLARE_KIND_ (float, kFloatingPoint)
 
 GMOCK_DECLARE_KIND_ (double, kFloatingPoint)
 
 GMOCK_DECLARE_KIND_ (long double, kFloatingPoint)
 
GTEST_API_ FailureReporterInterfaceGetFailureReporter ()
 
void Assert (bool condition, const char *file, int line, const std::string &msg)
 
void Assert (bool condition, const char *file, int line)
 
void Expect (bool condition, const char *file, int line, const std::string &msg)
 
void Expect (bool condition, const char *file, int line)
 
GTEST_API_ bool LogIsVisible (LogSeverity severity)
 
GTEST_API_ void Log (LogSeverity severity, const std::string &message, int stack_frames_to_skip)
 
GTEST_API_ WithoutMatchers GetWithoutMatchers ()
 
template<typename T >
Invalid ()
 
GTEST_API_ void IllegalDoDefault (const char *file, int line)
 
template<typename F , typename Tuple , size_t... Idx>
auto ApplyImpl (F &&f, Tuple &&args, IndexSequence< Idx... >) -> decltype(std::forward< F >(f)(std::get< Idx >(std::forward< Tuple >(args))...))
 
template<typename F , typename Tuple >
auto Apply (F &&f, Tuple &&args) -> decltype(ApplyImpl(std::forward< F >(f), std::forward< Tuple >(args), MakeIndexSequence< std::tuple_size< typename std::remove_reference< Tuple >::type >::value >()))
 
bool Base64Unescape (const std::string &encoded, std::string *decoded)
 
static GTEST_DEFINE_STATIC_MUTEX_ (g_log_mutex)
 
constexpr char UnBase64Impl (char c, const char *const base64, char carry)
 
template<size_t... I>
constexpr std::array< char, 256 > UnBase64Impl (IndexSequence< I... >, const char *const base64)
 
constexpr std::array< char, 256 > UnBase64 (const char *const base64)
 
GTEST_API_ std::string FormatMatcherDescription (bool negation, const char *matcher_name, const std::vector< const char * > &param_names, const Strings &param_values)
 
GTEST_API_ ElementMatcherPairs FindMaxBipartiteMatching (const MatchMatrix &g)
 
static void LogElementMatcherPairVec (const ElementMatcherPairs &pairs, ::std::ostream *stream)
 
GTEST_API_ GTEST_DEFINE_STATIC_MUTEX_ (g_gmock_mutex)
 
GTEST_API_ void LogWithLocation (testing::internal::LogSeverity severity, const char *file, int line, const std::string &message)
 
void ReportUninterestingCall (CallReaction reaction, const std::string &msg)
 
CallReaction intToCallReaction (int mock_behavior)
 
static const char * ParseGoogleMockFlagValue (const char *str, const char *flag_name, bool def_optional)
 
static bool ParseGoogleMockFlag (const char *str, const char *flag_name, bool *value)
 
template<typename String >
static bool ParseGoogleMockFlag (const char *str, const char *flag_name, String *value)
 
static bool ParseGoogleMockFlag (const char *str, const char *flag_name, int32_t *value)
 
template<typename CharType >
void InitGoogleMockImpl (int *argc, CharType **argv)
 
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 ParseFlag (const char *str, const char *flag, int32_t *value)
 
int GetRandomSeedFromFlag (int32_t random_seed_flag)
 
int GetNextRandomSeed (int seed)
 
GTEST_API_ std::string CodePointToUtf8 (uint32_t 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_t Int32FromEnvOrDie (const char *env_var, int32_t 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 >
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 ()
 
UnitTestImplGetUnitTestImpl ()
 
GTEST_API_ void ParseGoogleTestFlagsOnly (int *argc, char **argv)
 
GTEST_API_ void ParseGoogleTestFlagsOnly (int *argc, wchar_t **argv)
 
size_t GetThreadCount ()
 
GTEST_API_::std::string FormatFileLocation (const char *file, int line)
 
GTEST_API_::std::string FormatCompilerIndependentFileLocation (const char *file, int line)
 
size_t GetFileSize (FILE *file)
 
std::string ReadEntireFile (FILE *file)
 
static std::string FlagToEnvVar (const char *flag)
 
bool ParseInt32 (const Message &src_text, const char *str, int32_t *value)
 
bool BoolFromGTestEnv (const char *flag, bool default_value)
 
int32_t Int32FromGTestEnv (const char *flag, int32_t default_value)
 
std::string OutputFlagAlsoCheckEnvVar ()
 
const char * StringFromGTestEnv (const char *flag, const char *default_value)
 
void PrintBytesInObjectTo (const unsigned char *obj_bytes, size_t count, ostream *os)
 
bool IsPrintableAscii (char32_t c)
 
template<typename Char >
static CharFormat PrintAsCharLiteralTo (Char c, ostream *os)
 
static CharFormat PrintAsStringLiteralTo (char32_t c, ostream *os)
 
static const char * GetCharWidthPrefix (char)
 
static const char * GetCharWidthPrefix (signed char)
 
static const char * GetCharWidthPrefix (unsigned char)
 
static const char * GetCharWidthPrefix (char16_t)
 
static const char * GetCharWidthPrefix (char32_t)
 
static const char * GetCharWidthPrefix (wchar_t)
 
static CharFormat PrintAsStringLiteralTo (char c, ostream *os)
 
static CharFormat PrintAsStringLiteralTo (char16_t c, ostream *os)
 
static CharFormat PrintAsStringLiteralTo (wchar_t c, ostream *os)
 
template<typename Char >
void PrintCharAndCodeTo (Char c, ostream *os)
 
void PrintTo (unsigned char c, ::std::ostream *os)
 
void PrintTo (signed char c, ::std::ostream *os)
 
void PrintTo (wchar_t wc, ostream *os)
 
void PrintTo (char32_t c, ::std::ostream *os)
 
template<typename CharType >
GTEST_ATTRIBUTE_NO_SANITIZE_MEMORY_ GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_ GTEST_ATTRIBUTE_NO_SANITIZE_HWADDRESS_ static GTEST_ATTRIBUTE_NO_SANITIZE_THREAD_ CharFormat PrintCharsAsStringTo (const CharType *begin, size_t len, ostream *os)
 
template<typename CharType >
GTEST_ATTRIBUTE_NO_SANITIZE_MEMORY_ GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_ GTEST_ATTRIBUTE_NO_SANITIZE_HWADDRESS_ 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 char16_t *begin, size_t len, ostream *os)
 
void UniversalPrintArray (const char32_t *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 char16_t *s, ostream *os)
 
void PrintTo (const char32_t *s, ostream *os)
 
void PrintTo (const wchar_t *s, ostream *os)
 
void PrintStringTo (const ::std::string &s, ostream *os)
 
void PrintU16StringTo (const ::std::u16string &s, ostream *os)
 
void PrintU32StringTo (const ::std::u32string &s, ostream *os)
 
static const char * SkipSpaces (const char *str)
 
static std::vector< std::string > SplitIntoTestNames (const char *src)
 
static FILE * OpenFileForWriting (const std::string &output_file)
 
static bool GTestIsInitialized ()
 
static int SumOverTestSuiteList (const std::vector< TestSuite * > &case_list, int(TestSuite::*method)() const)
 
static bool TestSuitePassed (const TestSuite *test_suite)
 
static bool TestSuiteFailed (const TestSuite *test_suite)
 
static bool ShouldRunTestSuite (const TestSuite *test_suite)
 
std::set< std::string > * GetIgnoredParameterizedTestSuites ()
 
void InsertSyntheticTestCase (const std::string &name, CodeLocation location, bool has_test_p)
 
void RegisterTypeParameterizedTestSuite (const char *test_suite_name, CodeLocation code_location)
 
void RegisterTypeParameterizedTestSuiteInstantiation (const char *case_name)
 
::std::vector< std::string > GetArgvs ()
 
static bool PatternMatchesString (const std::string &name_str, const char *pattern, const char *pattern_end)
 
TypeId GetTestTypeId ()
 
static AssertionResult HasOneFailure (const char *, const char *, const char *, const TestPartResultArray &results, TestPartResult::Type type, const std::string &substr)
 
void SplitString (const ::std::string &str, char delimiter, ::std::vector< ::std::string > *dest)
 
AssertionResult EqFailure (const char *lhs_expression, const char *rhs_expression, const std::string &lhs_value, const std::string &rhs_value, bool ignoring_case)
 
std::string GetBoolAssertionFailureMessage (const AssertionResult &assertion_result, const char *expression_text, const char *actual_predicate_value, const char *expected_predicate_value)
 
AssertionResult DoubleNearPredFormat (const char *expr1, const char *expr2, const char *abs_error_expr, double val1, double val2, double abs_error)
 
template<typename RawType >
AssertionResult FloatingPointLE (const char *expr1, const char *expr2, RawType val1, RawType val2)
 
AssertionResult CmpHelperSTREQ (const char *lhs_expression, const char *rhs_expression, const char *lhs, const char *rhs)
 
AssertionResult CmpHelperSTRCASEEQ (const char *lhs_expression, const char *rhs_expression, const char *lhs, const char *rhs)
 
AssertionResult CmpHelperSTRNE (const char *s1_expression, const char *s2_expression, const char *s1, const char *s2)
 
AssertionResult CmpHelperSTRCASENE (const char *s1_expression, const char *s2_expression, const char *s1, const char *s2)
 
uint32_t ChopLowBits (uint32_t *bits, int n)
 
bool IsUtf16SurrogatePair (wchar_t first, wchar_t second)
 
uint32_t CreateCodePointFromUtf16SurrogatePair (wchar_t first, wchar_t second)
 
AssertionResult CmpHelperSTREQ (const char *lhs_expression, const char *rhs_expression, const wchar_t *lhs, const wchar_t *rhs)
 
AssertionResult CmpHelperSTRNE (const char *s1_expression, const char *s2_expression, const wchar_t *s1, const wchar_t *s2)
 
std::string StringStreamToString (::std::stringstream *ss)
 
std::string AppendUserMessage (const std::string &gtest_msg, const Message &user_msg)
 
void ReportFailureInUnknownLocation (TestPartResult::Type result_type, const std::string &message)
 
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)
 
TestInfo * MakeAndRegisterTestInfo (const char *test_suite_name, const char *name, const char *type_param, const char *value_param, CodeLocation code_location, TypeId fixture_class_id, SetUpTestSuiteFunc set_up_tc, TearDownTestSuiteFunc tear_down_tc, TestFactoryBase *factory)
 
void ReportInvalidTestSuiteType (const char *test_suite_name, CodeLocation code_location)
 
static std::string PrintTestPartResultToString (const TestPartResult &test_part_result)
 
static void PrintTestPartResult (const TestPartResult &test_part_result)
 
static const char * GetAnsiColorCode (GTestColor color)
 
static void ColoredPrintf (GTestColor color, const char *fmt,...)
 
static void PrintFullTestCommentIfPresent (const TestInfo &test_info)
 
static bool PortableLocaltime (time_t seconds, struct tm *out)
 
static std::string FormatTimeInMillisAsDuration (TimeInMillis ms)
 
static std::string FormatEpochTimeInMillisAsRFC3339 (TimeInMillis ms)
 
static std::string Indent (size_t width)
 
static void SetUpEnvironment (Environment *env)
 
static void TearDownEnvironment (Environment *env)
 
static void PrintOnOneLine (const char *str, int max_length)
 
GTEST_NO_INLINE_ GTEST_NO_TAIL_CALL_ std::string GetCurrentOsStackTraceExceptTop (UnitTest *, int skip_count)
 
bool IsTrue (bool condition)
 
bool AlwaysTrue ()
 
bool SkipPrefix (const char *prefix, const char **pstr)
 
static const char * ParseFlagValue (const char *str, const char *flag_name, bool def_optional)
 
static bool ParseFlag (const char *str, const char *flag_name, bool *value)
 
template<typename String >
static bool ParseFlag (const char *str, const char *flag_name, String *value)
 
static bool HasGoogleTestFlagPrefix (const char *str)
 
static void PrintColorEncoded (const char *str)
 
static bool ParseGoogleTestFlag (const char *const arg)
 
template<typename CharType >
void ParseGoogleTestFlagsOnlyImpl (int *argc, CharType **argv)
 
template<typename CharType >
void InitGoogleTestImpl (int *argc, CharType **argv)
 

Variables

const char kInfoVerbosity [] = "info"
 
const char kWarningVerbosity [] = "warning"
 
const char kErrorVerbosity [] = "error"
 
static constexpr char kBase64 []
 
static constexpr std::array< char, 256 > kUnBase64 = UnBase64(kBase64)
 
GTEST_API_ ThreadLocal< Sequence * > g_gmock_implicit_sequence
 
const char kPathSeparator = '/'
 
const char kCurrentDirectoryString [] = "./"
 
GTEST_API_ const TypeId kTestTypeIdInGoogleTest = GetTestTypeId()
 
const int kMaxRandomSeed = 99999
 
GTEST_API_ bool g_help_flag = false
 
class testing::internal::GTestFlagSaver GTEST_ATTRIBUTE_UNUSED_
 
const char kUnknownFile [] = "unknown file"
 
const char kStackTraceMarker [] = "\nStack trace:\n"
 
static ::std::vector< std::string > g_argvs
 
constexpr uint32_t kMaxCodePoint1 = (static_cast<uint32_t>(1) << 7) - 1
 
constexpr uint32_t kMaxCodePoint2 = (static_cast<uint32_t>(1) << (5 + 6)) - 1
 
constexpr uint32_t kMaxCodePoint3
 
constexpr uint32_t kMaxCodePoint4
 
static const char kTypeParamLabel [] = "TypeParam"
 
static const char kValueParamLabel [] = "GetParam()"
 
static const char kColorEncodedHelpMessage []
 

Typedef Documentation

◆ call_result_t

template<typename F , typename... Args>
using testing::internal::call_result_t = decltype(std::declval<F>()(std::declval<Args>()...))

Definition at line 352 of file gmock-actions.h.

◆ identity_t

template<typename T >
using testing::internal::identity_t = T

Definition at line 50 of file gmock-function-mocker.h.

◆ is_callable_r

template<typename R , typename F , typename... Args>
using testing::internal::is_callable_r = is_callable_r_impl<void, R, F, Args...>

Definition at line 370 of file gmock-actions.h.

◆ LosslessArithmeticConvertible

template<typename From , typename To >
using testing::internal::LosslessArithmeticConvertible
Initial value:
GMOCK_KIND_OF_(To), To>
#define GMOCK_KIND_OF_(type)
std::integral_constant< bool,(kFromKind==kBool) ? true :(kFromKind !=kToKind) ? false :(kFromKind==kInteger &&(((sizeof(From)< sizeof(To)) && !(std::is_signed< From >::value &&!std::is_signed< To >::value))||((sizeof(From)==sizeof(To)) &&(std::is_signed< From >::value==std::is_signed< To >::value)))) ? true :(kFromKind==kFloatingPoint &&(sizeof(From)<=sizeof(To))) ? true :false > LosslessArithmeticConvertibleImpl

Definition at line 202 of file gmock-internal-utils.h.

◆ LosslessArithmeticConvertibleImpl

template<TypeKind kFromKind, typename From , TypeKind kToKind, typename To >
using testing::internal::LosslessArithmeticConvertibleImpl
Initial value:
std::integral_constant<
bool,
(kFromKind == kBool) ? true
: (kFromKind != kToKind) ? false
: (kFromKind == kInteger &&
(((sizeof(From) < sizeof(To)) &&
!(std::is_signed<From>::value && !std::is_signed<To>::value)) ||
((sizeof(From) == sizeof(To)) &&
(std::is_signed<From>::value == std::is_signed<To>::value)))
) ? true
: (kFromKind == kFloatingPoint && (sizeof(From) <= sizeof(To))) ? true
: false
>

Definition at line 169 of file gmock-internal-utils.h.

◆ void_t

template<typename... >
using testing::internal::void_t = void

Definition at line 299 of file gmock-actions.h.

Enumeration Type Documentation

◆ CharFormat

Enumerator
kAsIs 
kHexEscape 
kSpecialEscape 

Definition at line 138 of file gtest-printers.cc.

◆ LogSeverity

Enumerator
kInfo 
kWarning 

Definition at line 253 of file gmock-internal-utils.h.

◆ TypeKind

Enumerator
kBool 
kInteger 
kFloatingPoint 
kOther 

Definition at line 113 of file gmock-internal-utils.h.

Function Documentation

◆ AlwaysTrue()

bool testing::internal::AlwaysTrue ( )

Definition at line 6262 of file gtest.cc.

◆ AppendUserMessage()

std::string testing::internal::AppendUserMessage ( const std::string & gtest_msg,
const Message & user_msg )

Definition at line 2193 of file gtest.cc.

◆ Apply()

template<typename F , typename Tuple >
auto testing::internal::Apply ( F && f,
Tuple && args ) -> decltype(ApplyImpl( std::forward<F>(f), std::forward<Tuple>(args), MakeIndexSequence<std::tuple_size< typename std::remove_reference<Tuple>::type>::value>()))

Definition at line 427 of file gmock-internal-utils.h.

◆ ApplyImpl()

template<typename F , typename Tuple , size_t... Idx>
auto testing::internal::ApplyImpl ( F && f,
Tuple && args,
IndexSequence< Idx... >  ) -> decltype(std::forward<F>(f)( std::get<Idx>(std::forward<Tuple>(args))...))

Definition at line 419 of file gmock-internal-utils.h.

◆ as_const()

template<typename T >
std::add_const< T >::type & testing::internal::as_const ( T & t)

Definition at line 374 of file gmock-actions.h.

◆ Assert() [1/2]

void testing::internal::Assert ( bool condition,
const char * file,
int line )
inline

Definition at line 235 of file gmock-internal-utils.h.

◆ Assert() [2/2]

void testing::internal::Assert ( bool condition,
const char * file,
int line,
const std::string & msg )
inline

Definition at line 228 of file gmock-internal-utils.h.

◆ Base64Unescape()

bool testing::internal::Base64Unescape ( const std::string & encoded,
std::string * decoded )

Definition at line 221 of file gmock-internal-utils.cc.

◆ BoolFromGTestEnv()

bool testing::internal::BoolFromGTestEnv ( const char * flag,
bool default_value )

Definition at line 1326 of file gtest-port.cc.

◆ ChopLowBits()

uint32_t testing::internal::ChopLowBits ( uint32_t * bits,
int n )
inline

Definition at line 1935 of file gtest.cc.

◆ CmpHelperSTRCASEEQ()

AssertionResult testing::internal::CmpHelperSTRCASEEQ ( const char * lhs_expression,
const char * rhs_expression,
const char * lhs,
const char * rhs )

Definition at line 1699 of file gtest.cc.

◆ CmpHelperSTRCASENE()

AssertionResult testing::internal::CmpHelperSTRCASENE ( const char * s1_expression,
const char * s2_expression,
const char * s1,
const char * s2 )

Definition at line 1724 of file gtest.cc.

◆ CmpHelperSTREQ() [1/2]

AssertionResult testing::internal::CmpHelperSTREQ ( const char * lhs_expression,
const char * rhs_expression,
const char * lhs,
const char * rhs )

Definition at line 1687 of file gtest.cc.

◆ CmpHelperSTREQ() [2/2]

AssertionResult testing::internal::CmpHelperSTREQ ( const char * lhs_expression,
const char * rhs_expression,
const wchar_t * lhs,
const wchar_t * rhs )

Definition at line 2059 of file gtest.cc.

◆ CmpHelperSTRNE() [1/2]

AssertionResult testing::internal::CmpHelperSTRNE ( const char * s1_expression,
const char * s2_expression,
const char * s1,
const char * s2 )

Definition at line 1711 of file gtest.cc.

◆ CmpHelperSTRNE() [2/2]

AssertionResult testing::internal::CmpHelperSTRNE ( const char * s1_expression,
const char * s2_expression,
const wchar_t * s1,
const wchar_t * s2 )

Definition at line 2071 of file gtest.cc.

◆ CodePointToUtf8()

std::string testing::internal::CodePointToUtf8 ( uint32_t code_point)

Definition at line 1947 of file gtest.cc.

◆ ColoredPrintf()

static void testing::internal::ColoredPrintf ( GTestColor color,
const char * fmt,
... )
static

Definition at line 3277 of file gtest.cc.

◆ ConvertIdentifierNameToWords()

GTEST_API_ std::string testing::internal::ConvertIdentifierNameToWords ( const char * id_name)

Definition at line 79 of file gmock-internal-utils.cc.

◆ CountIf()

template<class Container , typename Predicate >
int testing::internal::CountIf ( const Container & c,
Predicate predicate )
inline

Definition at line 273 of file gtest-internal-inl.h.

◆ CreateCodePointFromUtf16SurrogatePair()

uint32_t testing::internal::CreateCodePointFromUtf16SurrogatePair ( wchar_t first,
wchar_t second )
inline

Definition at line 1988 of file gtest.cc.

◆ Delete()

template<typename T >
static void testing::internal::Delete ( T * x)
static

Definition at line 333 of file gtest-internal-inl.h.

◆ DoubleNearPredFormat()

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 1596 of file gtest.cc.

◆ EndsWith()

template<int N, int M>
constexpr bool testing::internal::EndsWith ( const char(&) suffix[N],
const char(&) str[M] )
constexpr

Definition at line 78 of file gmock-function-mocker.h.

◆ EqFailure()

AssertionResult testing::internal::EqFailure ( const char * lhs_expression,
const char * rhs_expression,
const std::string & lhs_value,
const std::string & rhs_value,
bool ignoring_case )

Definition at line 1551 of file gtest.cc.

◆ Equals()

template<int N, int M>
constexpr bool testing::internal::Equals ( const char(&) a[N],
const char(&) b[M] )
constexpr

Definition at line 83 of file gmock-function-mocker.h.

◆ Expect() [1/2]

void testing::internal::Expect ( bool condition,
const char * file,
int line )
inline

Definition at line 248 of file gmock-internal-utils.h.

◆ Expect() [2/2]

void testing::internal::Expect ( bool condition,
const char * file,
int line,
const std::string & msg )
inline

Definition at line 241 of file gmock-internal-utils.h.

◆ FindMaxBipartiteMatching()

GTEST_API_ ElementMatcherPairs testing::internal::FindMaxBipartiteMatching ( const MatchMatrix & g)

Definition at line 228 of file gmock-matchers.cc.

◆ FlagToEnvVar()

static std::string testing::internal::FlagToEnvVar ( const char * flag)
static

Definition at line 1269 of file gtest-port.cc.

◆ FloatingPointLE()

template<typename RawType >
AssertionResult testing::internal::FloatingPointLE ( const char * expr1,
const char * expr2,
RawType val1,
RawType val2 )

Definition at line 1637 of file gtest.cc.

◆ ForEach()

template<class Container , typename Functor >
void testing::internal::ForEach ( const Container & c,
Functor functor )

Definition at line 285 of file gtest-internal-inl.h.

◆ FormatCompilerIndependentFileLocation()

GTEST_API_::std::string testing::internal::FormatCompilerIndependentFileLocation ( const char * file,
int line )

Definition at line 997 of file gtest-port.cc.

◆ FormatEpochTimeInMillisAsIso8601()

std::string testing::internal::FormatEpochTimeInMillisAsIso8601 ( TimeInMillis ms)

Definition at line 4121 of file gtest.cc.

◆ FormatEpochTimeInMillisAsRFC3339()

static std::string testing::internal::FormatEpochTimeInMillisAsRFC3339 ( TimeInMillis ms)
static

Definition at line 4566 of file gtest.cc.

◆ FormatFileLocation()

GTEST_API_::std::string testing::internal::FormatFileLocation ( const char * file,
int line )

Definition at line 979 of file gtest-port.cc.

◆ FormatMatcherDescription()

GTEST_API_ std::string testing::internal::FormatMatcherDescription ( bool negation,
const char * matcher_name,
const std::vector< const char * > & param_names,
const Strings & param_values )

Definition at line 52 of file gmock-matchers.cc.

◆ FormatTimeInMillisAsDuration()

static std::string testing::internal::FormatTimeInMillisAsDuration ( TimeInMillis ms)
static

Definition at line 4558 of file gtest.cc.

◆ FormatTimeInMillisAsSeconds()

std::string testing::internal::FormatTimeInMillisAsSeconds ( TimeInMillis ms)

Definition at line 4094 of file gtest.cc.

◆ GetAnsiColorCode()

static const char * testing::internal::GetAnsiColorCode ( GTestColor color)
static

Definition at line 3218 of file gtest.cc.

◆ GetArgvs()

::std::vector< std::string > testing::internal::GetArgvs ( )

Definition at line 602 of file gtest.cc.

◆ GetBoolAssertionFailureMessage()

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 1583 of file gtest.cc.

◆ GetCharWidthPrefix() [1/6]

static const char * testing::internal::GetCharWidthPrefix ( char )
static

Definition at line 211 of file gtest-printers.cc.

◆ GetCharWidthPrefix() [2/6]

static const char * testing::internal::GetCharWidthPrefix ( char16_t )
static

Definition at line 221 of file gtest-printers.cc.

◆ GetCharWidthPrefix() [3/6]

static const char * testing::internal::GetCharWidthPrefix ( char32_t )
static

Definition at line 223 of file gtest-printers.cc.

◆ GetCharWidthPrefix() [4/6]

static const char * testing::internal::GetCharWidthPrefix ( signed char )
static

Definition at line 213 of file gtest-printers.cc.

◆ GetCharWidthPrefix() [5/6]

static const char * testing::internal::GetCharWidthPrefix ( unsigned char )
static

Definition at line 215 of file gtest-printers.cc.

◆ GetCharWidthPrefix() [6/6]

static const char * testing::internal::GetCharWidthPrefix ( wchar_t )
static

Definition at line 225 of file gtest-printers.cc.

◆ GetCurrentExecutableName()

FilePath testing::internal::GetCurrentExecutableName ( )

Definition at line 615 of file gtest.cc.

◆ GetCurrentOsStackTraceExceptTop()

GTEST_NO_INLINE_ GTEST_NO_TAIL_CALL_ std::string testing::internal::GetCurrentOsStackTraceExceptTop ( UnitTest * ,
int skip_count )

Definition at line 6248 of file gtest.cc.

◆ GetElementOr()

template<typename E >
E testing::internal::GetElementOr ( const std::vector< E > & v,
int i,
E default_value )
inline

Definition at line 292 of file gtest-internal-inl.h.

◆ GetFailureReporter()

GTEST_API_ FailureReporterInterface * testing::internal::GetFailureReporter ( )

Definition at line 115 of file gmock-internal-utils.cc.

◆ GetFileSize()

size_t testing::internal::GetFileSize ( FILE * file)

Definition at line 1202 of file gtest-port.cc.

◆ GetIgnoredParameterizedTestSuites()

std::set< std::string > * testing::internal::GetIgnoredParameterizedTestSuites ( )

Definition at line 480 of file gtest.cc.

◆ GetNextRandomSeed()

int testing::internal::GetNextRandomSeed ( int seed)
inline

Definition at line 128 of file gtest-internal-inl.h.

◆ GetRandomSeedFromFlag()

int testing::internal::GetRandomSeedFromFlag ( int32_t random_seed_flag)
inline

Definition at line 111 of file gtest-internal-inl.h.

◆ GetRawPointer() [1/3]

template<typename Pointer >
const Pointer::element_type * testing::internal::GetRawPointer ( const Pointer & p)
inline

Definition at line 82 of file gmock-internal-utils.h.

◆ GetRawPointer() [2/3]

template<typename Element >
const Element * testing::internal::GetRawPointer ( const std::reference_wrapper< Element > & r)
inline

Definition at line 88 of file gmock-internal-utils.h.

◆ GetRawPointer() [3/3]

template<typename Element >
Element * testing::internal::GetRawPointer ( Element * p)
inline

Definition at line 94 of file gmock-internal-utils.h.

◆ GetTestTypeId()

TypeId testing::internal::GetTestTypeId ( )

Definition at line 927 of file gtest.cc.

◆ GetThreadCount()

size_t testing::internal::GetThreadCount ( )

Definition at line 259 of file gtest-port.cc.

◆ GetTimeInMillis()

TimeInMillis testing::internal::GetTimeInMillis ( )

Definition at line 1132 of file gtest.cc.

◆ GetUnitTestImpl()

UnitTestImpl * testing::internal::GetUnitTestImpl ( )
inline

Definition at line 960 of file gtest-internal-inl.h.

◆ GetWithoutMatchers()

GTEST_API_ WithoutMatchers testing::internal::GetWithoutMatchers ( )

Definition at line 189 of file gmock-internal-utils.cc.

◆ GMOCK_DECLARE_KIND_() [1/15]

testing::internal::GMOCK_DECLARE_KIND_ ( bool ,
kBool  )

◆ GMOCK_DECLARE_KIND_() [2/15]

testing::internal::GMOCK_DECLARE_KIND_ ( char ,
kInteger  )

◆ GMOCK_DECLARE_KIND_() [3/15]

testing::internal::GMOCK_DECLARE_KIND_ ( double ,
kFloatingPoint  )

◆ GMOCK_DECLARE_KIND_() [4/15]

testing::internal::GMOCK_DECLARE_KIND_ ( float ,
kFloatingPoint  )

◆ GMOCK_DECLARE_KIND_() [5/15]

testing::internal::GMOCK_DECLARE_KIND_ ( int ,
kInteger  )

◆ GMOCK_DECLARE_KIND_() [6/15]

testing::internal::GMOCK_DECLARE_KIND_ ( long double ,
kFloatingPoint  )

◆ GMOCK_DECLARE_KIND_() [7/15]

testing::internal::GMOCK_DECLARE_KIND_ ( long long ,
kInteger  )

◆ GMOCK_DECLARE_KIND_() [8/15]

testing::internal::GMOCK_DECLARE_KIND_ ( long ,
kInteger  )

◆ GMOCK_DECLARE_KIND_() [9/15]

testing::internal::GMOCK_DECLARE_KIND_ ( short ,
kInteger  )

◆ GMOCK_DECLARE_KIND_() [10/15]

testing::internal::GMOCK_DECLARE_KIND_ ( signed char ,
kInteger  )

◆ GMOCK_DECLARE_KIND_() [11/15]

testing::internal::GMOCK_DECLARE_KIND_ ( unsigned char ,
kInteger  )

◆ GMOCK_DECLARE_KIND_() [12/15]

testing::internal::GMOCK_DECLARE_KIND_ ( unsigned int ,
kInteger  )

◆ GMOCK_DECLARE_KIND_() [13/15]

testing::internal::GMOCK_DECLARE_KIND_ ( unsigned long long ,
kInteger  )

◆ GMOCK_DECLARE_KIND_() [14/15]

testing::internal::GMOCK_DECLARE_KIND_ ( unsigned long ,
kInteger  )

◆ GMOCK_DECLARE_KIND_() [15/15]

testing::internal::GMOCK_DECLARE_KIND_ ( unsigned short ,
kInteger  )

◆ GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_() [1/16]

testing::internal::GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ ( ::std::string ,
""  )

◆ GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_() [2/16]

testing::internal::GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ ( bool ,
false  )

◆ GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_() [3/16]

testing::internal::GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ ( char ,
'\0'  )

◆ GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_() [4/16]

testing::internal::GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ ( double ,
0  )

◆ GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_() [5/16]

testing::internal::GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ ( float ,
0  )

◆ GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_() [6/16]

testing::internal::GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ ( signed char ,
'\0'  )

◆ GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_() [7/16]

testing::internal::GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ ( signed int ,
0  )

◆ GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_() [8/16]

testing::internal::GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ ( signed long long ,
0  )

◆ GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_() [9/16]

testing::internal::GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ ( signed long ,
0L  )

◆ GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_() [10/16]

testing::internal::GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ ( signed short ,
0  )

◆ GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_() [11/16]

testing::internal::GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ ( unsigned char ,
'\0'  )

◆ GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_() [12/16]

testing::internal::GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ ( unsigned int ,
0U  )

◆ GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_() [13/16]

testing::internal::GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ ( unsigned long long ,
0  )

◆ GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_() [14/16]

testing::internal::GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ ( unsigned long ,
0UL  )

◆ GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_() [15/16]

testing::internal::GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ ( unsigned short ,
0U  )

◆ GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_() [16/16]

testing::internal::GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ ( void )

◆ GTEST_DEFINE_STATIC_MUTEX_() [1/2]

GTEST_API_ testing::internal::GTEST_DEFINE_STATIC_MUTEX_ ( g_gmock_mutex )

◆ GTEST_DEFINE_STATIC_MUTEX_() [2/2]

static testing::internal::GTEST_DEFINE_STATIC_MUTEX_ ( g_log_mutex )
static

◆ GTestIsInitialized()

static bool testing::internal::GTestIsInitialized ( )
static

Definition at line 397 of file gtest.cc.

◆ HandleExceptionsInMethodIfSupported()

template<class T , typename Result >
Result testing::internal::HandleExceptionsInMethodIfSupported ( T * object,
Result(T::*)() method,
const char * location )

Definition at line 2607 of file gtest.cc.

◆ HandleSehExceptionsInMethodIfSupported()

template<class T , typename Result >
Result testing::internal::HandleSehExceptionsInMethodIfSupported ( T * object,
Result(T::*)() method,
const char * location )

Definition at line 2580 of file gtest.cc.

◆ HasGoogleTestFlagPrefix()

static bool testing::internal::HasGoogleTestFlagPrefix ( const char * str)
static

Definition at line 6377 of file gtest.cc.

◆ HasOneFailure()

static AssertionResult testing::internal::HasOneFailure ( const char * ,
const char * ,
const char * ,
const TestPartResultArray & results,
TestPartResult::Type type,
const std::string & substr )
static

Definition at line 936 of file gtest.cc.

◆ HasStrictnessModifier()

template<typename T >
constexpr bool testing::internal::HasStrictnessModifier ( )
constexpr

Definition at line 90 of file gmock-nice-strict.h.

◆ IllegalDoDefault()

GTEST_API_ void testing::internal::IllegalDoDefault ( const char * file,
int line )

Definition at line 191 of file gmock-internal-utils.cc.

◆ Indent()

static std::string testing::internal::Indent ( size_t width)
inlinestatic

Definition at line 4579 of file gtest.cc.

◆ InitGoogleMockImpl()

template<typename CharType >
void testing::internal::InitGoogleMockImpl ( int * argc,
CharType ** argv )

Definition at line 143 of file gmock.cc.

◆ InitGoogleTestImpl()

template<typename CharType >
void testing::internal::InitGoogleTestImpl ( int * argc,
CharType ** argv )

Definition at line 6674 of file gtest.cc.

◆ InsertSyntheticTestCase()

void testing::internal::InsertSyntheticTestCase ( const std::string & name,
CodeLocation location,
bool has_test_p )

Definition at line 491 of file gtest.cc.

◆ Int32FromEnvOrDie()

int32_t testing::internal::Int32FromEnvOrDie ( const char * env_var,
int32_t default_val )

Definition at line 6013 of file gtest.cc.

◆ Int32FromGTestEnv()

int32_t testing::internal::Int32FromGTestEnv ( const char * flag,
int32_t default_value )

Definition at line 1340 of file gtest-port.cc.

◆ intToCallReaction()

CallReaction testing::internal::intToCallReaction ( int mock_behavior)

Definition at line 438 of file gmock-spec-builders.cc.

◆ Invalid()

template<typename T >
T testing::internal::Invalid ( )
inline

Definition at line 306 of file gmock-internal-utils.h.

◆ InvokeArgument()

template<typename F , typename... Args>
auto testing::internal::InvokeArgument ( F f,
Args... args ) -> decltype(f(args...))

Definition at line 597 of file gmock-more-actions.h.

◆ IsPathSeparator()

static bool testing::internal::IsPathSeparator ( char c)
static

Definition at line 87 of file gtest-filepath.cc.

◆ IsPrintableAscii()

bool testing::internal::IsPrintableAscii ( char32_t c)
inline

Definition at line 143 of file gtest-printers.cc.

◆ IsTrue()

bool testing::internal::IsTrue ( bool condition)

Definition at line 6260 of file gtest.cc.

◆ IsUtf16SurrogatePair()

bool testing::internal::IsUtf16SurrogatePair ( wchar_t first,
wchar_t second )
inline

Definition at line 1982 of file gtest.cc.

◆ JoinAsKeyValueTuple()

GTEST_API_ std::string testing::internal::JoinAsKeyValueTuple ( const std::vector< const char * > & names,
const Strings & values )

Definition at line 57 of file gmock-internal-utils.cc.

◆ Log()

GTEST_API_ void testing::internal::Log ( LogSeverity severity,
const std::string & message,
int stack_frames_to_skip )

Definition at line 152 of file gmock-internal-utils.cc.

◆ LogElementMatcherPairVec()

static void testing::internal::LogElementMatcherPairVec ( const ElementMatcherPairs & pairs,
::std::ostream * stream )
static

Definition at line 232 of file gmock-matchers.cc.

◆ LogIsVisible()

GTEST_API_ bool testing::internal::LogIsVisible ( LogSeverity severity)

Definition at line 131 of file gmock-internal-utils.cc.

◆ LogWithLocation()

GTEST_API_ void testing::internal::LogWithLocation ( testing::internal::LogSeverity severity,
const char * file,
int line,
const std::string & message )

Definition at line 72 of file gmock-spec-builders.cc.

◆ MakeAction() [1/2]

template<typename F , typename Impl >
::testing::Action< F > testing::internal::MakeAction ( )

Definition at line 2141 of file gmock-actions.h.

◆ MakeAction() [2/2]

template<typename F , typename Impl >
::testing::Action< F > testing::internal::MakeAction ( std::shared_ptr< Impl > impl)

Definition at line 2147 of file gmock-actions.h.

◆ MakeAndRegisterTestInfo()

TestInfo * testing::internal::MakeAndRegisterTestInfo ( const char * test_suite_name,
const char * name,
const char * type_param,
const char * value_param,
CodeLocation code_location,
TypeId fixture_class_id,
SetUpTestSuiteFunc set_up_tc,
TearDownTestSuiteFunc tear_down_tc,
TestFactoryBase * factory )

Definition at line 2749 of file gtest.cc.

◆ OpenFileForWriting()

static FILE * testing::internal::OpenFileForWriting ( const std::string & output_file)
static

Definition at line 190 of file gtest.cc.

◆ OutputFlagAlsoCheckEnvVar()

std::string testing::internal::OutputFlagAlsoCheckEnvVar ( )

Definition at line 1372 of file gtest-port.cc.

◆ ParseFlag() [1/3]

bool testing::internal::ParseFlag ( const char * str,
const char * flag,
int32_t * value )

Definition at line 6342 of file gtest.cc.

◆ ParseFlag() [2/3]

static bool testing::internal::ParseFlag ( const char * str,
const char * flag_name,
bool * value )
static

Definition at line 6326 of file gtest.cc.

◆ ParseFlag() [3/3]

template<typename String >
static bool testing::internal::ParseFlag ( const char * str,
const char * flag_name,
String * value )
static

Definition at line 6359 of file gtest.cc.

◆ ParseFlagValue()

static const char * testing::internal::ParseFlagValue ( const char * str,
const char * flag_name,
bool def_optional )
static

Definition at line 6288 of file gtest.cc.

◆ ParseGoogleMockFlag() [1/3]

static bool testing::internal::ParseGoogleMockFlag ( const char * str,
const char * flag_name,
bool * value )
static

Definition at line 93 of file gmock.cc.

◆ ParseGoogleMockFlag() [2/3]

static bool testing::internal::ParseGoogleMockFlag ( const char * str,
const char * flag_name,
int32_t * value )
static

Definition at line 125 of file gmock.cc.

◆ ParseGoogleMockFlag() [3/3]

template<typename String >
static bool testing::internal::ParseGoogleMockFlag ( const char * str,
const char * flag_name,
String * value )
static

Definition at line 112 of file gmock.cc.

◆ ParseGoogleMockFlagValue()

static const char * testing::internal::ParseGoogleMockFlagValue ( const char * str,
const char * flag_name,
bool def_optional )
static

Definition at line 60 of file gmock.cc.

◆ ParseGoogleTestFlag()

static bool testing::internal::ParseGoogleTestFlag ( const char *const arg)
static

Definition at line 6524 of file gtest.cc.

◆ ParseGoogleTestFlagsOnly() [1/2]

void testing::internal::ParseGoogleTestFlagsOnly ( int * argc,
char ** argv )

Definition at line 6631 of file gtest.cc.

◆ ParseGoogleTestFlagsOnly() [2/2]

void testing::internal::ParseGoogleTestFlagsOnly ( int * argc,
wchar_t ** argv )

Definition at line 6665 of file gtest.cc.

◆ ParseGoogleTestFlagsOnlyImpl()

template<typename CharType >
void testing::internal::ParseGoogleTestFlagsOnlyImpl ( int * argc,
CharType ** argv )

Definition at line 6580 of file gtest.cc.

◆ ParseInt32()

bool testing::internal::ParseInt32 ( const Message & src_text,
const char * str,
int32_t * value )

Definition at line 1284 of file gtest-port.cc.

◆ PatternMatchesString()

static bool testing::internal::PatternMatchesString ( const std::string & name_str,
const char * pattern,
const char * pattern_end )
static

Definition at line 677 of file gtest.cc.

◆ PortableLocaltime()

static bool testing::internal::PortableLocaltime ( time_t seconds,
struct tm * out )
static

Definition at line 4100 of file gtest.cc.

◆ PrefixOf()

constexpr bool testing::internal::PrefixOf ( const char * a,
const char * b )
constexpr

Definition at line 68 of file gmock-function-mocker.h.

◆ PrintAsCharLiteralTo()

template<typename Char >
static CharFormat testing::internal::PrintAsCharLiteralTo ( Char c,
ostream * os )
static

Definition at line 149 of file gtest-printers.cc.

◆ PrintAsStringLiteralTo() [1/4]

static CharFormat testing::internal::PrintAsStringLiteralTo ( char c,
ostream * os )
static

Definition at line 229 of file gtest-printers.cc.

◆ PrintAsStringLiteralTo() [2/4]

static CharFormat testing::internal::PrintAsStringLiteralTo ( char16_t c,
ostream * os )
static

Definition at line 239 of file gtest-printers.cc.

◆ PrintAsStringLiteralTo() [3/4]

static CharFormat testing::internal::PrintAsStringLiteralTo ( char32_t c,
ostream * os )
static

Definition at line 198 of file gtest-printers.cc.

◆ PrintAsStringLiteralTo() [4/4]

static CharFormat testing::internal::PrintAsStringLiteralTo ( wchar_t c,
ostream * os )
static

Definition at line 243 of file gtest-printers.cc.

◆ PrintBytesInObjectTo()

void testing::internal::PrintBytesInObjectTo ( const unsigned char * obj_bytes,
size_t count,
ostream * os )

Definition at line 128 of file gtest-printers.cc.

◆ PrintCharAndCodeTo()

template<typename Char >
void testing::internal::PrintCharAndCodeTo ( Char c,
ostream * os )

Definition at line 251 of file gtest-printers.cc.

◆ PrintCharsAsStringTo()

template<typename CharType >
GTEST_ATTRIBUTE_NO_SANITIZE_MEMORY_ GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_ GTEST_ATTRIBUTE_NO_SANITIZE_HWADDRESS_ static GTEST_ATTRIBUTE_NO_SANITIZE_THREAD_ CharFormat testing::internal::PrintCharsAsStringTo ( const CharType * begin,
size_t len,
ostream * os )
static

Definition at line 340 of file gtest-printers.cc.

◆ PrintColorEncoded()

static void testing::internal::PrintColorEncoded ( const char * str)
static

Definition at line 6394 of file gtest.cc.

◆ PrintFullTestCommentIfPresent()

static void testing::internal::PrintFullTestCommentIfPresent ( const TestInfo & test_info)
static

Definition at line 3325 of file gtest.cc.

◆ PrintOnOneLine()

static void testing::internal::PrintOnOneLine ( const char * str,
int max_length )
static

Definition at line 6101 of file gtest.cc.

◆ PrintStringTo()

void testing::internal::PrintStringTo ( const ::std::string & s,
ostream * os )

Definition at line 523 of file gtest-printers.cc.

◆ PrintTestPartResult()

static void testing::internal::PrintTestPartResult ( const TestPartResult & test_part_result)
static

Definition at line 3148 of file gtest.cc.

◆ PrintTestPartResultToString()

static std::string testing::internal::PrintTestPartResultToString ( const TestPartResult & test_part_result)
static

Definition at line 3136 of file gtest.cc.

◆ PrintTo() [1/8]

void testing::internal::PrintTo ( char32_t c,
::std::ostream * os )

Definition at line 282 of file gtest-printers.cc.

◆ PrintTo() [2/8]

void testing::internal::PrintTo ( const char * s,
ostream * os )

Definition at line 437 of file gtest-printers.cc.

◆ PrintTo() [3/8]

void testing::internal::PrintTo ( const char16_t * s,
ostream * os )

Definition at line 443 of file gtest-printers.cc.

◆ PrintTo() [4/8]

void testing::internal::PrintTo ( const char32_t * s,
ostream * os )

Definition at line 445 of file gtest-printers.cc.

◆ PrintTo() [5/8]

void testing::internal::PrintTo ( const wchar_t * s,
ostream * os )

Definition at line 455 of file gtest-printers.cc.

◆ PrintTo() [6/8]

void testing::internal::PrintTo ( signed char c,
::std::ostream * os )

Definition at line 275 of file gtest-printers.cc.

◆ PrintTo() [7/8]

void testing::internal::PrintTo ( unsigned char c,
::std::ostream * os )

Definition at line 274 of file gtest-printers.cc.

◆ PrintTo() [8/8]

void testing::internal::PrintTo ( wchar_t wc,
ostream * os )

Definition at line 279 of file gtest-printers.cc.

◆ PrintU16StringTo()

void testing::internal::PrintU16StringTo ( const ::std::u16string & s,
ostream * os )

Definition at line 537 of file gtest-printers.cc.

◆ PrintU32StringTo()

void testing::internal::PrintU32StringTo ( const ::std::u32string & s,
ostream * os )

Definition at line 541 of file gtest-printers.cc.

◆ ReadEntireFile()

std::string testing::internal::ReadEntireFile ( FILE * file)

Definition at line 1207 of file gtest-port.cc.

◆ RegisterTypeParameterizedTestSuite()

void testing::internal::RegisterTypeParameterizedTestSuite ( const char * test_suite_name,
CodeLocation code_location )

Definition at line 535 of file gtest.cc.

◆ RegisterTypeParameterizedTestSuiteInstantiation()

void testing::internal::RegisterTypeParameterizedTestSuiteInstantiation ( const char * case_name)

Definition at line 541 of file gtest.cc.

◆ ReportFailureInUnknownLocation()

void testing::internal::ReportFailureInUnknownLocation ( TestPartResult::Type result_type,
const std::string & message )

Definition at line 2447 of file gtest.cc.

◆ ReportInvalidTestSuiteType()

void testing::internal::ReportInvalidTestSuiteType ( const char * test_suite_name,
CodeLocation code_location )

Definition at line 2761 of file gtest.cc.

◆ ReportUninterestingCall()

void testing::internal::ReportUninterestingCall ( CallReaction reaction,
const std::string & msg )

Definition at line 283 of file gmock-spec-builders.cc.

◆ SetUpEnvironment()

static void testing::internal::SetUpEnvironment ( Environment * env)
static

Definition at line 5736 of file gtest.cc.

◆ ShouldRunTestOnShard()

bool testing::internal::ShouldRunTestOnShard ( int total_shards,
int shard_index,
int test_id )

Definition at line 6031 of file gtest.cc.

◆ ShouldRunTestSuite()

static bool testing::internal::ShouldRunTestSuite ( const TestSuite * test_suite)
static

Definition at line 423 of file gtest.cc.

◆ ShouldShard()

bool testing::internal::ShouldShard ( const char * total_shards_str,
const char * shard_index_str,
bool in_subprocess_for_death_test )

Definition at line 5969 of file gtest.cc.

◆ ShouldUseColor()

bool testing::internal::ShouldUseColor ( bool stdout_is_tty)

Definition at line 3234 of file gtest.cc.

◆ Shuffle()

template<typename E >
void testing::internal::Shuffle ( internal::Random * random,
std::vector< E > * v )
inline

Definition at line 326 of file gtest-internal-inl.h.

◆ ShuffleRange()

template<typename E >
void testing::internal::ShuffleRange ( internal::Random * random,
int begin,
int end,
std::vector< E > * v )

Definition at line 302 of file gtest-internal-inl.h.

◆ SkipPrefix()

bool testing::internal::SkipPrefix ( const char * prefix,
const char ** pstr )

Definition at line 6274 of file gtest.cc.

◆ SkipSpaces()

static const char * testing::internal::SkipSpaces ( const char * str)
static

Definition at line 39 of file gtest-typed-test.cc.

◆ SplitIntoTestNames()

static std::vector< std::string > testing::internal::SplitIntoTestNames ( const char * src)
static

Definition at line 44 of file gtest-typed-test.cc.

◆ SplitString()

void testing::internal::SplitString ( const ::std::string & str,
char delimiter,
::std::vector< ::std::string > * dest )

Definition at line 1209 of file gtest.cc.

◆ StartsWith()

template<int N, int M>
constexpr bool testing::internal::StartsWith ( const char(&) prefix[N],
const char(&) str[M] )
constexpr

Definition at line 73 of file gmock-function-mocker.h.

◆ StrictnessModifierProbe() [1/4]

std::false_type testing::internal::StrictnessModifierProbe ( ...)

◆ StrictnessModifierProbe() [2/4]

template<typename T >
std::true_type testing::internal::StrictnessModifierProbe ( const NaggyMock< T > & )

◆ StrictnessModifierProbe() [3/4]

template<typename T >
std::true_type testing::internal::StrictnessModifierProbe ( const NiceMock< T > & )

◆ StrictnessModifierProbe() [4/4]

template<typename T >
std::true_type testing::internal::StrictnessModifierProbe ( const StrictMock< T > & )

◆ StringFromGTestEnv()

const char * testing::internal::StringFromGTestEnv ( const char * flag,
const char * default_value )

Definition at line 1383 of file gtest-port.cc.

◆ StringStreamToString()

std::string testing::internal::StringStreamToString ( ::std::stringstream * ss)

Definition at line 2174 of file gtest.cc.

◆ SumOverTestSuiteList()

static int testing::internal::SumOverTestSuiteList ( const std::vector< TestSuite * > & case_list,
int(TestSuite::*)() const method )
static

Definition at line 402 of file gtest.cc.

◆ TearDownEnvironment()

static void testing::internal::TearDownEnvironment ( Environment * env)
static

Definition at line 5737 of file gtest.cc.

◆ TestSuiteFailed()

static bool testing::internal::TestSuiteFailed ( const TestSuite * test_suite)
static

Definition at line 417 of file gtest.cc.

◆ TestSuitePassed()

static bool testing::internal::TestSuitePassed ( const TestSuite * test_suite)
static

Definition at line 412 of file gtest.cc.

◆ UnBase64()

constexpr std::array< char, 256 > testing::internal::UnBase64 ( const char *const base64)
constexpr

Definition at line 213 of file gmock-internal-utils.cc.

◆ UnBase64Impl() [1/2]

constexpr char testing::internal::UnBase64Impl ( char c,
const char *const base64,
char carry )
constexpr

Definition at line 201 of file gmock-internal-utils.cc.

◆ UnBase64Impl() [2/2]

template<size_t... I>
constexpr std::array< char, 256 > testing::internal::UnBase64Impl ( IndexSequence< I... > ,
const char *const base64 )
constexpr

Definition at line 208 of file gmock-internal-utils.cc.

◆ UniversalPrintArray() [1/4]

void testing::internal::UniversalPrintArray ( const char * begin,
size_t len,
ostream * os )

Definition at line 392 of file gtest-printers.cc.

◆ UniversalPrintArray() [2/4]

void testing::internal::UniversalPrintArray ( const char16_t * begin,
size_t len,
ostream * os )

Definition at line 406 of file gtest-printers.cc.

◆ UniversalPrintArray() [3/4]

void testing::internal::UniversalPrintArray ( const char32_t * begin,
size_t len,
ostream * os )

Definition at line 412 of file gtest-printers.cc.

◆ UniversalPrintArray() [4/4]

void testing::internal::UniversalPrintArray ( const wchar_t * begin,
size_t len,
ostream * os )

Definition at line 418 of file gtest-printers.cc.

◆ UniversalPrintCharArray()

template<typename CharType >
GTEST_ATTRIBUTE_NO_SANITIZE_MEMORY_ GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_ GTEST_ATTRIBUTE_NO_SANITIZE_HWADDRESS_ static GTEST_ATTRIBUTE_NO_SANITIZE_THREAD_ void testing::internal::UniversalPrintCharArray ( const CharType * begin,
size_t len,
ostream * os )
static

Definition at line 369 of file gtest-printers.cc.

◆ ValidateSpec()

template<int N>
constexpr bool testing::internal::ValidateSpec ( const char(&) spec[N])
constexpr

Definition at line 88 of file gmock-function-mocker.h.

◆ WideStringToUtf8()

std::string testing::internal::WideStringToUtf8 ( const wchar_t * str,
int num_chars )

Definition at line 2014 of file gtest.cc.

◆ WriteToShardStatusFileIfNeeded()

void testing::internal::WriteToShardStatusFileIfNeeded ( )

Definition at line 5947 of file gtest.cc.

Variable Documentation

◆ g_argvs

::std::vector<std::string> testing::internal::g_argvs

Definition at line 600 of file gtest.cc.

◆ g_gmock_implicit_sequence

GTEST_API_ ThreadLocal<Sequence*> testing::internal::g_gmock_implicit_sequence

Definition at line 279 of file gmock-spec-builders.cc.

◆ g_help_flag

bool testing::internal::g_help_flag = false

Definition at line 187 of file gtest.cc.

◆ GTEST_ATTRIBUTE_UNUSED_

class testing::internal::GTestFlagSaver testing::internal::GTEST_ATTRIBUTE_UNUSED_

◆ kBase64

constexpr char testing::internal::kBase64[]
staticconstexpr
Initial value:
=
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"

Definition at line 217 of file gmock-internal-utils.cc.

◆ kColorEncodedHelpMessage

const char testing::internal::kColorEncodedHelpMessage[]
static

Definition at line 6428 of file gtest.cc.

◆ kCurrentDirectoryString

const char testing::internal::kCurrentDirectoryString[] = "./"

Definition at line 83 of file gtest-filepath.cc.

◆ kErrorVerbosity

const char testing::internal::kErrorVerbosity[] = "error"

Definition at line 262 of file gmock-internal-utils.h.

◆ kInfoVerbosity

const char testing::internal::kInfoVerbosity[] = "info"

Definition at line 258 of file gmock-internal-utils.h.

◆ kMaxCodePoint1

constexpr uint32_t testing::internal::kMaxCodePoint1 = (static_cast<uint32_t>(1) << 7) - 1
constexpr

Definition at line 1919 of file gtest.cc.

◆ kMaxCodePoint2

constexpr uint32_t testing::internal::kMaxCodePoint2 = (static_cast<uint32_t>(1) << (5 + 6)) - 1
constexpr

Definition at line 1922 of file gtest.cc.

◆ kMaxCodePoint3

constexpr uint32_t testing::internal::kMaxCodePoint3
constexpr
Initial value:
=
(static_cast<uint32_t>(1) << (4 + 2 * 6)) - 1

Definition at line 1925 of file gtest.cc.

◆ kMaxCodePoint4

constexpr uint32_t testing::internal::kMaxCodePoint4
constexpr
Initial value:
=
(static_cast<uint32_t>(1) << (3 + 3 * 6)) - 1

Definition at line 1929 of file gtest.cc.

◆ kMaxRandomSeed

const int testing::internal::kMaxRandomSeed = 99999

Definition at line 82 of file gtest-internal-inl.h.

◆ kPathSeparator

const char testing::internal::kPathSeparator = '/'

Definition at line 82 of file gtest-filepath.cc.

◆ kStackTraceMarker

const char testing::internal::kStackTraceMarker[] = "\nStack trace:\n"

Definition at line 183 of file gtest.cc.

◆ kTestTypeIdInGoogleTest

const TypeId testing::internal::kTestTypeIdInGoogleTest = GetTestTypeId()
extern

Definition at line 931 of file gtest.cc.

◆ kTypeParamLabel

const char testing::internal::kTypeParamLabel[] = "TypeParam"
static

Definition at line 3322 of file gtest.cc.

◆ kUnBase64

constexpr std::array<char, 256> testing::internal::kUnBase64 = UnBase64(kBase64)
staticconstexpr

Definition at line 219 of file gmock-internal-utils.cc.

◆ kUnknownFile

const char testing::internal::kUnknownFile[] = "unknown file"

Definition at line 975 of file gtest-port.cc.

◆ kValueParamLabel

const char testing::internal::kValueParamLabel[] = "GetParam()"
static

Definition at line 3323 of file gtest.cc.

◆ kWarningVerbosity

const char testing::internal::kWarningVerbosity[] = "warning"

Definition at line 260 of file gmock-internal-utils.h.