| 123456789101112131415161718192021222324252627282930313233343536373839 |
- #include <boost/asio.hpp>
- #include <gtest/gtest.h>
- #include "Rpc/RpcSession.h"
- #include "Rpc/RpcServerMock.h"
- namespace Egametang {
- class RpcSessionTest: public testing::Test
- {
- protected:
- boost::asio::io_service ioService;
- int port;
- RpcServerMock mockServer;
- RpcSession session;
- public:
- RpcSessionTest():
- ioService(), port(10000),
- mockServer(ioService, port), session(ioService, mockServer)
- {
- }
- virtual ~RpcSessionTest()
- {
- }
- };
- TEST_F(RpcSessionTest, Test1)
- {
- }
- } // namespace Egametang
- int main(int argc, char* argv[])
- {
- testing::InitGoogleTest(&argc, argv);
- return RUN_ALL_TESTS();
- }
|