LogTest.cc 472 B

123456789101112131415161718192021222324252627
  1. // Copyright: All Rights Reserved
  2. // Author: egametang@gmail.com (tanghai)
  3. #include <gtest/gtest.h>
  4. #include <gmock/gmock.h>
  5. #include <boost/log/detail/thread_id.hpp>
  6. #include "Log/Log.h"
  7. namespace Egametang {
  8. class LogTest: public testing::Test
  9. {
  10. };
  11. TEST_F(LogTest, Log)
  12. {
  13. LOG(INFO) << "Test LOG Marco!";
  14. }
  15. } // namespace Egametang
  16. int main(int argc, char* argv[])
  17. {
  18. testing::InitGoogleTest(&argc, argv);
  19. Egametang::Log::Init(argv[0]);
  20. return RUN_ALL_TESTS();
  21. }