#include "net/http/http_auth_handler_digest.h"
#include <string>
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "net/base/net_errors.h"
#include "net/base/network_anonymization_key.h"
#include "net/base/test_completion_callback.h"
#include "net/dns/mock_host_resolver.h"
#include "net/http/http_auth_challenge_tokenizer.h"
#include "net/http/http_request_info.h"
#include "net/log/net_log_with_source.h"
#include "net/ssl/ssl_info.h"
#include "net/test/gtest_util.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
#include "url/scheme_host_port.h"
IsOk;
namespace net {
namespace {
const char* const kSimpleChallenge = …;
bool RespondToChallenge(HttpAuth::Target target,
const std::string& proxy_name,
const std::string& request_url,
const std::string& challenge,
std::string* token) { … }
}
TEST(HttpAuthHandlerDigestTest, ParseChallenge) { … }
TEST(HttpAuthHandlerDigestTest, AssembleCredentials) { … }
TEST(HttpAuthHandlerDigest, HandleAnotherChallenge) { … }
TEST(HttpAuthHandlerDigest, RespondToServerChallenge) { … }
TEST(HttpAuthHandlerDigest, RespondToHttpsServerChallenge) { … }
TEST(HttpAuthHandlerDigest, RespondToProxyChallenge) { … }
TEST(HttpAuthHandlerDigest, RespondToProxyChallengeHttps) { … }
TEST(HttpAuthHandlerDigest, RespondToProxyChallengeWs) { … }
TEST(HttpAuthHandlerDigest, RespondToProxyChallengeWss) { … }
TEST(HttpAuthHandlerDigest, RespondToChallengeAuthQop) { … }
TEST(HttpAuthHandlerDigest, RespondToChallengeOpaque) { … }
}