Searched refs:elog (Results 1 – 1 of 1) sorted by relevance
/system/media/audio_utils/tests/ |
D | errorlog_tests.cpp | 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() [all …]
|