#include "net/http/http_auth_controller.h"
#include <algorithm>
#include <utility>
#include "base/ranges/algorithm.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/task_environment.h"
#include "net/base/net_errors.h"
#include "net/base/test_completion_callback.h"
#include "net/dns/mock_host_resolver.h"
#include "net/http/http_auth_cache.h"
#include "net/http/http_auth_challenge_tokenizer.h"
#include "net/http/http_auth_handler_mock.h"
#include "net/http/http_request_info.h"
#include "net/http/http_response_headers.h"
#include "net/http/http_util.h"
#include "net/log/net_log_event_type.h"
#include "net/log/net_log_with_source.h"
#include "net/log/test_net_log.h"
#include "net/log/test_net_log_util.h"
#include "net/ssl/ssl_info.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace net {
namespace {
enum HandlerRunMode { … };
enum SchemeState { … };
scoped_refptr<HttpResponseHeaders> HeadersFromString(const char* string) { … }
void RunSingleRoundAuthTest(
HandlerRunMode run_mode,
int handler_rv,
int expected_controller_rv,
SchemeState scheme_state,
const NetLogWithSource& net_log = NetLogWithSource()) { … }
}
TEST(HttpAuthControllerTest, PermanentErrors) { … }
TEST(HttpAuthControllerTest, Logging) { … }
TEST(HttpAuthControllerTest, NoExplicitCredentialsAllowed) { … }
}