TestHelper.h (1583B)
1 // Copyright (c) Microsoft Corporation. 2 // Licensed under the MIT License. 3 4 #pragma once 5 6 #include "sfsclient/Logging.h" 7 8 #include <chrono> 9 10 #define TEST_UNSCOPED_INFO(message) \ 11 do \ 12 { \ 13 const std::string __message = (message); \ 14 SFS::test::LogCallbackToTest({SFS::LogSeverity::Info, \ 15 __message.c_str(), \ 16 __FILE__, \ 17 __LINE__, \ 18 __FUNCTION__, \ 19 std::chrono::system_clock::now()}); \ 20 } while ((void)0, 0) 21 22 namespace SFS::test 23 { 24 // Use this method to redirect the library logging to the Catch2 logging system 25 void LogCallbackToTest(const SFS::LogData& logData); 26 } // namespace SFS::test