Lines Matching refs:slog
32 auto slog = std::make_unique<SimpleLog>(); in TEST() local
35 EXPECT_EQ((size_t)0, countNewLines(slog->dumpToString())); in TEST()
38 slog->log("Hello %d", nine); in TEST()
39 slog->log("World"); in TEST()
41 slog->logs(-1 /* nowNs */, std::string("ABC")); // may take a std::string as well in TEST()
44 EXPECT_EQ((size_t)3, countNewLines(slog->dumpToString())); in TEST()
47 slog->log(oneSecond /* nowNs */, "Hello World %d", 10); in TEST()
48 slog->log(oneSecond * 2 /* nowNs */, "%s", "Goodbye"); in TEST()
50 EXPECT_EQ((size_t)5, countNewLines(slog->dumpToString())); in TEST()
54 EXPECT_EQ((size_t)1, countNewLines(slog->dumpToString("" /* prefix */, 1 /* lines */))); in TEST()
58 slog->dumpToString("" /* prefix */, 0 /* lines */, oneSecond /* limitNs */))); in TEST()
62 slog->dumpToString("" /* prefix */, 0 /* lines */, oneSecond * 2 /* limitNs */))); in TEST()
66 slog->dumpToString("" /* prefix */, 0 /* lines */, oneSecond * 2 + 1 /* limitNs */))); in TEST()
68 std::cout << slog->dumpToString() << std::flush; in TEST()
70 slog->dump(0 /* fd (stdout) */, " "); // add a prefix in TEST()