aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Yash Tibrewal <yashkt@google.com>2018-12-28 17:27:38 -0800
committerGravatar Yash Tibrewal <yashkt@google.com>2018-12-28 17:27:38 -0800
commit4aeba4252893755ff13b2cc0edfcc954c6d04a6b (patch)
tree6310f95aa54ec4d4b516394dbb763a0dd588e8f8 /test
parenta76465c65cca37dbb85adc7d97c5d4af367bef0f (diff)
Provide GetOriginalSendMessage for some APIs
Diffstat (limited to 'test')
-rw-r--r--test/cpp/end2end/client_interceptors_end2end_test.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/cpp/end2end/client_interceptors_end2end_test.cc b/test/cpp/end2end/client_interceptors_end2end_test.cc
index 8abf4eb3f4..3414ebe64e 100644
--- a/test/cpp/end2end/client_interceptors_end2end_test.cc
+++ b/test/cpp/end2end/client_interceptors_end2end_test.cc
@@ -293,6 +293,11 @@ class LoggingInterceptor : public experimental::Interceptor {
SerializationTraits<EchoRequest>::Deserialize(&copied_buffer, &req)
.ok());
EXPECT_TRUE(req.message().find("Hello") == 0);
+ EXPECT_EQ(
+ static_cast<const EchoRequest*>(methods->GetOriginalSendMessage())
+ ->message()
+ .find("Hello"),
+ 0);
}
if (methods->QueryInterceptionHookPoint(
experimental::InterceptionHookPoints::PRE_SEND_CLOSE)) {