[net/websockets] default member initializers

This change was partially automated with run-clang-tidy.py.
This should cause no functional changes.

Bug: 1334056
Change-Id: Ic60de7b22425f6c667e20078ffd3985fc23657b2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3694551
Reviewed-by: Kenichi Ishibashi <[email protected]>
Commit-Queue: Tsuyoshi Horo <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1012276}
diff --git a/net/websockets/websocket_end_to_end_test.cc b/net/websockets/websocket_end_to_end_test.cc
index 2871ba0..2eb011c 100644
--- a/net/websockets/websocket_end_to_end_test.cc
+++ b/net/websockets/websocket_end_to_end_test.cc
@@ -159,7 +159,7 @@
   void QuitNestedEventLoop();
 
   // failed_ is true if the handshake failed (ie. OnFailChannel was called).
-  bool failed_;
+  bool failed_ = false;
   std::unique_ptr<WebSocketHandshakeResponseInfo> response_;
   std::string selected_subprotocol_;
   std::string extensions_;
@@ -167,8 +167,7 @@
   base::RunLoop run_loop_;
 };
 
-ConnectTestingEventInterface::ConnectTestingEventInterface() : failed_(false) {
-}
+ConnectTestingEventInterface::ConnectTestingEventInterface() = default;
 
 void ConnectTestingEventInterface::WaitForResponse() {
   run_loop_.Run();