Go to the documentation of this file.
30 #include <glog/logging.h>
31 #include <glog/raw_logging.h>
36 #ifdef HAVE_LIB_GFLAGS
37 #include <gflags/gflags.h>
38 using namespace GFLAGS_NAMESPACE;
46 using GOOGLE_NAMESPACE::glog_testing::ScopedMockLog;
50 using testing::HasSubstr;
58 TEST(CleanImmediatelyWithAbsolutePrefix, logging) {
63 for (
unsigned i = 0;
i < 1000; ++
i) {
67 for (
unsigned i = 0;
i < 10; ++
i) {
74 int main(
int argc,
char **argv) {
75 FLAGS_colorlogtostderr =
false;
76 FLAGS_timestamp_in_logfile_name =
true;
77 #ifdef HAVE_LIB_GFLAGS
GTEST_API_ void InitGoogleMock(int *argc, char **argv)
int main(int argc, char **argv)
_START_GOOGLE_NAMESPACE_ void InitGoogleTest(int *, char **)
void EnableLogCleaner(unsigned int overdue_days)
static string GetCapturedTestStderr()
int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_
#define EXPECT_TRUE(cond)
static void CaptureTestStderr()
TEST(CleanImmediatelyWithAbsolutePrefix, logging)
bool IsGoogleLoggingInitialized()
#define EXPECT_FALSE(cond)
void SetLogDestination(LogSeverity severity, const char *base_filename)
GTEST_API_ Cardinality AnyNumber()
void ParseCommandLineFlags(int *argc, char **argv)
void SetLogFilenameExtension(const char *ext)
void InitGoogleLogging(const char *argv0)
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:48