| 94 | } |
| 95 | |
| 96 | void SendMultipleRPC(brpc::Channel* channel, int count) { |
| 97 | for (int i = 0; i < count; ++i) { |
| 98 | brpc::Controller cntl; |
| 99 | test::EchoRequest req; |
| 100 | test::EchoResponse res; |
| 101 | req.set_message(EXP_REQUEST); |
| 102 | test::EchoService_Stub stub(channel); |
| 103 | stub.Echo(&cntl, &req, &res, NULL); |
| 104 | |
| 105 | EXPECT_EQ(EXP_RESPONSE, res.message()) << cntl.ErrorText(); |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | TEST_F(SSLTest, sanity) { |
| 110 | // Test RPC based on SSL + brpc protocol |