diff --git a/test/core/xds/xds_transport_fake.h b/test/core/xds/xds_transport_fake.h index 70c54dcbc4d16..1901bb12cbfa1 100644 --- a/test/core/xds/xds_transport_fake.h +++ b/test/core/xds/xds_transport_fake.h @@ -136,7 +136,8 @@ class FakeXdsTransportFactory : public XdsTransportFactory { std::function too_many_pending_reads_callback_; }; - FakeXdsTransportFactory(std::function too_many_pending_reads_callback) + explicit FakeXdsTransportFactory( + std::function too_many_pending_reads_callback) : too_many_pending_reads_callback_( std::move(too_many_pending_reads_callback)) {}