commit | a0b9c0fe8d32a805062041c98a8c879e52a839dc | [log] [tgz] |
---|---|---|
author | Tsuyoshi Horo <[email protected]> | Thu Jun 09 01:41:51 2022 |
committer | Chromium LUCI CQ <[email protected]> | Thu Jun 09 01:41:51 2022 |
tree | a616dddb966b7bc7d2c080708e1c486ed7f9078f | |
parent | 4478fd3e55fb76c49a1c26ad442845b5977df14e [diff] [blame] |
[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();