| 230 | dmArray<char> g_LogListenerOutput; |
| 231 | |
| 232 | static void TestLogCaptureCallback(LogSeverity severity, const char* domain, const char* formatted_string) |
| 233 | { |
| 234 | if (strstr(formatted_string, "Log server started on port") != 0) |
| 235 | return; |
| 236 | |
| 237 | dmArray<char>* log_output = &g_LogListenerOutput; |
| 238 | uint32_t len = (uint32_t)strlen(formatted_string); |
| 239 | log_output->SetCapacity(log_output->Size() + len + 1); |
| 240 | log_output->PushArray(formatted_string, len); |
| 241 | } |
| 242 | |
| 243 | TEST(dmLog, TestCapture) |
| 244 | { |
nothing calls this directly
no test coverage detected