#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 | MyLogger |
struct | NewHook |
struct | RecordDeletionLogger |
class | TestLogSinkImpl |
class | TestLogSinkWriter |
class | TestWaitingLogSink |
struct | UserDefinedClass |
Namespaces | |
base | |
base::internal | |
glog_internal_namespace_ | |
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) |
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 &) |
void | PrefixAttacher (std::ostream &s, const LogMessageInfo &l, void *data) |
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 (LogMsgTime, gmtoff) | |
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 | 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 () |
static void | TestWrapper () |
static _END_GOOGLE_NAMESPACE_ bool | WrapSafeFNMatch (string pattern, string str) |
Variables | |
static vector< string > | global_messages |
static int | x = -1 |
anonymous enum |
Enumerator | |
---|---|
CASE_A | |
CASE_B |
Definition at line 572 of file logging_custom_prefix_unittest.cc.
|
static |
Definition at line 119 of file logging_custom_prefix_unittest.cc.
|
static |
Definition at line 148 of file logging_custom_prefix_unittest.cc.
|
static |
Definition at line 134 of file logging_custom_prefix_unittest.cc.
|
static |
Definition at line 169 of file logging_custom_prefix_unittest.cc.
|
static |
Definition at line 176 of file logging_custom_prefix_unittest.cc.
|
static |
Definition at line 165 of file logging_custom_prefix_unittest.cc.
|
static |
Definition at line 705 of file logging_custom_prefix_unittest.cc.
DECLARE_string | ( | log_backtrace_at | ) |
Definition at line 696 of file logging_custom_prefix_unittest.cc.
Definition at line 663 of file logging_custom_prefix_unittest.cc.
|
static |
Definition at line 408 of file logging_custom_prefix_unittest.cc.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 207 of file logging_custom_prefix_unittest.cc.
|
static |
Definition at line 333 of file logging_custom_prefix_unittest.cc.
|
inline |
Definition at line 1356 of file logging_custom_prefix_unittest.cc.
Definition at line 184 of file logging_custom_prefix_unittest.cc.
TEST | ( | CheckNOTNULL | , |
Simple | |||
) |
Definition at line 647 of file logging_custom_prefix_unittest.cc.
TEST | ( | DeathCheckNN | , |
Simple | |||
) |
Definition at line 658 of file logging_custom_prefix_unittest.cc.
TEST | ( | DeathNoAllocNewHook | , |
logging | |||
) |
Definition at line 346 of file logging_custom_prefix_unittest.cc.
TEST | ( | DeathRawCHECK | , |
logging | |||
) |
Definition at line 486 of file logging_custom_prefix_unittest.cc.
TEST | ( | DeathSTREQ | , |
logging | |||
) |
Definition at line 637 of file logging_custom_prefix_unittest.cc.
TEST | ( | LogMsgTime | , |
gmtoff | |||
) |
Definition at line 1372 of file logging_custom_prefix_unittest.cc.
TEST | ( | SafeFNMatch | , |
logging | |||
) |
Definition at line 1018 of file logging_custom_prefix_unittest.cc.
TEST | ( | Strerror | , |
logging | |||
) |
Definition at line 1194 of file logging_custom_prefix_unittest.cc.
TEST | ( | UserDefinedClass | , |
logging | |||
) |
Definition at line 1361 of file logging_custom_prefix_unittest.cc.
|
static |
Definition at line 726 of file logging_custom_prefix_unittest.cc.
|
static |
Definition at line 742 of file logging_custom_prefix_unittest.cc.
|
static |
Definition at line 577 of file logging_custom_prefix_unittest.cc.
|
static |
Definition at line 991 of file logging_custom_prefix_unittest.cc.
|
static |
Definition at line 603 of file logging_custom_prefix_unittest.cc.
|
static |
Definition at line 870 of file logging_custom_prefix_unittest.cc.
|
static |
Definition at line 820 of file logging_custom_prefix_unittest.cc.
|
static |
Definition at line 283 of file logging_custom_prefix_unittest.cc.
|
static |
Definition at line 473 of file logging_custom_prefix_unittest.cc.
|
static |
Definition at line 538 of file logging_custom_prefix_unittest.cc.
|
static |
Definition at line 1177 of file logging_custom_prefix_unittest.cc.
|
static |
Definition at line 493 of file logging_custom_prefix_unittest.cc.
|
static |
Definition at line 510 of file logging_custom_prefix_unittest.cc.
|
static |
Definition at line 878 of file logging_custom_prefix_unittest.cc.
|
static |
Definition at line 354 of file logging_custom_prefix_unittest.cc.
|
static |
Definition at line 623 of file logging_custom_prefix_unittest.cc.
|
static |
Definition at line 801 of file logging_custom_prefix_unittest.cc.
|
static |
Definition at line 925 of file logging_custom_prefix_unittest.cc.
|
static |
Definition at line 768 of file logging_custom_prefix_unittest.cc.
|
static |
Definition at line 857 of file logging_custom_prefix_unittest.cc.
Definition at line 1011 of file logging_custom_prefix_unittest.cc.
|
static |
Definition at line 1041 of file logging_custom_prefix_unittest.cc.
|
static |
Definition at line 118 of file logging_custom_prefix_unittest.cc.