|
|
|
@ -894,9 +894,6 @@ TEST_F(ClientGlobalInterceptorEnd2endTest, DummyGlobalInterceptor) { |
|
|
|
|
MakeCall(channel); |
|
|
|
|
// Make sure all 20 dummy interceptors were run with the global interceptor
|
|
|
|
|
EXPECT_EQ(DummyInterceptor::GetNumTimesRun(), 21); |
|
|
|
|
// Reset the global interceptor. This is again 'safe' because there are no
|
|
|
|
|
// other ongoing gRPC operations
|
|
|
|
|
experimental::RegisterGlobalClientInterceptorFactory(nullptr); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
TEST_F(ClientGlobalInterceptorEnd2endTest, LoggingGlobalInterceptor) { |
|
|
|
@ -920,9 +917,6 @@ TEST_F(ClientGlobalInterceptorEnd2endTest, LoggingGlobalInterceptor) { |
|
|
|
|
MakeCall(channel); |
|
|
|
|
// Make sure all 20 dummy interceptors were run
|
|
|
|
|
EXPECT_EQ(DummyInterceptor::GetNumTimesRun(), 20); |
|
|
|
|
// Reset the global interceptor. This is again 'safe' because there are no
|
|
|
|
|
// other ongoing gRPC operations
|
|
|
|
|
experimental::RegisterGlobalClientInterceptorFactory(nullptr); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
TEST_F(ClientGlobalInterceptorEnd2endTest, HijackingGlobalInterceptor) { |
|
|
|
@ -946,9 +940,6 @@ TEST_F(ClientGlobalInterceptorEnd2endTest, HijackingGlobalInterceptor) { |
|
|
|
|
MakeCall(channel); |
|
|
|
|
// Make sure all 20 dummy interceptors were run
|
|
|
|
|
EXPECT_EQ(DummyInterceptor::GetNumTimesRun(), 20); |
|
|
|
|
// Reset the global interceptor. This is again 'safe' because there are no
|
|
|
|
|
// other ongoing gRPC operations
|
|
|
|
|
experimental::RegisterGlobalClientInterceptorFactory(nullptr); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} // namespace
|
|
|
|
|