Mercurial > hg > orthanc
comparison OrthancFramework/UnitTestsSources/LoggingTests.cpp @ 4276:68e24935f258
fix for visual studio
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 03 Nov 2020 17:00:58 +0100 |
parents | d7a50b7b8466 |
children | 0923247e69f6 |
comparison
equal
deleted
inserted
replaced
4275:d7a50b7b8466 | 4276:68e24935f258 |
---|---|
382 ASSERT_TRUE(Logging::LookupCategory(c, Logging::GetCategoryName(i))); | 382 ASSERT_TRUE(Logging::LookupCategory(c, Logging::GetCategoryName(i))); |
383 s.insert(Logging::GetCategoryName(i)); | 383 s.insert(Logging::GetCategoryName(i)); |
384 } | 384 } |
385 | 385 |
386 ASSERT_EQ(5u, s.size()); | 386 ASSERT_EQ(5u, s.size()); |
387 ASSERT_NE(s.end(), s.find("generic")); | 387 ASSERT_TRUE(s.find("generic") != s.end()); |
388 ASSERT_NE(s.end(), s.find("plugins")); | 388 ASSERT_TRUE(s.find("plugins") != s.end()); |
389 ASSERT_NE(s.end(), s.find("rest")); | 389 ASSERT_TRUE(s.find("rest") != s.end()); |
390 ASSERT_NE(s.end(), s.find("sqlite")); | 390 ASSERT_TRUE(s.find("sqlite") != s.end()); |
391 ASSERT_NE(s.end(), s.find("dicom")); | 391 ASSERT_TRUE(s.find("dicom") != s.end()); |
392 | 392 |
393 ASSERT_THROW(Logging::GetCategoryName(Logging::GetCategoriesCount()), OrthancException); | 393 ASSERT_THROW(Logging::GetCategoryName(Logging::GetCategoriesCount()), OrthancException); |
394 | 394 |
395 ASSERT_STREQ("generic", Logging::GetCategoryName(Logging::LogCategory_GENERIC)); | 395 ASSERT_STREQ("generic", Logging::GetCategoryName(Logging::LogCategory_GENERIC)); |
396 ASSERT_STREQ("plugins", Logging::GetCategoryName(Logging::LogCategory_PLUGINS)); | 396 ASSERT_STREQ("plugins", Logging::GetCategoryName(Logging::LogCategory_PLUGINS)); |