Lines Matching refs:elog
32 auto elog = std::make_unique<ErrorLog<int32_t>>(100 /* lines */); in TEST() local
35 EXPECT_EQ((size_t)1, countNewLines(elog->dumpToString())); in TEST()
37 elog->log(1 /* code */, 0 /* nowNs */); in TEST()
38 elog->log(2 /* code */, 1 /* nowNs */); in TEST()
41 EXPECT_EQ((size_t)4, countNewLines(elog->dumpToString())); in TEST()
44 elog->log(2 /* code */, oneSecond /* nowNs */); in TEST()
45 EXPECT_EQ((size_t)4, countNewLines(elog->dumpToString())); in TEST()
48 elog->log(2 /* code */, oneSecond * 2 /* nowNs */); in TEST()
49 EXPECT_EQ((size_t)5, countNewLines(elog->dumpToString())); in TEST()
53 EXPECT_EQ((size_t)3, countNewLines(elog->dumpToString("" /* prefix */, 3 /* lines */))); in TEST()
57 elog->dumpToString("" /* prefix */, 0 /* lines */, oneSecond - 1 /* limitNs */))); in TEST()
61 elog->dumpToString("" /* prefix */, 0 /* lines */, oneSecond /* limitNs */))); in TEST()
65 elog->dumpToString("" /* prefix */, 0 /* lines */, oneSecond + 1 /* limitNs */))); in TEST()
69 elog->dumpToString("" /* prefix */, 0 /* lines */, oneSecond * 2 /* limitNs */))); in TEST()
73 elog->dumpToString("" /* prefix */, 0 /* lines */, oneSecond * 2 + 1/* limitNs */))); in TEST()
75 elog->dump(0 /* fd (stdout) */); in TEST()