diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-06 12:48:11 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-13 09:33:43 +0000 |
commit | 7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (patch) | |
tree | fa14ba0ca8d2683ba2efdabd246dc9b18a1229c6 /chromium/net/socket | |
parent | 79b4f909db1049fca459c07cca55af56a9b54fe3 (diff) | |
download | qtwebengine-chromium-7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3.tar.gz |
BASELINE: Update Chromium to 84.0.4147.141
Change-Id: Ib85eb4cfa1cbe2b2b81e5022c8cad5c493969535
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/net/socket')
34 files changed, 141 insertions, 51 deletions
diff --git a/chromium/net/socket/client_socket_handle.cc b/chromium/net/socket/client_socket_handle.cc index f23033c3273..f269dce0b3a 100644 --- a/chromium/net/socket/client_socket_handle.cc +++ b/chromium/net/socket/client_socket_handle.cc @@ -8,8 +8,9 @@ #include "base/bind.h" #include "base/bind_helpers.h" +#include "base/check_op.h" #include "base/compiler_specific.h" -#include "base/logging.h" +#include "base/notreached.h" #include "base/trace_event/trace_event.h" #include "net/base/net_errors.h" #include "net/base/trace_constants.h" diff --git a/chromium/net/socket/client_socket_pool.cc b/chromium/net/socket/client_socket_pool.cc index 8e9f7e601c7..d1ea3f31a25 100644 --- a/chromium/net/socket/client_socket_pool.cc +++ b/chromium/net/socket/client_socket_pool.cc @@ -7,8 +7,8 @@ #include <utility> #include "base/bind.h" +#include "base/check_op.h" #include "base/feature_list.h" -#include "base/logging.h" #include "net/base/features.h" #include "net/http/http_proxy_connect_job.h" #include "net/log/net_log_event_type.h" diff --git a/chromium/net/socket/client_socket_pool_base_unittest.cc b/chromium/net/socket/client_socket_pool_base_unittest.cc index 831ef5b373e..be3196e53bc 100644 --- a/chromium/net/socket/client_socket_pool_base_unittest.cc +++ b/chromium/net/socket/client_socket_pool_base_unittest.cc @@ -11,10 +11,11 @@ #include "base/bind.h" #include "base/bind_helpers.h" #include "base/callback.h" +#include "base/check_op.h" #include "base/location.h" -#include "base/logging.h" #include "base/memory/ref_counted.h" #include "base/memory/weak_ptr.h" +#include "base/notreached.h" #include "base/optional.h" #include "base/run_loop.h" #include "base/single_thread_task_runner.h" diff --git a/chromium/net/socket/client_socket_pool_manager.cc b/chromium/net/socket/client_socket_pool_manager.cc index 84e6de660dc..7e3e69664df 100644 --- a/chromium/net/socket/client_socket_pool_manager.cc +++ b/chromium/net/socket/client_socket_pool_manager.cc @@ -6,7 +6,7 @@ #include <memory> -#include "base/logging.h" +#include "base/check_op.h" #include "base/metrics/field_trial_params.h" #include "base/optional.h" #include "base/stl_util.h" diff --git a/chromium/net/socket/client_socket_pool_manager_impl.cc b/chromium/net/socket/client_socket_pool_manager_impl.cc index d1835a50c12..0d7a15110f6 100644 --- a/chromium/net/socket/client_socket_pool_manager_impl.cc +++ b/chromium/net/socket/client_socket_pool_manager_impl.cc @@ -7,7 +7,7 @@ #include <algorithm> #include <utility> -#include "base/logging.h" +#include "base/check_op.h" #include "base/values.h" #include "net/base/proxy_server.h" #include "net/http/http_network_session.h" diff --git a/chromium/net/socket/connect_job_test_util.cc b/chromium/net/socket/connect_job_test_util.cc index 45120b9b0e4..12f3ae24313 100644 --- a/chromium/net/socket/connect_job_test_util.cc +++ b/chromium/net/socket/connect_job_test_util.cc @@ -6,7 +6,7 @@ #include <utility> -#include "base/logging.h" +#include "base/check.h" #include "base/run_loop.h" #include "net/socket/stream_socket.h" #include "net/test/gtest_util.h" diff --git a/chromium/net/socket/connect_job_unittest.cc b/chromium/net/socket/connect_job_unittest.cc index 8c826557bb9..4f1c8e999d2 100644 --- a/chromium/net/socket/connect_job_unittest.cc +++ b/chromium/net/socket/connect_job_unittest.cc @@ -6,7 +6,6 @@ #include "base/bind.h" #include "base/callback.h" -#include "base/logging.h" #include "base/macros.h" #include "base/run_loop.h" #include "base/test/task_environment.h" diff --git a/chromium/net/socket/fuzzed_datagram_client_socket.cc b/chromium/net/socket/fuzzed_datagram_client_socket.cc index 4e8a71071bf..897332e1932 100644 --- a/chromium/net/socket/fuzzed_datagram_client_socket.cc +++ b/chromium/net/socket/fuzzed_datagram_client_socket.cc @@ -10,8 +10,8 @@ #include <string> #include "base/bind.h" +#include "base/check_op.h" #include "base/location.h" -#include "base/logging.h" #include "base/strings/string_piece.h" #include "base/threading/thread_task_runner_handle.h" #include "net/base/io_buffer.h" diff --git a/chromium/net/socket/fuzzed_socket.cc b/chromium/net/socket/fuzzed_socket.cc index c56543f794d..abdaeea46f1 100644 --- a/chromium/net/socket/fuzzed_socket.cc +++ b/chromium/net/socket/fuzzed_socket.cc @@ -9,8 +9,9 @@ #include <algorithm> #include "base/bind.h" +#include "base/check_op.h" #include "base/location.h" -#include "base/logging.h" +#include "base/notreached.h" #include "base/threading/thread_task_runner_handle.h" #include "net/base/io_buffer.h" #include "net/log/net_log_source_type.h" diff --git a/chromium/net/socket/fuzzed_socket_factory.cc b/chromium/net/socket/fuzzed_socket_factory.cc index 2b2a70e342a..fb2d12c973a 100644 --- a/chromium/net/socket/fuzzed_socket_factory.cc +++ b/chromium/net/socket/fuzzed_socket_factory.cc @@ -6,7 +6,7 @@ #include <fuzzer/FuzzedDataProvider.h> -#include "base/logging.h" +#include "base/notreached.h" #include "net/base/address_list.h" #include "net/base/ip_endpoint.h" #include "net/base/net_errors.h" diff --git a/chromium/net/socket/read_buffering_stream_socket.cc b/chromium/net/socket/read_buffering_stream_socket.cc index c60ac1b65f9..b56d55430ac 100644 --- a/chromium/net/socket/read_buffering_stream_socket.cc +++ b/chromium/net/socket/read_buffering_stream_socket.cc @@ -6,7 +6,8 @@ #include <algorithm> -#include "base/logging.h" +#include "base/check_op.h" +#include "base/notreached.h" #include "net/base/io_buffer.h" namespace net { diff --git a/chromium/net/socket/socket_bio_adapter.cc b/chromium/net/socket/socket_bio_adapter.cc index 182b9d6eaa4..8ff8c582533 100644 --- a/chromium/net/socket/socket_bio_adapter.cc +++ b/chromium/net/socket/socket_bio_adapter.cc @@ -9,8 +9,9 @@ #include <algorithm> #include "base/bind.h" +#include "base/check_op.h" #include "base/location.h" -#include "base/logging.h" +#include "base/notreached.h" #include "base/threading/thread_task_runner_handle.h" #include "net/base/io_buffer.h" #include "net/base/net_errors.h" diff --git a/chromium/net/socket/socket_bio_adapter_unittest.cc b/chromium/net/socket/socket_bio_adapter_unittest.cc index 4dcde7b83ba..f45056b17aa 100644 --- a/chromium/net/socket/socket_bio_adapter_unittest.cc +++ b/chromium/net/socket/socket_bio_adapter_unittest.cc @@ -8,9 +8,9 @@ #include <memory> +#include "base/check_op.h" #include "base/containers/span.h" #include "base/location.h" -#include "base/logging.h" #include "base/macros.h" #include "base/run_loop.h" #include "crypto/openssl_util.h" diff --git a/chromium/net/socket/socket_tag.cc b/chromium/net/socket/socket_tag.cc index ad550a0592a..7bf19b71d37 100644 --- a/chromium/net/socket/socket_tag.cc +++ b/chromium/net/socket/socket_tag.cc @@ -6,7 +6,7 @@ #include <tuple> -#include "base/logging.h" +#include "base/check.h" #if defined(OS_ANDROID) #include "net/android/network_library.h" diff --git a/chromium/net/socket/socks5_client_socket_fuzzer.cc b/chromium/net/socket/socks5_client_socket_fuzzer.cc index 6e79976c310..eb480d35676 100644 --- a/chromium/net/socket/socks5_client_socket_fuzzer.cc +++ b/chromium/net/socket/socks5_client_socket_fuzzer.cc @@ -9,7 +9,7 @@ #include <memory> -#include "base/logging.h" +#include "base/check_op.h" #include "net/base/address_list.h" #include "net/base/net_errors.h" diff --git a/chromium/net/socket/socks_client_socket_fuzzer.cc b/chromium/net/socket/socks_client_socket_fuzzer.cc index ebf9849bcdd..245e8a3881a 100644 --- a/chromium/net/socket/socks_client_socket_fuzzer.cc +++ b/chromium/net/socket/socks_client_socket_fuzzer.cc @@ -9,7 +9,7 @@ #include <memory> -#include "base/logging.h" +#include "base/check_op.h" #include "net/base/address_list.h" #include "net/base/net_errors.h" #include "net/base/network_isolation_key.h" diff --git a/chromium/net/socket/ssl_client_socket.h b/chromium/net/socket/ssl_client_socket.h index 705281a9597..680c9489066 100644 --- a/chromium/net/socket/ssl_client_socket.h +++ b/chromium/net/socket/ssl_client_socket.h @@ -68,12 +68,8 @@ class NET_EXPORT SSLClientSocket : public SSLSocket { // For signed_cert_timestamps_received_ and stapled_ocsp_response_received_. FRIEND_TEST_ALL_PREFIXES(SSLClientSocketTest, ConnectSignedCertTimestampsTLSExtension); - FRIEND_TEST_ALL_PREFIXES(SSLClientSocketTest, + FRIEND_TEST_ALL_PREFIXES(SSLClientSocketVersionTest, ConnectSignedCertTimestampsEnablesOCSP); - FRIEND_TEST_ALL_PREFIXES(SSLClientSocketTest, - ConnectSignedCertTimestampsDisabled); - FRIEND_TEST_ALL_PREFIXES(SSLClientSocketTest, - VerifyServerChainProperlyOrdered); // True if SCTs were received via a TLS extension. bool signed_cert_timestamps_received_; diff --git a/chromium/net/socket/ssl_client_socket_impl.cc b/chromium/net/socket/ssl_client_socket_impl.cc index 568b2dbc934..12fb37570a5 100644 --- a/chromium/net/socket/ssl_client_socket_impl.cc +++ b/chromium/net/socket/ssl_client_socket_impl.cc @@ -1490,19 +1490,19 @@ int SSLClientSocketImpl::DoPayloadWrite() { } void SSLClientSocketImpl::DoPeek() { - if (ssl_config_.disable_post_handshake_peek_for_testing || - !completed_connect_ || peek_complete_) { + if (!completed_connect_) { return; } crypto::OpenSSLErrStackTracer err_tracer(FROM_HERE); - if (ssl_config_.early_data_enabled && !recorded_early_data_result_) { + if (ssl_config_.early_data_enabled && !handled_early_data_result_) { // |SSL_peek| will implicitly run |SSL_do_handshake| if needed, but run it // manually to pick up the reject reason. int rv = SSL_do_handshake(ssl_.get()); int ssl_err = SSL_get_error(ssl_.get(), rv); - if (ssl_err == SSL_ERROR_WANT_READ || ssl_err == SSL_ERROR_WANT_WRITE) { + int err = rv > 0 ? OK : MapOpenSSLError(ssl_err, err_tracer); + if (err == ERR_IO_PENDING) { return; } @@ -1513,13 +1513,28 @@ void SSLClientSocketImpl::DoPeek() { UMA_HISTOGRAM_ENUMERATION("Net.SSLHandshakeEarlyDataReason", SSL_get_early_data_reason(ssl_.get()), ssl_early_data_reason_max_value + 1); - recorded_early_data_result_ = true; - if (ssl_err != SSL_ERROR_NONE) { + + // On early data reject, clear early data on any other sessions in the + // cache, so retries do not get stuck attempting 0-RTT. See + // https://crbug.com/1066623. + if (err == ERR_EARLY_DATA_REJECTED || + err == ERR_WRONG_VERSION_ON_EARLY_DATA) { + context_->ssl_client_session_cache()->ClearEarlyData( + GetSessionCacheKey(base::nullopt)); + } + + handled_early_data_result_ = true; + + if (err != OK) { peek_complete_ = true; return; } } + if (ssl_config_.disable_post_handshake_peek_for_testing || peek_complete_) { + return; + } + char byte; int rv = SSL_peek(ssl_.get(), &byte, 1); int ssl_err = SSL_get_error(ssl_.get(), rv); diff --git a/chromium/net/socket/ssl_client_socket_impl.h b/chromium/net/socket/ssl_client_socket_impl.h index 9ffa83052e8..7388274b5b6 100644 --- a/chromium/net/socket/ssl_client_socket_impl.h +++ b/chromium/net/socket/ssl_client_socket_impl.h @@ -220,9 +220,8 @@ class SSLClientSocketImpl : public SSLClientSocket, int user_write_buf_len_; bool first_post_handshake_write_ = true; - // True if we've already recorded the result of our attempt to - // use early data. - bool recorded_early_data_result_ = false; + // True if we've already handled the result of our attempt to use early data. + bool handled_early_data_result_ = false; // Used by DoPayloadRead() when attempting to fill the caller's buffer with // as much data as possible without blocking. diff --git a/chromium/net/socket/ssl_client_socket_unittest.cc b/chromium/net/socket/ssl_client_socket_unittest.cc index 8ae1e15e27c..41aea1c8951 100644 --- a/chromium/net/socket/ssl_client_socket_unittest.cc +++ b/chromium/net/socket/ssl_client_socket_unittest.cc @@ -733,8 +733,24 @@ class SSLClientSocketTest : public PlatformTest, public WithTaskEnvironment { spawned_test_server_ = nullptr; embedded_test_server_ = std::make_unique<EmbeddedTestServer>(EmbeddedTestServer::TYPE_HTTPS); - RegisterEmbeddedTestServerHandlers(embedded_test_server_.get()); embedded_test_server_->SetSSLConfig(cert, server_config); + return FinishStartingEmbeddedTestServer(); + } + + // Starts the embedded test server with the specified parameters. Returns true + // on success. + bool StartEmbeddedTestServer( + const EmbeddedTestServer::ServerCertificateConfig& cert_config, + const SSLServerConfig& server_config) { + spawned_test_server_ = nullptr; + embedded_test_server_ = + std::make_unique<EmbeddedTestServer>(EmbeddedTestServer::TYPE_HTTPS); + embedded_test_server_->SetSSLConfig(cert_config, server_config); + return FinishStartingEmbeddedTestServer(); + } + + bool FinishStartingEmbeddedTestServer() { + RegisterEmbeddedTestServerHandlers(embedded_test_server_.get()); if (!embedded_test_server_->Start()) { LOG(ERROR) << "Could not start EmbeddedTestServer"; return false; @@ -2908,14 +2924,15 @@ TEST_P(SSLClientSocketVersionTest, CTCompliantEVHistogram) { // Tests that OCSP stapling is requested, as per Certificate Transparency (RFC // 6962). -TEST_F(SSLClientSocketTest, ConnectSignedCertTimestampsEnablesOCSP) { - SpawnedTestServer::SSLOptions ssl_options; - ssl_options.staple_ocsp_response = true; +TEST_P(SSLClientSocketVersionTest, ConnectSignedCertTimestampsEnablesOCSP) { // The test server currently only knows how to generate OCSP responses // for a freshly minted certificate. - ssl_options.server_certificate = SpawnedTestServer::SSLOptions::CERT_AUTO; + EmbeddedTestServer::ServerCertificateConfig cert_config; + cert_config.stapled_ocsp_config = EmbeddedTestServer::OCSPConfig( + {{OCSPRevocationStatus::GOOD, + EmbeddedTestServer::OCSPConfig::SingleResponse::Date::kValid}}); - ASSERT_TRUE(StartTestServer(ssl_options)); + ASSERT_TRUE(StartEmbeddedTestServer(cert_config, GetServerConfig())); SSLConfig ssl_config; @@ -4962,14 +4979,13 @@ TEST_F(SSLClientSocketZeroRTTTest, ZeroRTTEarlyDataLimit) { EXPECT_EQ(SSLInfo::HANDSHAKE_RESUME, ssl_info.handshake_type); } -TEST_F(SSLClientSocketZeroRTTTest, ZeroRTTNoZeroRTTOnResume) { +TEST_F(SSLClientSocketZeroRTTTest, ZeroRTTReject) { ASSERT_TRUE(StartServer()); ASSERT_TRUE(RunInitialConnection()); SSLServerConfig server_config; server_config.early_data_enabled = false; server_config.version_max = SSL_PROTOCOL_VERSION_TLS1_3; - SetServerConfig(server_config); // 0-RTT Connection @@ -4986,6 +5002,50 @@ TEST_F(SSLClientSocketZeroRTTTest, ZeroRTTNoZeroRTTOnResume) { EXPECT_EQ(ERR_EARLY_DATA_REJECTED, rv); rv = WriteAndWait(kRequest); EXPECT_EQ(ERR_EARLY_DATA_REJECTED, rv); + + // Retrying the connection should succeed. + socket = MakeClient(true); + ASSERT_THAT(Connect(), IsOk()); + ASSERT_THAT(MakeHTTPRequest(ssl_socket()), IsOk()); + SSLInfo ssl_info; + ASSERT_TRUE(GetSSLInfo(&ssl_info)); + EXPECT_EQ(SSLInfo::HANDSHAKE_FULL, ssl_info.handshake_type); +} + +TEST_F(SSLClientSocketZeroRTTTest, ZeroRTTWrongVersion) { + ASSERT_TRUE(StartServer()); + ASSERT_TRUE(RunInitialConnection()); + + SSLServerConfig server_config; + server_config.version_max = SSL_PROTOCOL_VERSION_TLS1_2; + SetServerConfig(server_config); + + // 0-RTT Connection + FakeBlockingStreamSocket* socket = MakeClient(true); + socket->BlockReadResult(); + ASSERT_THAT(Connect(), IsOk()); + constexpr base::StringPiece kRequest = "GET /zerortt HTTP/1.0\r\n\r\n"; + EXPECT_EQ(static_cast<int>(kRequest.size()), WriteAndWait(kRequest)); + socket->UnblockReadResult(); + + // Expect early data to be rejected because the TLS version was incorrect. + scoped_refptr<IOBuffer> buf = base::MakeRefCounted<IOBuffer>(4096); + int rv = ReadAndWait(buf.get(), 4096); + EXPECT_EQ(ERR_WRONG_VERSION_ON_EARLY_DATA, rv); + rv = WriteAndWait(kRequest); + // TODO(https://crbug.com/1078515): This should be + // ERR_WRONG_VERSION_ON_EARLY_DATA. We assert on the current value so that, + // when the bug is fixed (likely in BoringSSL), we remember to fix the test to + // set a proper test expectation. + EXPECT_EQ(ERR_SSL_PROTOCOL_ERROR, rv); + + // Retrying the connection should succeed. + socket = MakeClient(true); + ASSERT_THAT(Connect(), IsOk()); + ASSERT_THAT(MakeHTTPRequest(ssl_socket()), IsOk()); + SSLInfo ssl_info; + ASSERT_TRUE(GetSSLInfo(&ssl_info)); + EXPECT_EQ(SSLInfo::HANDSHAKE_FULL, ssl_info.handshake_type); } // Test that the ConfirmHandshake successfully completes the handshake and that diff --git a/chromium/net/socket/ssl_server_socket_impl.cc b/chromium/net/socket/ssl_server_socket_impl.cc index 54d0e7cd8ad..499821e9b35 100644 --- a/chromium/net/socket/ssl_server_socket_impl.cc +++ b/chromium/net/socket/ssl_server_socket_impl.cc @@ -999,6 +999,12 @@ void SSLServerContextImpl::Init() { SSL_CTX_set_alpn_select_cb(ssl_ctx_.get(), &SocketImpl::ALPNSelectCallback, nullptr); + + if (!ssl_server_config_.ocsp_response.empty()) { + SSL_CTX_set_ocsp_response(ssl_ctx_.get(), + ssl_server_config_.ocsp_response.data(), + ssl_server_config_.ocsp_response.size()); + } } SSLServerContextImpl::~SSLServerContextImpl() = default; diff --git a/chromium/net/socket/ssl_server_socket_unittest.cc b/chromium/net/socket/ssl_server_socket_unittest.cc index b0ee305d721..c2b3325b1a6 100644 --- a/chromium/net/socket/ssl_server_socket_unittest.cc +++ b/chromium/net/socket/ssl_server_socket_unittest.cc @@ -21,12 +21,13 @@ #include "base/bind.h" #include "base/callback_helpers.h" +#include "base/check.h" #include "base/compiler_specific.h" #include "base/containers/queue.h" #include "base/files/file_path.h" #include "base/files/file_util.h" #include "base/location.h" -#include "base/logging.h" +#include "base/notreached.h" #include "base/run_loop.h" #include "base/single_thread_task_runner.h" #include "base/stl_util.h" diff --git a/chromium/net/socket/stream_socket.cc b/chromium/net/socket/stream_socket.cc index e9e292058b8..0665afb68d4 100644 --- a/chromium/net/socket/stream_socket.cc +++ b/chromium/net/socket/stream_socket.cc @@ -4,7 +4,7 @@ #include "net/socket/stream_socket.h" -#include "base/logging.h" +#include "base/notreached.h" namespace net { diff --git a/chromium/net/socket/tcp_client_socket.cc b/chromium/net/socket/tcp_client_socket.cc index 46d0a7d5854..551fc96edbd 100644 --- a/chromium/net/socket/tcp_client_socket.cc +++ b/chromium/net/socket/tcp_client_socket.cc @@ -8,9 +8,10 @@ #include "base/bind.h" #include "base/callback_helpers.h" -#include "base/logging.h" +#include "base/check_op.h" #include "base/memory/ptr_util.h" #include "base/metrics/histogram_macros.h" +#include "base/notreached.h" #include "base/time/time.h" #include "net/base/io_buffer.h" #include "net/base/ip_endpoint.h" diff --git a/chromium/net/socket/tcp_server_socket.cc b/chromium/net/socket/tcp_server_socket.cc index 133715434ea..3b9624b86f7 100644 --- a/chromium/net/socket/tcp_server_socket.cc +++ b/chromium/net/socket/tcp_server_socket.cc @@ -8,7 +8,8 @@ #include "base/bind.h" #include "base/bind_helpers.h" -#include "base/logging.h" +#include "base/check.h" +#include "base/notreached.h" #include "net/base/net_errors.h" #include "net/socket/socket_descriptor.h" #include "net/socket/tcp_client_socket.h" diff --git a/chromium/net/socket/transport_client_socket_pool.cc b/chromium/net/socket/transport_client_socket_pool.cc index c7d64949dde..3d5aff54368 100644 --- a/chromium/net/socket/transport_client_socket_pool.cc +++ b/chromium/net/socket/transport_client_socket_pool.cc @@ -8,12 +8,13 @@ #include <utility> #include "base/bind.h" +#include "base/check_op.h" #include "base/compiler_specific.h" #include "base/format_macros.h" #include "base/location.h" -#include "base/logging.h" #include "base/memory/ptr_util.h" #include "base/metrics/histogram_macros.h" +#include "base/notreached.h" #include "base/single_thread_task_runner.h" #include "base/strings/string_util.h" #include "base/strings/stringprintf.h" diff --git a/chromium/net/socket/transport_client_socket_pool_test_util.cc b/chromium/net/socket/transport_client_socket_pool_test_util.cc index 18159674b85..cdaecf20e99 100644 --- a/chromium/net/socket/transport_client_socket_pool_test_util.cc +++ b/chromium/net/socket/transport_client_socket_pool_test_util.cc @@ -9,10 +9,11 @@ #include <utility> #include "base/bind.h" +#include "base/check_op.h" #include "base/location.h" -#include "base/logging.h" #include "base/macros.h" #include "base/memory/weak_ptr.h" +#include "base/notreached.h" #include "base/run_loop.h" #include "base/single_thread_task_runner.h" #include "base/threading/thread_task_runner_handle.h" diff --git a/chromium/net/socket/transport_connect_job.cc b/chromium/net/socket/transport_connect_job.cc index 9d682e98535..14aa2783cc1 100644 --- a/chromium/net/socket/transport_connect_job.cc +++ b/chromium/net/socket/transport_connect_job.cc @@ -8,9 +8,10 @@ #include <utility> #include "base/bind.h" +#include "base/check_op.h" #include "base/compiler_specific.h" -#include "base/logging.h" #include "base/metrics/histogram_macros.h" +#include "base/notreached.h" #include "base/strings/string_util.h" #include "base/threading/thread_task_runner_handle.h" #include "base/trace_event/trace_event.h" diff --git a/chromium/net/socket/udp_socket_unittest.cc b/chromium/net/socket/udp_socket_unittest.cc index 18eb55670ca..2d04b0d027e 100644 --- a/chromium/net/socket/udp_socket_unittest.cc +++ b/chromium/net/socket/udp_socket_unittest.cc @@ -1155,7 +1155,7 @@ TEST_F(DscpManagerTest, SocketReAddedOnRecreateHandle) { .WillOnce(Return(true)); dscp_manager_->Set(DSCP_CS7); - auto error = std::make_unique<base::internal::ScopedClearLastError>(); + auto error = std::make_unique<base::ScopedClearLastError>(); ::SetLastError(ERROR_DEVICE_REINITIALIZATION_NEEDED); EXPECT_CALL(api_, AddSocketToFlow(_, _, _, _, _, _)).WillOnce(Return(false)); EXPECT_CALL(api_, SetFlow(_, _, _, _, _, _, _)).Times(0); diff --git a/chromium/net/socket/udp_socket_win.cc b/chromium/net/socket/udp_socket_win.cc index 0d080437839..f58a2b4b791 100644 --- a/chromium/net/socket/udp_socket_win.cc +++ b/chromium/net/socket/udp_socket_win.cc @@ -8,11 +8,12 @@ #include "base/bind.h" #include "base/callback.h" +#include "base/check_op.h" #include "base/lazy_instance.h" -#include "base/logging.h" #include "base/macros.h" #include "base/metrics/histogram_functions.h" #include "base/metrics/histogram_macros.h" +#include "base/notreached.h" #include "base/rand_util.h" #include "base/task/post_task.h" #include "base/task/thread_pool.h" diff --git a/chromium/net/socket/unix_domain_client_socket_posix.cc b/chromium/net/socket/unix_domain_client_socket_posix.cc index d0e4b3c5dd7..d9079da5c35 100644 --- a/chromium/net/socket/unix_domain_client_socket_posix.cc +++ b/chromium/net/socket/unix_domain_client_socket_posix.cc @@ -8,7 +8,8 @@ #include <sys/un.h> #include <utility> -#include "base/logging.h" +#include "base/check_op.h" +#include "base/notreached.h" #include "net/base/net_errors.h" #include "net/base/sockaddr_storage.h" #include "net/socket/socket_posix.h" diff --git a/chromium/net/socket/websocket_endpoint_lock_manager_unittest.cc b/chromium/net/socket/websocket_endpoint_lock_manager_unittest.cc index 8c3fcc16010..85d9929bd15 100644 --- a/chromium/net/socket/websocket_endpoint_lock_manager_unittest.cc +++ b/chromium/net/socket/websocket_endpoint_lock_manager_unittest.cc @@ -4,7 +4,7 @@ #include "net/socket/websocket_endpoint_lock_manager.h" -#include "base/logging.h" +#include "base/check.h" #include "base/macros.h" #include "base/run_loop.h" #include "base/time/time.h" diff --git a/chromium/net/socket/websocket_transport_client_socket_pool.cc b/chromium/net/socket/websocket_transport_client_socket_pool.cc index 9a46a622ef2..d153655749e 100644 --- a/chromium/net/socket/websocket_transport_client_socket_pool.cc +++ b/chromium/net/socket/websocket_transport_client_socket_pool.cc @@ -8,9 +8,10 @@ #include "base/bind.h" #include "base/callback_helpers.h" +#include "base/check_op.h" #include "base/compiler_specific.h" #include "base/location.h" -#include "base/logging.h" +#include "base/notreached.h" #include "base/numerics/safe_conversions.h" #include "base/strings/string_util.h" #include "base/threading/thread_task_runner_handle.h" diff --git a/chromium/net/socket/websocket_transport_connect_sub_job.cc b/chromium/net/socket/websocket_transport_connect_sub_job.cc index aea2802e52e..40bbb3ac667 100644 --- a/chromium/net/socket/websocket_transport_connect_sub_job.cc +++ b/chromium/net/socket/websocket_transport_connect_sub_job.cc @@ -5,7 +5,8 @@ #include "net/socket/websocket_transport_connect_sub_job.h" #include "base/bind.h" -#include "base/logging.h" +#include "base/check_op.h" +#include "base/notreached.h" #include "net/base/ip_endpoint.h" #include "net/base/net_errors.h" #include "net/log/net_log_with_source.h" |