Go to the documentation of this file.
37 #include "gmock/internal/gmock-internal-utils.h"
42 #include "gmock/gmock.h"
43 #include "gmock/internal/gmock-port.h"
44 #include "gtest/gtest.h"
59 for (
size_t i = 1;
i <
fields.size();
i++) {
74 char prev_char =
'\0';
75 for (
const char* p = id_name; *p !=
'\0'; prev_char = *(p++)) {
78 const bool starts_new_word =
IsUpper(*p) ||
83 if (starts_new_word &&
result !=
"")
120 return failure_reporter;
150 int stack_frames_to_skip) {
159 std::cout <<
"\nGMOCK WARNING:";
166 if (stack_frames_to_skip >= 0) {
169 const int actual_to_skip = 0;
173 const int actual_to_skip = stack_frames_to_skip + 1;
180 std::cout <<
"Stack trace:\n"
184 std::cout << ::std::flush;
192 "You are using DoDefault() inside a composite action like "
193 "DoAll() or WithArgs(). This is not supported for technical "
194 "reasons. Please instead spell out the default action, or "
195 "assign the default action to an Action variable and use "
196 "the variable in various places.");
GTEST_API_ void IllegalDoDefault(const char *file, int line)
GTEST_API_ FailureReporterInterface * GetFailureReporter()
const char kErrorVerbosity[]
GTEST_API_ void Log(LogSeverity severity, const std::string &message, int stack_frames_to_skip)
GRPC_CUSTOM_MESSAGE Message
GTEST_API_ std::string ConvertIdentifierNameToWords(const char *id_name)
GTEST_API_ std::string GetCurrentOsStackTraceExceptTop(UnitTest *unit_test, int skip_count)
const char kInfoVerbosity[]
static GTEST_DEFINE_STATIC_MUTEX_(g_log_mutex)
GTEST_API_ std::string JoinAsTuple(const Strings &fields)
void Assert(bool condition, const char *file, int line)
GTEST_API_ WithoutMatchers GetWithoutMatchers()
static UnitTest * GetInstance()
::std::vector< ::std::string > Strings
GTEST_API_ bool LogIsVisible(LogSeverity severity)
void ReportFailure(FailureType type, const char *file, int line, const std::string &message) override
grpc
Author(s):
autogenerated on Fri May 16 2025 02:58:31