aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/end2end
diff options
context:
space:
mode:
authorGravatar yang-g <yangg@google.com>2016-01-15 11:28:35 -0800
committerGravatar yang-g <yangg@google.com>2016-01-15 11:28:35 -0800
commitc021c9be5b1b969bd8ca82918962b4bb4a4d767e (patch)
tree7ff3049f0aa59886a6bc590f0562c46b504a7eac /test/cpp/end2end
parentf48766d347de8e23a8a93e4b7645dfe9ac546ed4 (diff)
clang-format
Diffstat (limited to 'test/cpp/end2end')
-rw-r--r--test/cpp/end2end/hybrid_end2end_test.cc6
-rw-r--r--test/cpp/end2end/test_service_impl.cc7
2 files changed, 6 insertions, 7 deletions
diff --git a/test/cpp/end2end/hybrid_end2end_test.cc b/test/cpp/end2end/hybrid_end2end_test.cc
index e21c0f3b3b..b1b5e55d93 100644
--- a/test/cpp/end2end/hybrid_end2end_test.cc
+++ b/test/cpp/end2end/hybrid_end2end_test.cc
@@ -318,8 +318,7 @@ TEST_F(HybridEnd2endTest, AsyncEcho) {
TEST_F(HybridEnd2endTest, AsyncEchoRequestStream) {
EchoTestService::WithAsyncMethod_RequestStream<
- EchoTestService::WithAsyncMethod_Echo<TestServiceImpl> >
- service;
+ EchoTestService::WithAsyncMethod_Echo<TestServiceImpl> > service;
SetUpServer(&service, nullptr);
ResetStub();
std::thread echo_handler_thread(
@@ -360,8 +359,7 @@ TEST_F(HybridEnd2endTest, GenericEcho) {
TEST_F(HybridEnd2endTest, GenericEchoAsyncRequestStream) {
EchoTestService::WithAsyncMethod_RequestStream<
- EchoTestService::WithGenericMethod_Echo<TestServiceImpl> >
- service;
+ EchoTestService::WithGenericMethod_Echo<TestServiceImpl> > service;
AsyncGenericService generic_service;
SetUpServer(&service, &generic_service);
ResetStub();
diff --git a/test/cpp/end2end/test_service_impl.cc b/test/cpp/end2end/test_service_impl.cc
index 97d15b13ca..c9a32ecf5a 100644
--- a/test/cpp/end2end/test_service_impl.cc
+++ b/test/cpp/end2end/test_service_impl.cc
@@ -113,9 +113,10 @@ Status TestServiceImpl::Echo(ServerContext* context, const EchoRequest* request,
if (request->has_param() && request->param().echo_metadata()) {
const std::multimap<grpc::string_ref, grpc::string_ref>& client_metadata =
context->client_metadata();
- for (std::multimap<grpc::string_ref, grpc::string_ref>::const_iterator
- iter = client_metadata.begin();
- iter != client_metadata.end(); ++iter) {
+ for (
+ std::multimap<grpc::string_ref, grpc::string_ref>::const_iterator iter =
+ client_metadata.begin();
+ iter != client_metadata.end(); ++iter) {
context->AddTrailingMetadata(ToString(iter->first),
ToString(iter->second));
}