#include "config.h"
#include "utilities.h"
#include <fcntl.h>
#include <sys/stat.h>
#include <cstdio>
#include <cstdlib>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <memory>
#include <queue>
#include <sstream>
#include <string>
#include <vector>
#include "base/commandlineflags.h"
#include <glog/logging.h>
#include <glog/raw_logging.h>
#include "googletest.h"
Go to the source code of this file.
Classes | |
struct | LogTimeRecorder |
struct | MyLogger |
struct | NewHook |
struct | RecordDeletionLogger |
class | TestLogSinkImpl |
class | TestLogSinkWriter |
class | TestWaitingLogSink |
struct | UserDefinedClass |
Namespaces | |
base | |
base::internal | |
glog_internal_namespace_ | |
LogTimes | |
Enumerations | |
enum | { CASE_A, CASE_B } |
Functions | |
static void | BM_Check1 (int n) |
static void | BM_Check2 (int n) |
static void | BM_Check3 (int n) |
static void | BM_logspeed (int n) |
static void | BM_vlog (int n) |
static void | CheckFailure (int a, int b, const char *file, int line, const char *msg) |
static void | CheckFile (const string &name, const string &expected_string, const bool checkInFileOrNot=true) |
DECLARE_string (log_backtrace_at) | |
static void | DeleteFiles (const string &pattern) |
int64 | elapsedTime_ns (const timespec &begin, const timespec &end) |
bool | base::internal::GetExitOnDFatal () |
static void | GetFiles (const string &pattern, vector< string > *files) |
static void | LogWithLevels (int v, int severity, bool err, bool alsoerr) |
int | main (int argc, char **argv) |
static void | NoAllocNewHook () |
ostream & | operator<< (ostream &out, const UserDefinedClass &) |
std::ostream & | operator<< (std::ostream &stream, LogTimeRecorder &t) |
bool | glog_internal_namespace_::SafeFNMatch_ (const char *pattern, size_t patt_len, const char *str, size_t str_len) |
void | base::internal::SetExitOnDFatal (bool value) |
TEST (CheckNOTNULL, Simple) | |
TEST (DeathCheckNN, Simple) | |
TEST (DeathNoAllocNewHook, logging) | |
TEST (DeathRawCHECK, logging) | |
TEST (DeathSTREQ, logging) | |
TEST (SafeFNMatch, logging) | |
TEST (Strerror, logging) | |
TEST (UserDefinedClass, logging) | |
static void | TestBasename () |
static void | TestBasenameAppendWhenNoTimestamp () |
static void | TestCHECK () |
static void | TestCustomLoggerDeletionOnShutdown () |
static void | TestDCHECK () |
static void | TestErrno () |
static void | TestExtension () |
static _END_GOOGLE_NAMESPACE_ void | TestLogging (bool check_counts) |
static void | TestLoggingLevels () |
static void | TestLogPeriodically () |
static void | TestLogSink () |
static void | TestLogSinkWaitTillSent () |
static void | TestLogString () |
static void | TestLogToString () |
static void | TestOneTruncate (const char *path, uint64 limit, uint64 keep, size_t dsize, size_t ksize, size_t expect) |
static void | TestRawLogging () |
static void | TestSTREQ () |
static void | TestSymlink () |
static void | TestTruncate () |
static void | TestTwoProcessesWrite () |
int | TestVlogHelper () |
static void | TestVLogModule () |
static void | TestWrapper () |
static _END_GOOGLE_NAMESPACE_ bool | WrapSafeFNMatch (string pattern, string str) |
Variables | |
static vector< string > | global_messages |
GLOG_CONSTEXPR int64_t | LogTimes::LOG_PERIOD_NS = 10000000 |
GLOG_CONSTEXPR int64_t | LogTimes::LOG_PERIOD_TOL_NS = 500000 |
GLOG_CONSTEXPR size_t | LogTimes::MAX_CALLS = 10 |
static int | x = -1 |
anonymous enum |
Enumerator | |
---|---|
CASE_A | |
CASE_B |
Definition at line 583 of file logging_unittest.cc.
|
static |
Definition at line 121 of file logging_unittest.cc.
|
static |
Definition at line 150 of file logging_unittest.cc.
|
static |
Definition at line 136 of file logging_unittest.cc.
|
static |
Definition at line 171 of file logging_unittest.cc.
|
static |
Definition at line 178 of file logging_unittest.cc.
|
static |
Definition at line 167 of file logging_unittest.cc.
|
static |
Definition at line 716 of file logging_unittest.cc.
DECLARE_string | ( | log_backtrace_at | ) |
Definition at line 707 of file logging_unittest.cc.
int64 elapsedTime_ns | ( | const timespec & | begin, |
const timespec & | end | ||
) |
Definition at line 1074 of file logging_unittest.cc.
Definition at line 674 of file logging_unittest.cc.
|
static |
Definition at line 401 of file logging_unittest.cc.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 185 of file logging_unittest.cc.
|
static |
Definition at line 326 of file logging_unittest.cc.
|
inline |
Definition at line 1463 of file logging_unittest.cc.
std::ostream& operator<< | ( | std::ostream & | stream, |
LogTimeRecorder & | t | ||
) |
Definition at line 1069 of file logging_unittest.cc.
TEST | ( | CheckNOTNULL | , |
Simple | |||
) |
Definition at line 658 of file logging_unittest.cc.
TEST | ( | DeathCheckNN | , |
Simple | |||
) |
Definition at line 669 of file logging_unittest.cc.
TEST | ( | DeathNoAllocNewHook | , |
logging | |||
) |
Definition at line 339 of file logging_unittest.cc.
TEST | ( | DeathRawCHECK | , |
logging | |||
) |
Definition at line 497 of file logging_unittest.cc.
TEST | ( | DeathSTREQ | , |
logging | |||
) |
Definition at line 648 of file logging_unittest.cc.
TEST | ( | SafeFNMatch | , |
logging | |||
) |
Definition at line 1122 of file logging_unittest.cc.
TEST | ( | Strerror | , |
logging | |||
) |
Definition at line 1301 of file logging_unittest.cc.
TEST | ( | UserDefinedClass | , |
logging | |||
) |
Definition at line 1468 of file logging_unittest.cc.
|
static |
Definition at line 737 of file logging_unittest.cc.
|
static |
Definition at line 753 of file logging_unittest.cc.
|
static |
Definition at line 588 of file logging_unittest.cc.
|
static |
Definition at line 1002 of file logging_unittest.cc.
|
static |
Definition at line 614 of file logging_unittest.cc.
|
static |
Definition at line 881 of file logging_unittest.cc.
|
static |
Definition at line 831 of file logging_unittest.cc.
|
static |
Definition at line 276 of file logging_unittest.cc.
|
static |
Definition at line 466 of file logging_unittest.cc.
|
static |
Definition at line 1080 of file logging_unittest.cc.
|
static |
Definition at line 549 of file logging_unittest.cc.
|
static |
Definition at line 1281 of file logging_unittest.cc.
|
static |
Definition at line 504 of file logging_unittest.cc.
|
static |
Definition at line 521 of file logging_unittest.cc.
|
static |
Definition at line 889 of file logging_unittest.cc.
|
static |
Definition at line 347 of file logging_unittest.cc.
|
static |
Definition at line 634 of file logging_unittest.cc.
|
static |
Definition at line 812 of file logging_unittest.cc.
|
static |
Definition at line 936 of file logging_unittest.cc.
|
static |
Definition at line 779 of file logging_unittest.cc.
int TestVlogHelper | ( | ) |
Definition at line 479 of file logging_unittest.cc.
|
static |
Definition at line 486 of file logging_unittest.cc.
|
static |
Definition at line 868 of file logging_unittest.cc.
Definition at line 1115 of file logging_unittest.cc.
|
static |
Definition at line 1145 of file logging_unittest.cc.
|
static |
Definition at line 120 of file logging_unittest.cc.