RpcSessionTest.cc 610 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #include <boost/asio.hpp>
  2. #include <gtest/gtest.h>
  3. #include "Rpc/RpcSession.h"
  4. #include "Rpc/RpcServerMock.h"
  5. namespace Egametang {
  6. class RpcSessionTest: public testing::Test
  7. {
  8. protected:
  9. boost::asio::io_service ioService;
  10. int port;
  11. RpcServerMock mockServer;
  12. RpcSession session;
  13. public:
  14. RpcSessionTest():
  15. ioService(), port(10000),
  16. mockServer(ioService, port), session(ioService, mockServer)
  17. {
  18. }
  19. virtual ~RpcSessionTest()
  20. {
  21. }
  22. };
  23. TEST_F(RpcSessionTest, Test1)
  24. {
  25. }
  26. } // namespace Egametang
  27. int main(int argc, char* argv[])
  28. {
  29. testing::InitGoogleTest(&argc, argv);
  30. return RUN_ALL_TESTS();
  31. }