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