Lines Matching refs:logBuffer

56   LogBuffer logBuffer(&callback, buffer, kDefaultBufferSize);  in TEST()  local
57 logBuffer.handleLog(LogBufferLogLevel::INFO, 0, testLogStr); in TEST()
60 logBuffer.copyLogs(outBuffer, kOutBufferSize, &numLogsDropped); in TEST()
77 LogBuffer logBuffer(&callback, buffer, kDefaultBufferSize); in TEST() local
78 logBuffer.handleLog(LogBufferLogLevel::INFO, 0, testLogStr); in TEST()
79 logBuffer.handleLog(LogBufferLogLevel::INFO, 0, testLogStr2); in TEST()
82 logBuffer.copyLogs(outBuffer, kOutBufferSize, &numLogsDropped); in TEST()
101 LogBuffer logBuffer(&callback, buffer, kDefaultBufferSize); in TEST() local
102 logBuffer.handleLog(LogBufferLogLevel::INFO, 0, testLogStr); in TEST()
104 logBuffer.copyLogs(outBuffer, kOutBufferSize, &numLogsDropped); in TEST()
106 logBuffer.copyLogs(outBuffer, kOutBufferSize, &numLogsDropped); in TEST()
120 LogBuffer logBuffer(&callback, buffer, kDefaultBufferSize); in TEST() local
121 logBuffer.handleLog(LogBufferLogLevel::INFO, 0, testLogStrStr.c_str()); in TEST()
124 logBuffer.copyLogs(outBuffer, kOutBufferSize, &numLogsDropped); in TEST()
137 LogBuffer logBuffer(&callback, buffer, kDefaultBufferSize); in TEST() local
144 logBuffer.handleLog(LogBufferLogLevel::INFO, 0, testLogStr); in TEST()
148 logBuffer.copyLogs(outBuffer, kOutBufferSize, &numLogsDropped); in TEST()
164 LogBuffer logBuffer(&callback, buffer, kDefaultBufferSize); in TEST() local
166 logBuffer.handleLog(LogBufferLogLevel::INFO, 0, "test"); in TEST()
169 logBuffer.copyLogs(outBuffer, kOutBufferSize, &numLogsDropped); in TEST()
179 LogBuffer logBuffer(&callback, buffer, kDefaultBufferSize); in TEST() local
181 logBuffer.handleLog(LogBufferLogLevel::INFO, 0, ""); in TEST()
184 logBuffer.copyLogs(outBuffer, kOutBufferSize, &numLogsDropped); in TEST()
194 LogBuffer logBuffer(&callback, buffer, kDefaultBufferSize); in TEST() local
196 logBuffer.handleLog(LogBufferLogLevel::INFO, 0, "\0\0\0"); in TEST()
199 logBuffer.copyLogs(outBuffer, kOutBufferSize, &numLogsDropped); in TEST()
209 LogBuffer logBuffer(&callback, buffer, kDefaultBufferSize); in TEST() local
212 logBuffer.handleLog(LogBufferLogLevel::INFO, 0, testStr.c_str()); in TEST()
215 logBuffer.copyLogs(outBuffer, kOutBufferSize, &numLogsDropped); in TEST()
225 LogBuffer logBuffer(&callback, buffer, kDefaultBufferSize); in TEST() local
230 ASSERT_FALSE(logBuffer.logWouldCauseOverflow(1)); in TEST()
237 logBuffer.handleLog(LogBufferLogLevel::INFO, 0, testLogStr); in TEST()
243 logBuffer.handleLog(LogBufferLogLevel::INFO, 0, testLogStr); in TEST()
246 ASSERT_FALSE(logBuffer.logWouldCauseOverflow(1)); in TEST()
249 ASSERT_TRUE(logBuffer.logWouldCauseOverflow(2)); in TEST()