Namespaces
Enumerations
enum TypeKind
| Name | Value |
|---|---|
| kBool | 0 |
| kInteger | 1 |
| kFloatingPoint | 2 |
| kOther | 3 |
In what follows, we use the term "kind" to indicate whether a type
is bool, an integer type (excluding bool), a floating-point type,
or none of them. This categorization is useful for determining
when a matcher argument type can be safely converted to another
type in the implementation of SafeMatcherCast.
Defined at line 128 of file ../../third_party/googletest/src/googlemock/include/gmock/internal/gmock-internal-utils.h
enum LogSeverity
| Name | Value |
|---|---|
| kInfo | 0 |
| kWarning | 1 |
Severity level of a log.
Defined at line 268 of file ../../third_party/googletest/src/googlemock/include/gmock/internal/gmock-internal-utils.h
enum CallReaction
| Name | Value |
|---|---|
| kAllow | 0 |
| kWarn | 1 |
| kFail | 2 |
Possible reactions on uninteresting calls.
Defined at line 355 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-spec-builders.h
enum GTestLogSeverity
| Name | Value |
|---|---|
| GTEST_INFO | 0 |
| GTEST_WARNING | 1 |
| GTEST_ERROR | 2 |
| GTEST_FATAL | 3 |
Defines logging utilities:
GTEST_LOG_(severity) - logs messages at the specified severity level. The
message itself is streamed into the macro.
LogToStderr() - directs all log messages to stderr.
FlushInfoLog() - flushes informational log messages.
Defined at line 1038 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-port.h
Records
-
class ActionImpl -
class ActionImpl -
class AddressMatcher -
class AllOfMatcherImpl -
class AnyOfMatcherImpl -
class AnythingMatcher -
class ArgsMatcher -
class ArgsMatcherImpl -
class AssertHelper -
class AssignAction -
class BeginEndDistanceIsMatcher -
class BoundSecondMatcher -
class BuiltInDefaultValue -
class BuiltInDefaultValue -
class BuiltInDefaultValue -
class BuiltInDefaultValue -
class BuiltInDefaultValue -
class BuiltInDefaultValue -
class BuiltInDefaultValue -
class BuiltInDefaultValue -
class BuiltInDefaultValue -
class BuiltInDefaultValue -
class BuiltInDefaultValue -
class BuiltInDefaultValue -
class BuiltInDefaultValue -
class BuiltInDefaultValue -
class BuiltInDefaultValue -
class BuiltInDefaultValue -
class BuiltInDefaultValue -
class BuiltInDefaultValue -
class BuiltInDefaultValue -
class BuiltInDefaultValue -
class BuiltInDefaultValueGetter -
class BuiltInDefaultValueGetter -
class ByMoveWrapper -
class CallableTraits -
class CallableTraits -
class CartesianProductGenerator -
class CartesianProductHolder -
class CastAndAppendTransform -
class Cleanup -
class CodeLocation -
class ComparisonBase -
class ConditionalMatcher -
class ConstCharPtr -
class ConstRef -
class ConstRef -
class ContainerEqMatcher -
class ContainerPrinter -
class ContainsMatcher -
class ContainsMatcherImpl -
class ContainsTimesMatcher -
class ContainsTimesMatcherImpl -
class ConvertibleToIntegerPrinter -
class ConvertibleToStringViewPrinter -
class DeathTest -
class DeathTestFactory -
class DefaultDeathTestFactory -
class DefaultGetDistance -
class DefaultGlobalTestPartResultReporter -
class DefaultNameGenerator -
class DeleteArgAction -
class DistanceFromMatcher -
class DistanceFromMatcherImpl -
class DoAllAction -
class DoAllAction -
class DoAllAction -
class DoDefaultAction -
class DummyMatchResultListener -
class EachMatcher -
class EachMatcherImpl -
class ElemFromList -
class ElemFromListImpl -
class ElemFromListImpl -
class ElementsAreArrayMatcher -
class ElementsAreMatcher -
class ElementsAreMatcherImpl -
class EndsWithMatcher -
class Eq2Matcher -
class EqHelper -
class EqMatcher -
class ExcessiveArg -
class ExecDeathTest -
class ExpectationBase -
class ExpectationTester -
class FailureReporterInterface -
class FallbackPrinter -
class FieldMatcher -
class FieldsAreMatcher -
class FieldsAreMatcherImpl -
class FieldsAreMatcherImpl -
class FilePath -
class FinalSuccessChecker -
class FindFirstPrinter -
class FindFirstPrinter -
class FlatTuple -
class FlatTupleBase -
class FlatTupleBase -
class FlatTupleConstructTag -
class FlatTupleElemBase -
class FlatTupleElemBase -
class FloatingEq2Matcher -
class FloatingEqMatcher -
class FloatingPoint -
class FormatForComparison -
class FormatForComparison -
class FormatForComparison -
class FormatForComparison -
class FormatForComparison -
class FormatForComparison -
class FormatForComparison -
class FormatForComparison -
class FormatForComparison -
class FormatForComparison -
class FormatForComparison -
class FormatForComparison -
class FormatForComparison -
class FormatForComparison -
class FormatForComparison -
class FormatForComparison -
class FormatForComparison -
class FormatForComparison -
class FormatForComparison -
class FormatForComparison -
class FormatForComparison -
class FormatForComparison -
class FuchsiaDeathTest -
class FuncSingleParamType -
class FuncSingleParamType -
class Function -
class Function -
class FunctionMocker -
class FunctionMocker -
class FunctionPointerPrinter -
class GTestFlagSaver -
class GTestLog -
class GTestMutexLock -
class GTestNonCopyable -
class Ge2Matcher -
class GeMatcher -
class GenerateTypeList -
class GoogleTestFailureException -
class Gt2Matcher -
class GtMatcher -
class HasDebugStringAndShortDebugString -
class HasNewFatalFailureHelper -
class HasSubstrMatcher -
class Ignore -
class IgnoreResultAction -
class IgnoredValue -
class ImplBase -
class InternalRunDeathTestFlag -
class InvokeArgumentAction -
class InvokeMethodAction -
class InvokeMethodWithoutArgsAction -
class InvokeWithoutArgsAction -
class IsEmptyMatcher -
class IsHashTable -
class IsNanMatcher -
class IsNullMatcher -
class IsRecursiveContainer -
class IsRecursiveContainerImpl -
class IsRecursiveContainerImpl -
class IsRecursiveContainerImpl -
class IsSingleArgStdFunction -
class IsSingleArgStdFunction -
class IsStdSpan -
class IsStdSpan -
class KeyMatcher -
class KeyMatcherImpl -
class KindOf -
class KindOf -
class KindOf -
class KindOf -
class KindOf -
class KindOf -
class KindOf -
class KindOf -
class KindOf -
class KindOf -
class KindOf -
class KindOf -
class KindOf -
class KindOf -
class KindOf -
class KindOf -
class KindOf -
class Le2Matcher -
class LeMatcher -
class LessComparator -
class Lt2Matcher -
class LtMatcher -
class MarkAsIgnored -
class MatchMatrix -
class MatcherAsPredicate -
class MatcherBase -
class MatcherBaseImpl -
class MatcherBaseImpl -
class MatcherCastImpl -
class MatcherCastImpl -
class MatcherCastImpl -
class MatchesRegexMatcher -
class MockFunction -
class MockFunction -
class MockSpec -
class Mutex -
class MutexBase -
class NaggyMockImpl -
class NameGeneratorSelector -
class NativeArray -
class Ne2Matcher -
class NeMatcher -
class NeverThrown -
class NiceMockImpl -
class NoExecDeathTest -
class None -
class NotMatcher -
class NotMatcherImpl -
class NotNullMatcher -
class Notification -
class OnCallSpec -
class OptionalMatcher -
class PairMatchBase -
class PairMatcher -
class PairMatcherImpl -
class ParamConverterGenerator -
class ParamGenerator -
class ParamGeneratorConverter -
class ParamGeneratorInterface -
class ParamIterator -
class ParamIteratorInterface -
class ParameterizedTestFactory -
class ParameterizedTestSuiteInfo -
class ParameterizedTestSuiteInfoBase -
class ParameterizedTestSuiteRegistry -
class PointeeMatcher -
class PointerMatcher -
class PointerPrinter -
class PointwiseMatcher -
class PredicateFormatterFromMatcher -
class PropertyMatcher -
class ProtobufPrinter -
class ProxyTypeList -
class QuantifierMatcherImpl -
class RE -
class Random -
class RangeGenerator -
class Rank0 -
class Rank1 -
class RawBytesPrinter -
class RefMatcher -
class RefMatcher -
class ReferenceOrValueWrapper -
class ReferenceOrValueWrapper -
class RelationToSourceCopy -
class RelationToSourceReference -
class RemoveConstFromKey -
class RemoveConstFromKey -
class ResultOfMatcher -
class ReturnAction -
class ReturnAction -
class ReturnArgAction -
class ReturnNewAction -
class ReturnNullAction -
class ReturnPointeeAction -
class ReturnRefAction -
class ReturnRefOfCopyAction -
class ReturnRoundRobinAction -
class ReturnVoidAction -
class SaveArgAction -
class SaveArgByMoveAction -
class SaveArgPointeeAction -
class Secret -
class SetArgRefereeAction -
class SetArgumentPointeeAction -
class SetArrayArgumentAction -
class SetErrnoAndReturnAction -
class SharedPayload -
class SharedPayloadBase -
class SignatureOf -
class SignatureOf -
class SignatureOf -
class SingleFailureChecker -
class SizeIsMatcher -
class SomeOfArrayMatcher -
class StartsWithMatcher -
class StlContainerView -
class StlContainerView -
class StlContainerView -
class StlContainerView -
class StrEqualityMatcher -
class StreamMatchResultListener -
class StreamingListenerTest -
class StrictMockImpl -
class String -
class SuiteApiResolver -
class TemplateSel -
class Templates -
class Templates -
class TestEventListenersAccessor -
class TestEventRepeater -
class TestFactoryBase -
class TestFactoryImpl -
class TestInfoImpl -
class TestMetaFactory -
class TestMetaFactoryBase -
class TestResultAccessor -
class ThisRefAdjuster -
class ThreadLocal -
class ThreadLocalValueHolderBase -
class ThreadWithParam -
class ThreadWithParamBase -
class TraceInfo -
class TransformTupleValuesHelper -
class TrueWithString -
class TrulyMatcher -
class TuplePrefix -
class TuplePrefix -
class TypeIdHelper -
class TypeParameterizedTest -
class TypeParameterizedTest -
class TypeParameterizedTestSuite -
class TypeParameterizedTestSuite -
class TypeParameterizedTestSuiteRegistry -
class TypeWithSize -
class TypeWithSize -
class TypeWithSize -
class TypedExpectation -
class TypedExpectation -
class TypedTestSuitePState -
class Types -
class Types -
class UnitTestImpl -
class UnitTestRecordPropertyTestHelper -
class UniversalPrinter -
class UniversalPrinter -
class UniversalPrinter -
class UniversalPrinter -
class UniversalPrinter -
class UniversalPrinter -
class UniversalPrinter -
class UniversalPrinter -
class UniversalTersePrinter -
class UniversalTersePrinter -
class UniversalTersePrinter -
class UniversalTersePrinter -
class UniversalTersePrinter -
class UniversalTersePrinter -
class UniversalTersePrinter -
class UniversalTersePrinter -
class UniversalTersePrinter -
class UniversalTersePrinter -
class UniversalTersePrinter -
class UniversalTersePrinter -
class UniversalTersePrinter -
class UniversalTersePrinter -
class UnorderedElementsAreArrayMatcher -
class UnorderedElementsAreMatcher -
class UnorderedElementsAreMatcherImpl -
class UnorderedElementsAreMatcherImplBase -
class UnorderedMatcherRequire -
class UntypedFunctionMockerBase -
class UntypedOnCallSpecBase -
class ValueArray -
class ValuesInIteratorRangeGenerator -
class VariadicMatcher -
class WhenBase64UnescapedMatcher -
class WhenDynamicCastToMatcher -
class WhenDynamicCastToMatcher -
class WhenDynamicCastToMatcherBase -
class WhenSortedByMatcher -
class WindowsDeathTest -
class WithArgsAction -
class WithoutMatchers -
class conjunction -
class conjunction -
class conjunction -
class disjunction -
class disjunction -
class disjunction -
class faketype -
class is_callable_r_impl -
class is_callable_r_impl -
class is_implicitly_convertible -
class is_proxy_type_list -
class is_proxy_type_list -
class negation
Functions
-
void Assert (bool condition, const char * file, int line, const std::string & msg)Asserts that condition is true; aborts the process with the given
message if condition is false. We cannot use LOG(FATAL) or CHECK()
as Google Mock might be used to mock the log sink itself. We
inline this function to prevent it from showing up in the stack
trace.
Defined at line 243 of file ../../third_party/googletest/src/googlemock/include/gmock/internal/gmock-internal-utils.h
-
void Assert (bool condition, const char * file, int line)Defined at line 250 of file ../../third_party/googletest/src/googlemock/include/gmock/internal/gmock-internal-utils.h
-
std::string ConvertIdentifierNameToWords (const char * id_name)Converts an identifier name to a space-separated list of lower-case
words. Each maximum substring of the form [A-Za-z][a-z]*|
+ is
treated as one word. For example, both "FooBar123" and
"foo_bar_123" are converted to "foo bar 123".
-
std::string AppendUserMessage (const std::string & gtest_msg, const Message & user_msg)Appends the user-supplied message to the Google-Test-generated message.
-
std::set<std::string> * GetIgnoredParameterizedTestSuites () -
bool ExitedUnsuccessfully (int exit_status)Returns true if exit_status describes a process that was terminated
by a signal, or exited normally with a nonzero exit code.
-
AssertionResult EqFailure (const char * expected_expression, const char * actual_expression, const std::string & expected_value, const std::string & actual_value, bool ignoring_case)Constructs and returns the message for an equality assertion
(e.g. ASSERT_EQ, EXPECT_STREQ, etc) failure.
The first four parameters are the expressions used in the assertion
and their values, as strings. For example, for ASSERT_EQ(foo, bar)
where foo is 5 and bar is 6, we have:
expected_expression: "foo"
actual_expression: "bar"
expected_value: "5"
actual_value: "6"
The ignoring_case parameter is true if and only if the assertion is a
*_STRCASEEQ*. When it's true, the string " (ignoring case)" will
be inserted into the message.
-
std::string GetBoolAssertionFailureMessage (const AssertionResult & assertion_result, const char * expression_text, const char * actual_predicate_value, const char * expected_predicate_value)Constructs a failure message for Boolean assertions such as EXPECT_TRUE.
-
FailureReporterInterface * GetFailureReporter ()Returns the failure reporter used by Google Mock.
-
TypeId GetTestTypeId ()Returns the type ID of ::testing::Test. Always call this instead
of GetTypeId
<
::testing::Test>() to get the type ID of
::testing::Test, as the latter may give the wrong result due to a
suspected linker bug when compiling Google Test as a Mac OS X
framework.
-
bool Base64Unescape (const std::string & encoded, std::string * decoded) -
template <>std::string GetTypeName<fidl::InterfacePtr<fuchsia::media::AudioRenderer>> ()Defined at line 17 of file ../../src/media/audio/audio_core/test/api/gain_control_test_shared.h
-
template <>std::string GetTypeName<fidl::InterfacePtr<fuchsia::media::AudioCapturer>> ()Defined at line 21 of file ../../src/media/audio/audio_core/test/api/gain_control_test_shared.h
-
std::string CanonicalizeForStdLibVersioning (std::string s)Canonicalizes a given name with respect to the Standard C++ Library.
This handles removing the inline namespace within `std` that is
used by various standard libraries (e.g., `std::__1`). Names outside
of namespace std are returned unmodified.
Defined at line 61 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-type-util.h
-
template <size_t N, size_t M>bool EndsWith (const char (&)[N] suffix, const char (&)[M] str)Defined at line 79 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-function-mocker.h
-
template <typename Pointer>const typename Pointer::element_type * GetRawPointer (const Pointer & p)GetRawPointer(p) returns the raw pointer underlying p when p is a
smart pointer, or returns p itself when p is already a raw pointer.
The following default implementation is for the smart pointer case.
Defined at line 79 of file ../../third_party/googletest/src/googlemock/include/gmock/internal/gmock-internal-utils.h
-
template <size_t N, size_t M>bool Equals (const char (&)[N] a, const char (&)[M] b)Defined at line 84 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-function-mocker.h
-
template <typename Element>const Element * GetRawPointer (const std::reference_wrapper<Element> & r)This overload version is for std::reference_wrapper, which does not work with
the overload above, as it does not have an `element_type`.
Defined at line 85 of file ../../third_party/googletest/src/googlemock/include/gmock/internal/gmock-internal-utils.h
-
template <typename T>bool HasStrictnessModifier ()Defined at line 90 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-nice-strict.h
-
template <typename Element>Element * GetRawPointer (Element * p)This overloaded version is for the raw pointer case.
Defined at line 91 of file ../../third_party/googletest/src/googlemock/include/gmock/internal/gmock-internal-utils.h
-
std::string GetTypeName (const std::type_info & type)GetTypeName(const std::type_info
&
) returns a human-readable name of type T.
Defined at line 91 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-type-util.h
-
template <typename T>std::string GetTypeName ()GetTypeName
<T
>() returns a human-readable name of type T if and only if
RTTI is enabled, otherwise it returns a dummy type name.
NB: This function is also used in Google Mock, so don't move it inside of
the typed-test-only section below.
Defined at line 129 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-type-util.h
-
void Expect (bool condition, const char * file, int line, const std::string & msg)Verifies that condition is true; generates a non-fatal failure if
condition is false.
Defined at line 256 of file ../../third_party/googletest/src/googlemock/include/gmock/internal/gmock-internal-utils.h
-
void Expect (bool condition, const char * file, int line)Defined at line 263 of file ../../third_party/googletest/src/googlemock/include/gmock/internal/gmock-internal-utils.h
-
template <typename T>T Invalid ()Invalid
<T
>() is usable as an expression of type T, but will terminate
the program with an assertion failure if actually run. This is useful
when a value of type T is needed for compilation, but the statement
will not really be executed (or we don't care if the statement
crashes).
Defined at line 314 of file ../../third_party/googletest/src/googlemock/include/gmock/internal/gmock-internal-utils.h
-
template <class ParamType>std::string DefaultParamName (const TestParamInfo<ParamType> & info)INTERNAL IMPLEMENTATION - DO NOT USE IN USER CODE.
Default parameterized test name generator, returns a string containing the
integer test parameter index.
Defined at line 383 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-param-util.h
-
template <typename T>TypeId GetTypeId ()GetTypeId
<T
>() returns the ID of type T. Different values will be
returned for different types. Calling the function twice with the
same type argument is guaranteed to return the same ID.
Defined at line 410 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h
-
template <typename F, typename Tuple, size_t... Idx>decltype(std::forward<F>(f)(std::get<Idx>(std::forward<Tuple>(args))...)) ApplyImpl (F && f, Tuple && args, std::index_sequence<Idx...> )Defined at line 424 of file ../../third_party/googletest/src/googlemock/include/gmock/internal/gmock-internal-utils.h
-
template <typename F, typename Tuple>decltype(ApplyImpl(std::forward<F>(f), std::forward<Tuple>(args), std::make_index_sequence<std::tuple_size<typename std::remove_reference<Tuple>::type>::value>())) Apply (F && f, Tuple && args)Apply the function to a tuple of arguments.
Defined at line 432 of file ../../third_party/googletest/src/googlemock/include/gmock/internal/gmock-internal-utils.h
-
template <typename T1, typename T2>std::string FormatForComparisonFailureMessage (const T1 & value, const T2 & )Formats a comparison assertion (e.g. ASSERT_EQ, EXPECT_LT, and etc)
operand to be used in a failure message. The type (but not value)
of the other operand may affect the format. This allows us to
print a char* as a raw pointer when it is compared against another
char* or void*, and print it as a C string when it is compared
against an std::string object, for example.
INTERNAL IMPLEMENTATION - DO NOT USE IN A USER PROGRAM.
Defined at line 463 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
SetUpTearDownSuiteFuncType GetNotDefaultOrNull (SetUpTearDownSuiteFuncType a, SetUpTearDownSuiteFuncType def)Defined at line 482 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h
-
template <typename FloatType>int AppropriateResolution (FloatType val)The default resolution used to print floating-point values uses only
6 digits, which can be confusing if a test compares two values whose
difference lies in the 7th digit. So we'd like to print out numbers
in full precision.
However if the value is something simple like 1.1, full will print a
long string like 1.100000001 due to floating-point numbers not using
a base of 10. This routiune returns an appropriate resolution for a
given floating-point number, that is, 6 if it will be accurate, or a
max_digits10 value (full precision) if it won't, for values between
0.0001 and one million.
It does this by computing what those digits would be (by multiplying
by an appropriate power of 10), then dividing by that power again to
see if gets the original value back.
A similar algorithm applies for values larger than one million; note
that for those values, we must divide to get a six-digit number, and
then multiply to possibly get the original value again.
Defined at line 555 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
bool IsReadableTypeName (const std::string & type_name)Returns true if the given type name is easy to read by a human.
This is used to decide whether printing the type of a value might
be helpful.
Defined at line 587 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
-
template <typename F, typename... Args>decltype(std::forward<F>(f)(args...)) InvokeArgument (F && f, Args... args)internal::InvokeArgument - a helper for InvokeArgument action.
The basic overloads are provided here for generic functors.
Overloads for other custom-callables are provided in the
internal/custom/gmock-generated-actions.h header.
Defined at line 594 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-more-actions.h
-
std::string GetPrefixUntilComma (const char * str)Returns the prefix of 'str' before the first comma in it; returns
the entire string if it contains no comma.
Defined at line 639 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h
-
template <typename NameGenerator>void GenerateNamesRecursively (internal::None , std::vector<std::string> * , int )Defined at line 664 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h
-
template <typename NameGenerator, typename Types>void GenerateNamesRecursively (Types , std::vector<std::string> * result, int i)Defined at line 667 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h
-
template <typename NameGenerator, typename Types>std::vector<std::string> GenerateNames ()Defined at line 674 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h
-
template <typename MatcherTuple, typename ValueTuple>void ExplainMatchFailureTupleTo (const MatcherTuple & matchers, const ValueTuple & values, ::std::ostream * os)Describes failures in matching matchers against values. If there
is no failure, nothing will be streamed to os.
Defined at line 707 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
-
bool AlwaysFalse ()Always returns false.
Defined at line 815 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h
-
bool CaseInsensitiveCStringEquals (const char * lhs, const char * rhs)Polymorphic helper functions for narrow and wide string matchers.
Defined at line 873 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
-
bool CaseInsensitiveCStringEquals (const wchar_t * lhs, const wchar_t * rhs)Defined at line 877 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
-
template <typename StringType>bool CaseInsensitiveStringEquals (const StringType & s1, const StringType & s2)String comparison for narrow or wide strings that can have embedded NUL
characters.
Defined at line 885 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
-
template <class C, class Iterator = decltype(::std::declval<const C&>().begin()), class = decltype(::std::declval<const C&>().end()), class = decltype(++::std::declval<Iterator&>()), class = decltype(*::std::declval<Iterator>()), class = typename C::const_iterator>IsContainer IsContainerTest (int )Defined at line 920 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h
-
template <class C>IsNotContainer IsContainerTest (long )Defined at line 926 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h
-
template <typename T, typename U>bool ArrayEq (const T & lhs, const U & rhs)This generic version is used when k is 0.
Defined at line 991 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h
-
template <typename T, typename U, size_t N>bool ArrayEq (const T (&)[N] lhs, const U (&)[N] rhs)This overload is used when k >= 1.
Defined at line 997 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h
-
template <typename Iter, typename Element>Iter ArrayAwareFind (Iter begin, Iter end, const Element & elem)Finds the first element in the iterator range [begin, end) that
equals elem. Element may be a native array type itself.
Defined at line 1015 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h
-
template <typename T, typename U>void CopyArray (const T & from, U * to)This generic version is used when k is 0.
Defined at line 1031 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h
-
template <typename T, typename U, size_t N>void CopyArray (const T (&)[N] from, U (*)[N] to)This overload is used when k >= 1.
Defined at line 1037 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h
-
void FlushInfoLog ()Defined at line 1067 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-port.h
-
template <typename To>To ImplicitCast_ (To x)INTERNAL IMPLEMENTATION - DO NOT USE IN USER CODE.
Use ImplicitCast_ as a safe version of static_cast for upcasting in
the type hierarchy (e.g. casting a Foo* to a SuperclassOfFoo* or a
const Foo*). When you use ImplicitCast_, the compiler checks that
the cast is safe. Such explicit ImplicitCast_s are necessary in
surprisingly many situations where C++ demands an exact type match
instead of an argument type convertible to a target type.
The syntax for using ImplicitCast_ is the same as for static_cast:
ImplicitCast_
<ToType
>(expr)
ImplicitCast_ would have been part of the C++ standard library,
but the proposal was submitted too late. It will probably make
its way into the language in the future.
This relatively ugly name is intentional. It prevents clashes with
similar functions users may have (e.g., implicit_cast). The internal
namespace alone is not enough because the function can be found by ADL.
Defined at line 1148 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-port.h
-
template <class Derived, class Base>Derived * CheckedDowncastToActualType (Base * base)Downcasts the pointer of type Base to Derived.
Derived must be a subclass of Base. The parameter MUST
point to a class of type Derived, not any subclass of it.
When RTTI is available, the function performs a runtime
check to enforce this.
Defined at line 1158 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-port.h
-
bool InstantiateTestCase_P_IsDeprecated ()Utility functions to be called with static_assert to induce deprecation
warnings.
Defined at line 1234 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h
-
bool InstantiateTypedTestCase_P_IsDeprecated ()Defined at line 1262 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h
-
template <typename T1, typename T2>AssertionResult CmpHelperEQFailure (const char * lhs_expression, const char * rhs_expression, const T1 & lhs, const T2 & rhs)Separate the error generating code from the code path to reduce the stack
frame size of CmpHelperEQ. This helps reduce the overhead of some sanitizers
when calling EXPECT_* in a tight loop.
Defined at line 1374 of file ../../third_party/googletest/src/googletest/include/gtest/gtest.h
-
template <typename T1, typename T2>AssertionResult CmpHelperEQ (const char * lhs_expression, const char * rhs_expression, const T1 & lhs, const T2 & rhs)The helper function for {ASSERT|EXPECT}_EQ.
Defined at line 1391 of file ../../third_party/googletest/src/googletest/include/gtest/gtest.h
-
template <typename T1, typename T2>AssertionResult CmpHelperOpFailure (const char * expr1, const char * expr2, const T1 & val1, const T2 & val2, const char * op)Separate the error generating code from the code path to reduce the stack
frame size of CmpHelperOP. This helps reduce the overhead of some sanitizers
when calling EXPECT_OP in a tight loop.
Defined at line 1443 of file ../../third_party/googletest/src/googletest/include/gtest/gtest.h
-
template <, >AssertionResult CmpHelperNE (const char * expr1, const char * expr2, const T1 & val1, const T2 & val2)Implements the helper function for {ASSERT|EXPECT}_NE
Defined at line 1472 of file ../../third_party/googletest/src/googletest/include/gtest/gtest.h
-
template <, >AssertionResult CmpHelperLE (const char * expr1, const char * expr2, const T1 & val1, const T2 & val2)Implements the helper function for {ASSERT|EXPECT}_LE
Defined at line 1474 of file ../../third_party/googletest/src/googletest/include/gtest/gtest.h
-
template <, >AssertionResult CmpHelperLT (const char * expr1, const char * expr2, const T1 & val1, const T2 & val2)Implements the helper function for {ASSERT|EXPECT}_LT
Defined at line 1476 of file ../../third_party/googletest/src/googletest/include/gtest/gtest.h
-
template <, >AssertionResult CmpHelperGE (const char * expr1, const char * expr2, const T1 & val1, const T2 & val2)Implements the helper function for {ASSERT|EXPECT}_GE
Defined at line 1478 of file ../../third_party/googletest/src/googletest/include/gtest/gtest.h
-
template <, >AssertionResult CmpHelperGT (const char * expr1, const char * expr2, const T1 & val1, const T2 & val2)Implements the helper function for {ASSERT|EXPECT}_GT
Defined at line 1480 of file ../../third_party/googletest/src/googletest/include/gtest/gtest.h
-
template <typename RawType>AssertionResult CmpHelperFloatingPointEQ (const char * lhs_expression, const char * rhs_expression, RawType lhs_value, RawType rhs_value)Helper template function for comparing floating-points.
Template parameter:
RawType: the raw floating-point type (either float or double)
INTERNAL IMPLEMENTATION - DO NOT USE IN A USER PROGRAM.
Defined at line 1582 of file ../../third_party/googletest/src/googletest/include/gtest/gtest.h
-
void DeleteThreadLocalValue (void * value_holder)Called by pthread to delete thread-local data stored by
pthread_setspecific().
Defined at line 1758 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-port.h
-
bool InDeathTestChild ()Returns a Boolean value indicating whether the caller is currently
executing in the context of the death test child process. Tools such as
Valgrind heap checkers may need this to modify their behavior in death
tests. IMPORTANT: This is an internal utility. Using it may break the
implementation of death tests. User code MUST NOT use it.
-
bool IsAlpha (char ch)isspace(int ch) and friends accept an unsigned char or EOF. char
may be signed, depending on the compiler (or compiler flags).
Therefore we need to cast a char to unsigned char before calling
isspace(), etc.
Defined at line 1937 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-port.h
-
bool IsAlNum (char ch)Defined at line 1940 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-port.h
-
bool IsDigit (char ch)Defined at line 1943 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-port.h
-
bool IsLower (char ch)Defined at line 1946 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-port.h
-
bool IsSpace (char ch)Defined at line 1949 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-port.h
-
template <typename Optional>decltype(!!optional) IsOptionalEngaged (const Optional & optional, Rank1 )Overloads to support `OptionalMatcher` being used with a type that either
supports implicit conversion to bool or a `has_value()` method.
Defined at line 4090 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
-
template <typename Optional>decltype(!optional.has_value()) IsOptionalEngaged (const Optional & optional, Rank0 )Defined at line 4097 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
-
std::string JoinAsKeyValueTuple (const std::vector<const char *> & names, const Strings & values)Joins a vector of strings as if they are fields of a tuple; returns
the joined string.
-
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 () -
void ReportInvalidTestSuiteType (const char * test_suite_name, const CodeLocation & code_location)Outputs a message explaining invalid registration of different
fixture class for the same test suite. This may happen when
TEST_P macro is used to define two tests with the same name
but in different namespaces.
-
template <typename T>void UniversalPrint (const T & value, ::std::ostream * os)Prints a value using the type inferred by the compiler. The
difference between this and UniversalTersePrint() is that for a
(const) char pointer, this prints both the pointer and the
NUL-terminated string.
Defined at line 1183 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
std::string StringStreamToString (::std::stringstream * stream)Gets the content of the stringstream's buffer as an std::string. Each '
\
0'
character in the buffer is replaced with "\\0".
-
class UnitTestImpl * GetUnitTestImpl () -
void ReportFailureInUnknownLocation (TestPartResult::Type result_type, const std::string & message) -
bool LogIsVisible (LogSeverity severity)Returns true if and only if a log with the given severity is visible
according to the --gmock_verbose flag.
-
void Log (LogSeverity severity, const std::string & message, int stack_frames_to_skip)Prints the given message to stdout if and only if 'severity' >= the level
specified by the --gmock_verbose flag. If stack_frames_to_skip >=
0, also prints the stack trace excluding the top
stack_frames_to_skip frames. In opt mode, any positive
stack_frames_to_skip is treated as 0, since we don't know which
function calls will be inlined by the compiler and need to be
conservative.
-
InternalRunDeathTestFlag * ParseInternalRunDeathTestFlag ()Returns a newly created InternalRunDeathTestFlag object with fields
initialized from the GTEST_FLAG(internal_run_death_test) flag if
the flag is specified; otherwise returns NULL.
-
WithoutMatchers GetWithoutMatchers ()Internal use only: access the singleton instance of WithoutMatchers.
-
void PrintBytesInObjectTo (const unsigned char * obj_bytes, size_t count, ::std::ostream * os)Prints the given number of bytes in the given object to the given
ostream.
-
void IllegalDoDefault (const char * file, int line)Emit an assertion failure due to incorrect DoDefault() usage. Out-of-lined to
reduce code size.
-
void InsertSyntheticTestCase (const std::string & name, CodeLocation location, bool has_test_p) -
void PrintTo (unsigned char c, ::std::ostream * os)Overloads for various char types.
-
void PrintTo (signed char c, ::std::ostream * os) -
void PrintTo (wchar_t wc, ::std::ostream * os)Overload for wchar_t type.
Prints a wchar_t as a symbol if it is printable or as its internal
code otherwise and also as its decimal code (except for L'
\
0').
The L'
\
0' char is printed as "L'\\0'". The decimal code is printed
as signed integer when wchar_t is implemented by the compiler
as a signed type and is printed as an unsigned integer when wchar_t
is implemented as an unsigned type.
-
void PrintTo (char32_t c, ::std::ostream * os) -
void PrintTo (__uint128_t v, ::std::ostream * os) -
void PrintTo (__int128_t v, ::std::ostream * os) -
TestInfo * MakeAndRegisterTestInfo (std::string 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)Creates a new TestInfo object and registers it with Google Test;
returns the created object.
Arguments:
test_suite_name: name of the test suite
name: name of the test
type_param: the name of the test's type parameter, or NULL if
this is not a typed or a type-parameterized test.
value_param: text representation of the test's value parameter,
or NULL if this is not a value-parameterized test.
code_location: code location where the test is defined
fixture_class_id: ID of the test fixture class
set_up_tc: pointer to the function that sets up the test suite
tear_down_tc: pointer to the function that tears down the test suite
factory: pointer to the factory that creates a test object.
The newly created TestInfo instance will assume
ownership of the factory object.
-
bool SkipPrefix (const char * prefix, const char ** pstr)If *pstr starts with the given prefix, modifies *pstr to be right
past the prefix and returns true; otherwise leaves *pstr unchanged
and returns false. None of pstr, *pstr, and prefix can be NULL.
-
void PrintTo (const char * s, ::std::ostream * os)Overloads for C strings.
-
void SplitString (const ::std::string & str, char delimiter, ::std::vector< ::std::string> * dest)Splits a given string on a given delimiter, populating a given
vector with the fields.
-
void PrintTo (const char8_t * s, ::std::ostream * os)Overloads for u8 strings.
-
void PrintTo (const char16_t * s, ::std::ostream * os)Overloads for u16 strings.
-
void PrintTo (const char32_t * s, ::std::ostream * os)Overloads for u32 strings.
-
void PrintTo (const wchar_t * s, ::std::ostream * os)Overloads for wide C strings
-
void PrintStringTo (const ::std::string & s, ::std::ostream * os)Overloads for ::std::string.
-
void PrintU8StringTo (const ::std::u8string & s, ::std::ostream * os) -
void PrintU16StringTo (const ::std::u16string & s, ::std::ostream * os)Overloads for ::std::u16string
-
void PrintU32StringTo (const ::std::u32string & s, ::std::ostream * os)Overloads for ::std::u32string
-
void PrintWideStringTo (const ::std::wstring & s, ::std::ostream * os) -
void RegisterTypeParameterizedTestSuite (const char * test_suite_name, CodeLocation code_location) -
void RegisterTypeParameterizedTestSuiteInstantiation (const char * case_name) -
std::string GetCurrentOsStackTraceExceptTop (int skip_count)Returns the current OS stack trace as an std::string.
The maximum number of stack frames to be included is specified by
the gtest_stack_trace_depth flag. The skip_count parameter
specifies the number of top frames to be skipped, which doesn't
count against the number of frames to be included.
For example, if Foo() calls Bar(), which in turn calls
GetCurrentOsStackTraceExceptTop(..., 1), Foo() will be included in
the trace but Bar() and GetCurrentOsStackTraceExceptTop() won't.
-
bool AlwaysTrue ()Always returns true.
-
bool IsTrue (bool condition)A helper for suppressing warnings on constant condition. It just
returns 'condition'.
-
::std::string FormatFileLocation (const char * file, int line)Formats a source file path and a line number as they would appear
in an error message from the compiler used to compile this code.
-
::std::string FormatCompilerIndependentFileLocation (const char * file, int line)Formats a file location for compiler-independent XML output.
Although this function is not platform dependent, we put it next to
FormatFileLocation in order to contrast the two functions.
-
void CaptureStdout ()Defines the stderr capturer:
CaptureStdout - starts capturing stdout.
GetCapturedStdout - stops capturing stdout and returns the captured string.
CaptureStderr - starts capturing stderr.
GetCapturedStderr - stops capturing stderr and returns the captured string.
-
std::string GetCapturedStdout () -
void CaptureStderr () -
std::string GetCapturedStderr () -
size_t GetFileSize (FILE * file)Returns the size (in bytes) of a file.
-
std::vector<std::string> GetArgvs ()All command line arguments.
-
std::vector<std::string> GetInjectableArgvs () -
void ClearInjectableArgvs () -
void LogWithLocation (testing::internal::LogSeverity severity, const char * file, int line, const std::string & message)Logs a message including file and line number information.
-
AssertionResult CmpHelperSTREQ (const char * s1_expression, const char * s2_expression, const char * s1, const char * s2)The helper function for {ASSERT|EXPECT}_STREQ.
INTERNAL IMPLEMENTATION - DO NOT USE IN A USER PROGRAM.
-
AssertionResult CmpHelperSTRCASEEQ (const char * s1_expression, const char * s2_expression, const char * s1, const char * s2)The helper function for {ASSERT|EXPECT}_STRCASEEQ.
INTERNAL IMPLEMENTATION - DO NOT USE IN A USER PROGRAM.
-
AssertionResult CmpHelperSTRNE (const char * s1_expression, const char * s2_expression, const char * s1, const char * s2)The helper function for {ASSERT|EXPECT}_STRNE.
INTERNAL IMPLEMENTATION - DO NOT USE IN A USER PROGRAM.
-
AssertionResult CmpHelperSTRCASENE (const char * s1_expression, const char * s2_expression, const char * s1, const char * s2)The helper function for {ASSERT|EXPECT}_STRCASENE.
INTERNAL IMPLEMENTATION - DO NOT USE IN A USER PROGRAM.
-
AssertionResult CmpHelperSTREQ (const char * s1_expression, const char * s2_expression, const wchar_t * s1, const wchar_t * s2)Helper function for *_STREQ on wide strings.
INTERNAL IMPLEMENTATION - DO NOT USE IN A USER PROGRAM.
-
AssertionResult CmpHelperSTRNE (const char * s1_expression, const char * s2_expression, const wchar_t * s1, const wchar_t * s2)Helper function for *_STRNE on wide strings.
INTERNAL IMPLEMENTATION - DO NOT USE IN A USER PROGRAM.
-
AssertionResult DoubleNearPredFormat (const char * expr1, const char * expr2, const char * abs_error_expr, double val1, double val2, double abs_error)Helper function for implementing ASSERT_NEAR.
INTERNAL IMPLEMENTATION - DO NOT USE IN A USER PROGRAM.
-
size_t GetThreadCount ()Returns the number of threads running in the process, or 0 to indicate that
we cannot detect it.
-
bool BoolFromGTestEnv (const char * flag, bool default_val)Parses a bool/int32_t/string from the environment variable
corresponding to the given Google Test flag.
-
int32_t Int32FromGTestEnv (const char * flag, int32_t default_val) -
ElementMatcherPairs FindMaxBipartiteMatching (const MatchMatrix & g)Returns a maximum bipartite matching for the specified graph 'g'.
The matching is represented as a vector of {element, matcher} pairs.
-
std::string FormatMatcherDescription (bool negation, const char * matcher_name, const std::vector<const char *> & param_names, const Strings & param_values)Returns the description for a matcher defined using the MATCHER*()
macro where the user-supplied description string is "", if
'negation' is false; otherwise returns the description of the
negation of the matcher. 'param_values' contains a list of strings
that are the print-out of the matcher's parameters.
-
Matcher<const ::std::string &> MakeDeathTestMatcher (::testing::internal::RE regex)A string passed to EXPECT_DEATH (etc.) is caught by one of these overloads
and interpreted as a regex (rather than an Eq matcher) for legacy
compatibility.
Defined at line 62 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-death-test-internal.h
-
Matcher<const ::std::string &> MakeDeathTestMatcher (const char * regex)Defined at line 66 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-death-test-internal.h
-
bool PrefixOf (const char * a, const char * b)Defined at line 69 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-function-mocker.h
-
Matcher<const ::std::string &> MakeDeathTestMatcher (const ::std::string & regex)Defined at line 69 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-death-test-internal.h
-
Matcher<const ::std::string &> MakeDeathTestMatcher (Matcher<const ::std::string &> matcher)If a Matcher
<const
::std::string
&
> is passed to EXPECT_DEATH (etc.), it's
used directly.
Defined at line 76 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-death-test-internal.h
-
bool ParseInt32 (const Message & src_text, const char * str, int32_t * value)Parses 'str' for a 32-bit signed integer. If successful, writes the result
to *value and returns true; otherwise leaves *value unchanged and returns
false.
-
std::string OutputFlagAlsoCheckEnvVar () -
template <size_t N, size_t M>bool StartsWith (const char (&)[N] prefix, const char (&)[M] str)Defined at line 74 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-function-mocker.h
-
template <size_t N>bool ValidateSpec (const char (&)[N] spec)Defined at line 89 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-function-mocker.h
-
template <typename T>std::string StreamableToString (const T & streamable)Converts a streamable value to an std::string. A NULL pointer is
converted to "(null)". When the input value is a ::string,
::std::string, ::wstring, or ::std::wstring object, each NUL
character in it is replaced with "\\0".
Defined at line 242 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-message.h
-
template <typename T>void PrintWithFallback (const T & value, ::std::ostream * os)Select the best printer in the following order:
- Print containers (they have begin/end/etc).
- Print function pointers.
- Print object pointers.
- Print protocol buffers.
- Use the stream operator, if available.
- Print types convertible to BiggestInt.
- Print types convertible to StringView, if available.
- Fallback to printing the raw bytes of the object.
Defined at line 352 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
template <typename T>typename std::add_const<T>::type & as_const (T & t)Like std::as_const from C++17.
Defined at line 378 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-actions.h
-
template <typename T = int>void TestNotEmpty ()Defined at line 388 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-param-util.h
-
template <typename T = int>void TestNotEmpty (const T & )Defined at line 392 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-param-util.h
-
template <typename T>void PrintTo (const T & value, ::std::ostream * os)Prints the given value using the
<
<
operator if it has one;
otherwise prints the bytes in it. This is what
UniversalPrinter
<T
>::Print() does when PrintTo() is not specialized
or overloaded for type T.
A user can override this behavior for a class type Foo by defining
an overload of PrintTo() in the namespace where Foo is defined. We
give the user this option as sometimes defining a
<
<
operator for
Foo is not desirable (e.g. the coding style may prevent doing it,
or there is already a
<
<
operator but it doesn't do what the user
wants).
Defined at line 490 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
void PrintTo (char c, ::std::ostream * os)Defined at line 501 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
void PrintTo (bool x, ::std::ostream * os)Overloads for other simple built-in types.
Defined at line 509 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
void PrintTo (char16_t c, ::std::ostream * os)Defined at line 523 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
void PrintTo (char8_t c, ::std::ostream * os)Defined at line 527 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
void PrintIfNotEmpty (const std::string & explanation, ::std::ostream * os)If the explanation is not empty, prints it to the ostream.
Defined at line 577 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
-
template <typename Value, typename T>bool MatchPrintAndExplain (Value & value, const Matcher<T> & matcher, MatchResultListener * listener)Matches the value against the given matcher, prints the value and explains
the match result to the listener. Returns the match result.
'listener' must not be NULL.
Value cannot be passed by const reference, because some matchers take a
non-const argument.
Defined at line 600 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
-
void PrintTo (float f, ::std::ostream * os)Defined at line 619 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
void PrintTo (double d, ::std::ostream * os)Defined at line 626 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
const char * SkipComma (const char * str)Skips to the first non-space char after the first comma in 'str';
returns NULL if no comma is found in 'str'.
Defined at line 627 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h
-
void PrintTo (char * s, ::std::ostream * os)Defined at line 635 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
void PrintTo (const signed char * s, ::std::ostream * os)signed/unsigned char is often used for representing binary data, so
we print pointers to it as void* to be safe.
Defined at line 641 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
void PrintTo (signed char * s, ::std::ostream * os)Defined at line 644 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
void PrintTo (const unsigned char * s, ::std::ostream * os)Defined at line 647 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
void PrintTo (unsigned char * s, ::std::ostream * os)Defined at line 650 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
void PrintTo (char8_t * s, ::std::ostream * os)Defined at line 656 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
void PrintTo (char16_t * s, ::std::ostream * os)Defined at line 662 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
void PrintTo (char32_t * s, ::std::ostream * os)Defined at line 667 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
void PrintTo (wchar_t * s, ::std::ostream * os)Defined at line 679 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
template <typename T>void PrintRawArrayTo (const T[] a, size_t count, ::std::ostream * os)Prints the given number of elements in an array, without printing
the curly braces.
Defined at line 690 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
template <typename MatcherTuple, typename ValueTuple>bool TupleMatches (const MatcherTuple & matcher_tuple, const ValueTuple & value_tuple)TupleMatches(matcher_tuple, value_tuple) returns true if and only if
all matchers in matcher_tuple match the corresponding fields in
value_tuple. It is a compiler error if matcher_tuple and
value_tuple have different number of fields or incompatible field
types.
Defined at line 693 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
-
void PrintTo (const ::std::string & s, ::std::ostream * os)Defined at line 700 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
void PrintTo (const ::std::u8string & s, ::std::ostream * os)Defined at line 707 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
void PrintTo (const ::std::u16string & s, ::std::ostream * os)Defined at line 714 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
void PrintTo (const ::std::u32string & s, ::std::ostream * os)Defined at line 720 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
void PrintTo (const ::std::wstring & s, ::std::ostream * os)Defined at line 727 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
void PrintTo (internal::StringView sp, ::std::ostream * os)Overload for internal::StringView.
Defined at line 734 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
void PrintTo (std::nullptr_t , ::std::ostream * os)Defined at line 739 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
void PrintTo (const std::type_info & info, std::ostream * os)Defined at line 742 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
template <typename T>void PrintTo (std::reference_wrapper<T> ref, ::std::ostream * os)Defined at line 748 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
template <typename T, typename Ptr>void PrintSmartPointer (const Ptr & ptr, std::ostream * os, char )Defined at line 758 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
template <typename T, typename Ptr, typename = typename std::enable_if<!std::is_void<T>::value && !std::is_array<T>::value>::type>void PrintSmartPointer (const Ptr & ptr, std::ostream * os, int )Defined at line 769 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
template <typename T, typename D>void PrintTo (const std::unique_ptr<T, D> & ptr, std::ostream * os)Defined at line 780 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
template <typename T>void PrintTo (const std::shared_ptr<T> & ptr, std::ostream * os)Defined at line 785 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
template <typename T>void PrintOrderingHelper (T ordering, std::ostream * os)Defined at line 791 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
void PrintTo (std::strong_ordering ordering, std::ostream * os)Defined at line 803 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
void PrintTo (std::partial_ordering ordering, std::ostream * os)Defined at line 811 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
void PrintTo (std::weak_ordering ordering, std::ostream * os)Defined at line 819 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
template <typename T>void PrintTupleTo (const T & , std::integral_constant<size_t, 0> , ::std::ostream * )Helper function for printing a tuple. T must be instantiated with
a tuple type.
Defined at line 827 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
template <typename T, size_t I>void PrintTupleTo (const T & t, std::integral_constant<size_t, I> , ::std::ostream * os)Defined at line 831 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
template <typename... Types>void PrintTo (const ::std::tuple<Types...> & t, ::std::ostream * os)Defined at line 844 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
template <typename T1, typename T2>void PrintTo (const ::std::pair<T1, T2> & value, ::std::ostream * os)Overload for std::pair.
Defined at line 852 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
template <typename T, typename U>bool ArrayEq (const T * lhs, size_t size, const U * rhs)ArrayEq() compares two k-dimensional native arrays using the
elements' operator==, where k can be any integer >= 0. When k is
0, ArrayEq() degenerates into comparing a single pair of values.
Defined at line 1005 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h
-
template <typename T, typename U>void CopyArray (const T * from, size_t size, U * to)CopyArray() copies a k-dimensional native array using the elements'
operator=, where k can be any integer >= 0. When k is 0,
CopyArray() degenerates into copying a single value.
Defined at line 1045 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h
-
void LogToStderr ()Defined at line 1066 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-port.h
-
std::string ReadEntireFile (FILE * file)Reads the entire content of a file as a string.
-
void SetInjectableArgvs (const std::vector<std::string> * new_argvs)Deprecated: pass the args vector by value instead.
-
void SetInjectableArgvs (const std::vector<std::string> & new_argvs) -
void ReportUninterestingCall (CallReaction reaction, const std::string & msg)Reports an uninteresting call (whose description is in msg) in the
manner specified by 'reaction'.
-
const char * StringFromGTestEnv (const char * flag, const char * default_val) -
template <typename Tuple, typename Func, typename OutIter>OutIter TransformTupleValues (Func f, const Tuple & t, OutIter out)Successively invokes 'f(element)' on each element of the tuple 't',
appending each result to the 'out' iterator. Returns the final value
of 'out'.
Defined at line 749 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
-
const void * VoidifyPointer (const void * p)Defined at line 752 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
const void * VoidifyPointer (const volatile void * p)Defined at line 753 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
template <typename T>void UniversalPrintArray (const T * begin, size_t len, ::std::ostream * os)UniversalPrintArray(begin, len, os) prints an array of 'len'
elements, starting at address 'begin'.
Defined at line 984 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
template <typename T>void UniversalTersePrint (const T & value, ::std::ostream * os)Defined at line 1174 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
template <typename Tuple>void TersePrintPrefixToStrings (const Tuple & , std::integral_constant<size_t, 0> , Strings * )Tersely prints the first N fields of a tuple to a string vector,
one element for each field.
Defined at line 1195 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
template <typename Tuple, size_t I>void TersePrintPrefixToStrings (const Tuple & t, std::integral_constant<size_t, I> , Strings * strings)Defined at line 1198 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
template <typename Tuple>Strings UniversalTersePrintTupleFieldsToStrings (const Tuple & value)Prints the fields of a tuple tersely to a string vector, one
element for each field. See the comment before
UniversalTersePrint() for how we define "tersely".
Defined at line 1212 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h
-
bool TypedTestCase_P_IsDeprecated ()Defined at line 1241 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h
-
bool TypedTestCaseIsDeprecated ()Defined at line 1248 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h
-
bool RegisterTypedTestCase_P_IsDeprecated ()Defined at line 1255 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h
-
void * ThreadFuncWithCLinkage (void * thread)pthread_create() accepts a pointer to a function type with the C linkage.
According to the Standard (7.5/1), function types with different linkages
are different even if they are otherwise identical. Some compilers (for
example, SunStudio) treat them as different types. Since class methods
cannot be defined with C-linkage we need to define a free C-function to
pass into pthread_create().
Defined at line 1301 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-port.h
-
template <typename T>void PrintAsActionResult (const T & result, std::ostream & os)Prints the held value as an action's result to os.
Defined at line 1381 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-spec-builders.h
-
bool operator== (faketype , faketype )Defined at line 1386 of file ../../third_party/googletest/src/googletest/include/gtest/gtest.h
-
bool operator!= (faketype , faketype )Defined at line 1387 of file ../../third_party/googletest/src/googletest/include/gtest/gtest.h
-
template <typename M>PredicateFormatterFromMatcher<M> MakePredicateFormatterFromMatcher (M matcher)A helper function for converting a matcher to a predicate-formatter
without the user needing to explicitly write the type. This is
used for implementing ASSERT_THAT() and EXPECT_THAT().
Implementation detail: 'matcher' is received by-value to force decaying.
Defined at line 1688 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
-
bool IsUpper (char ch)Defined at line 1952 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-port.h
-
bool IsXDigit (char ch)Defined at line 1955 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-port.h
-
bool IsXDigit (char8_t ch)Defined at line 1959 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-port.h
-
bool IsXDigit (char16_t ch)Defined at line 1963 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-port.h
-
bool IsXDigit (char32_t ch)Defined at line 1967 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-port.h
-
bool IsXDigit (wchar_t ch)Defined at line 1971 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-port.h
-
char ToLower (char ch)Defined at line 1976 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-port.h
-
char ToUpper (char ch)Defined at line 1979 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-port.h
-
std::string StripTrailingSpaces (std::string str)Defined at line 1983 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-port.h
-
template <typename F, typename Impl>::testing::Action<F> MakeAction ()Stores a default-constructed Impl as part of the Action
<
>'s
std::function
<
>. The Impl should be trivial to copy.
Defined at line 2249 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-actions.h
-
template <typename F, typename Impl>::testing::Action<F> MakeAction (std::shared_ptr<Impl> impl)Stores just the one given instance of Impl.
Defined at line 2255 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-actions.h
-
::std::nullopt_t Nullopt ()Defined at line 2393 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-port.h
-
void UniversalPrintArray (const char * begin, size_t len, ::std::ostream * os)This overload prints a (const) char array compactly.
-
void UniversalPrintArray (const char8_t * begin, size_t len, ::std::ostream * os)This overload prints a (const) char8_t array compactly.
-
void UniversalPrintArray (const char16_t * begin, size_t len, ::std::ostream * os)This overload prints a (const) char16_t array compactly.
-
void UniversalPrintArray (const char32_t * begin, size_t len, ::std::ostream * os)This overload prints a (const) char32_t array compactly.
-
void UniversalPrintArray (const wchar_t * begin, size_t len, ::std::ostream * os)This overload prints a (const) wchar_t array compactly.
-
template <typename T, size_t... I>decltype(std::tie(get<I>(t)...)) UnpackStructImpl (const T & t, std::index_sequence<I...> , int )Defined at line 3313 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
-
template <typename T>auto UnpackStructImpl (const T & t, std::make_index_sequence<1> , char )Defined at line 3322 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
-
template <typename T>auto UnpackStructImpl (const T & t, std::make_index_sequence<2> , char )Defined at line 3327 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
-
template <typename T>auto UnpackStructImpl (const T & t, std::make_index_sequence<3> , char )Defined at line 3332 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
-
template <typename T>auto UnpackStructImpl (const T & t, std::make_index_sequence<4> , char )Defined at line 3337 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
-
template <typename T>auto UnpackStructImpl (const T & t, std::make_index_sequence<5> , char )Defined at line 3342 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
-
template <typename T>auto UnpackStructImpl (const T & t, std::make_index_sequence<6> , char )Defined at line 3347 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
-
template <typename T>auto UnpackStructImpl (const T & t, std::make_index_sequence<7> , char )Defined at line 3352 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
-
template <typename T>auto UnpackStructImpl (const T & t, std::make_index_sequence<8> , char )Defined at line 3357 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
-
template <typename T>auto UnpackStructImpl (const T & t, std::make_index_sequence<9> , char )Defined at line 3362 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
-
template <typename T>auto UnpackStructImpl (const T & t, std::make_index_sequence<10> , char )Defined at line 3367 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
-
template <typename T>auto UnpackStructImpl (const T & t, std::make_index_sequence<11> , char )Defined at line 3372 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
-
template <typename T>auto UnpackStructImpl (const T & t, std::make_index_sequence<12> , char )Defined at line 3377 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
-
template <typename T>auto UnpackStructImpl (const T & t, std::make_index_sequence<13> , char )Defined at line 3382 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
-
template <typename T>auto UnpackStructImpl (const T & t, std::make_index_sequence<14> , char )Defined at line 3387 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
-
template <typename T>auto UnpackStructImpl (const T & t, std::make_index_sequence<15> , char )Defined at line 3392 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
-
template <typename T>auto UnpackStructImpl (const T & t, std::make_index_sequence<16> , char )Defined at line 3397 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
-
template <typename T>auto UnpackStructImpl (const T & t, std::make_index_sequence<17> , char )Defined at line 3402 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
-
template <typename T>auto UnpackStructImpl (const T & t, std::make_index_sequence<18> , char )Defined at line 3407 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
-
template <typename T>auto UnpackStructImpl (const T & t, std::make_index_sequence<19> , char )Defined at line 3412 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
-
template <typename T>auto UnpackStructImpl (const T & u, std::make_index_sequence<20> , char )Defined at line 3417 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
-
template <typename T>auto UnpackStructImpl (const T & in, std::make_index_sequence<21> , char )Defined at line 3422 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
-
template <typename T>auto UnpackStructImpl (const T & in, std::make_index_sequence<22> , char )Defined at line 3430 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
-
template <size_t I, typename T>decltype((UnpackStructImpl)(t, std::make_index_sequence<I>{}, 0)) UnpackStruct (const T & t)Defined at line 3439 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
-
template <typename T, size_t N>void VariadicExpand (const T (&)[N] )Helper function to do comma folding in C++11.
The array ensures left-to-right order of evaluation.
Usage: VariadicExpand({expr...});
Defined at line 3448 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
-
template <typename Tuple2Matchertypename Second>BoundSecondMatcher<Tuple2Matcher, Second> MatcherBindSecond (const Tuple2Matcher & tmconst Second & second)Given a 2-tuple matcher tm and a value second,
MatcherBindSecond(tm, second) returns a matcher that matches a
value x if and only if tm matches tuple (x, second). Useful for
implementing UnorderedPointwise() in terms of UnorderedElementsAreArray().
Defined at line 4073 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
Variables
ThreadLocal<Sequence *> g_gmock_implicit_sequence
::testing::internal::MutexBase g_gmock_mutex
const char[] kStackTraceMarker