[net/] default member initializers manual fix
This CL is created manually by checking the files which match the
regular expressions "^ +:? +[a-z][A-Za-z_]+\([A-Za-z_:]+\)(,$| \{)",
"^ +[a-z][A-Za-z_]+\(base::[A-Za-z_]+\(\d+\)\)".
This CL fixes default member initializers for raw_ptr<> and some enum
types. And also removes unnecessary null initialization of unique_ptr<>
and scoped_refptr<>.
This should cause no functional changes.
Bug: 1334056
Change-Id: Ia434e79be1f8c9a6d4b01a1a215f7ff7e13302ec
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3695879
Reviewed-by: Kenichi Ishibashi <[email protected]>
Commit-Queue: Tsuyoshi Horo <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1012413}
diff --git a/net/quic/quic_http_stream_test.cc b/net/quic/quic_http_stream_test.cc
index 8f0471f..84e6718 100644
--- a/net/quic/quic_http_stream_test.cc
+++ b/net/quic/quic_http_stream_test.cc
@@ -288,7 +288,6 @@
kDefaultServerHostName,
quic::Perspective::IS_SERVER,
false),
- random_generator_(0),
printer_(version_) {
FLAGS_quic_enable_http3_grease_randomness = false;
quic::QuicEnableVersion(version_);
@@ -702,7 +701,7 @@
QuicTestPacketMaker server_maker_;
IPEndPoint self_addr_;
IPEndPoint peer_addr_;
- quic::test::MockRandom random_generator_;
+ quic::test::MockRandom random_generator_{0};
ProofVerifyDetailsChromium verify_details_;
MockCryptoClientStreamFactory crypto_client_stream_factory_;
std::unique_ptr<StaticSocketDataProvider> socket_data_;