From cc0e32e1cb0151695fefafade8514d46663670f6 Mon Sep 17 00:00:00 2001 From: Eugene Ostroukhov Date: Thu, 9 Nov 2023 10:34:23 -0800 Subject: [PATCH] fixup: make test compile --- test/core/ext/xds/xds_transport_grpc_test.cc | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/test/core/ext/xds/xds_transport_grpc_test.cc b/test/core/ext/xds/xds_transport_grpc_test.cc index e1a225beee4be..04e9f9eed0a92 100644 --- a/test/core/ext/xds/xds_transport_grpc_test.cc +++ b/test/core/ext/xds/xds_transport_grpc_test.cc @@ -28,26 +28,18 @@ namespace grpc_core { namespace testing { namespace { -using EventHandlerEvent = absl::variant< - bool, absl::Status, - std::pair>>; +using EventHandlerEvent = absl::variant; class TestEventHandler : public XdsTransportFactory::XdsTransport::StreamingCall::EventHandler { public: - explicit TestEventHandler(std::vector* events) + explicit TestEventHandler(std::vector* events) : events_(events) {} void OnRequestSent(bool ok) override { events_->emplace_back(ok); } - void OnRecvMessage( - absl::string_view payload, - RefCountedPtr< - XdsTransportFactory::XdsTransport::StreamingCall::ReadDelayHandle> - read_delay_handle) override { - events_->emplace_back( - std::make_pair(std::string(payload), std::move(read_delay_handle))); + void OnRecvMessage(absl::string_view payload) override { + events_->emplace_back(std::string(payload)); } void OnStatusReceived(absl::Status status) override { @@ -55,7 +47,7 @@ class TestEventHandler } private: - std::vector* events_; + std::vector* events_; }; class AdsServer {