net: Replace base::Optional and friends with absl counterparts
This replaces:
- base::Optional -> absl::optional
- include "base/optional.h"
->
include "third_party/abseil-cpp/absl/types/optional.h"
- base::nullopt -> absl::nullopt
- base::make_optional -> absl::make_optional
Bug: 1202909
Change-Id: I27d6f81f415e213c1a4997a55c35935a57ba88a4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2896994
Auto-Submit: Anton Bikineev <[email protected]>
Commit-Queue: Anton Bikineev <[email protected]>
Reviewed-by: Peter Kasting <[email protected]>
Owners-Override: Peter Kasting <[email protected]>
Cr-Commit-Position: refs/heads/master@{#883294}
diff --git a/net/websockets/websocket_end_to_end_test.cc b/net/websockets/websocket_end_to_end_test.cc
index 79b58de..219b52b 100644
--- a/net/websockets/websocket_end_to_end_test.cc
+++ b/net/websockets/websocket_end_to_end_test.cc
@@ -118,7 +118,7 @@
void OnFailChannel(const std::string& message,
int net_error,
- base::Optional<int> response_code) override;
+ absl::optional<int> response_code) override;
void OnStartOpeningHandshake(
std::unique_ptr<WebSocketHandshakeRequestInfo> request) override;
@@ -134,7 +134,7 @@
scoped_refptr<HttpResponseHeaders> response_headers,
const IPEndPoint& remote_endpoint,
base::OnceCallback<void(const AuthCredentials*)> callback,
- base::Optional<AuthCredentials>* credentials) override;
+ absl::optional<AuthCredentials>* credentials) override;
private:
void QuitNestedEventLoop();
@@ -193,7 +193,7 @@
void ConnectTestingEventInterface::OnFailChannel(
const std::string& message,
int net_error,
- base::Optional<int> response_code) {
+ absl::optional<int> response_code) {
failed_ = true;
failure_message_ = message;
QuitNestedEventLoop();
@@ -219,8 +219,8 @@
scoped_refptr<HttpResponseHeaders> response_headers,
const IPEndPoint& remote_endpoint,
base::OnceCallback<void(const AuthCredentials*)> callback,
- base::Optional<AuthCredentials>* credentials) {
- *credentials = base::nullopt;
+ absl::optional<AuthCredentials>* credentials) {
+ *credentials = absl::nullopt;
return OK;
}