LogTest.cc 587 B

12345678910111213141516171819202122232425262728293031323334
  1. // Copyright: All Rights Reserved
  2. // Author: egametang@gmail.com (tanghai)
  3. #include <gtest/gtest.h>
  4. #include <gmock/gmock.h>
  5. #include <glog/logging.h>
  6. #include <gflags/gflags.h>
  7. #include "Log/Log.h"
  8. namespace Egametang {
  9. class LogTest: public testing::Test
  10. {
  11. };
  12. TEST_F(LogTest, Log)
  13. {
  14. ELOG(trace) << "Test ELOG Marco!";
  15. }
  16. } // namespace Egametang
  17. int main(int argc, char* argv[])
  18. {
  19. Egametang::BoostLogInit log(argv[0]);
  20. testing::InitGoogleTest(&argc, argv);
  21. google::InitGoogleLogging(argv[0]);
  22. google::ParseCommandLineFlags(&argc, &argv, true);
  23. return RUN_ALL_TESTS();
  24. }