aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/end2end/interceptors_util.h
diff options
context:
space:
mode:
authorGravatar Yash Tibrewal <yashkt@google.com>2018-12-20 16:16:39 -0800
committerGravatar Yash Tibrewal <yashkt@google.com>2018-12-20 16:16:39 -0800
commit0c7eb8daf8414a8efcb742d9af59d8e38c1b1b22 (patch)
tree0517062d2fab7a01be0a53f1999403e87e80d8a4 /test/cpp/end2end/interceptors_util.h
parentb09ed93d02197235471e6e65df2df2cbeb506f50 (diff)
parent102d5d88a626e29f1dccc4ffdb977d1bcd7a5937 (diff)
Merge branch 'master' into fathom
Diffstat (limited to 'test/cpp/end2end/interceptors_util.h')
-rw-r--r--test/cpp/end2end/interceptors_util.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/cpp/end2end/interceptors_util.h b/test/cpp/end2end/interceptors_util.h
index d886e32494..659e613d2e 100644
--- a/test/cpp/end2end/interceptors_util.h
+++ b/test/cpp/end2end/interceptors_util.h
@@ -82,6 +82,22 @@ class DummyInterceptorFactory
}
};
+/* This interceptor factory returns nullptr on interceptor creation */
+class NullInterceptorFactory
+ : public experimental::ClientInterceptorFactoryInterface,
+ public experimental::ServerInterceptorFactoryInterface {
+ public:
+ virtual experimental::Interceptor* CreateClientInterceptor(
+ experimental::ClientRpcInfo* info) override {
+ return nullptr;
+ }
+
+ virtual experimental::Interceptor* CreateServerInterceptor(
+ experimental::ServerRpcInfo* info) override {
+ return nullptr;
+ }
+};
+
class EchoTestServiceStreamingImpl : public EchoTestService::Service {
public:
~EchoTestServiceStreamingImpl() override {}