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(CleanImmediately, logging) {
62 for (
unsigned i = 0;
i < 1000; ++
i) {
69 int main(
int argc,
char **argv) {
70 FLAGS_colorlogtostderr =
false;
71 FLAGS_timestamp_in_logfile_name =
true;
72 #ifdef HAVE_LIB_GFLAGS
GTEST_API_ void InitGoogleMock(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()
bool IsGoogleLoggingInitialized()
#define EXPECT_FALSE(cond)
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