Test.cc 370 B

123456789101112131415161718192021222324
  1. #include "Test.h"
  2. #include <Logging.h>
  3. int main(int /*argc*/, char** /*argv*/)
  4. {
  5. Logging::OpenLog();
  6. Logging::SetLogMask(Logging::Severity::Info);
  7. if (
  8. Http::Test::TestHttpClient()
  9. )
  10. {
  11. Logging::Log(Logging::Severity::Info, "Pass");
  12. Logging::CloseLog();
  13. return 0;
  14. }
  15. Logging::Log(Logging::Severity::Info, "Error");
  16. Logging::CloseLog();
  17. return -1;
  18. }