chromium/net/http/http_auth_handler_digest_unittest.cc

// Copyright 2011 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 =;

// RespondToChallenge creates an HttpAuthHandlerDigest for the specified
// |challenge|, and generates a response to the challenge which is returned in
// |token|.
//
// The return value indicates whether the |token| was successfully created.
//
// If |target| is HttpAuth::AUTH_PROXY, then |proxy_name| specifies the source
// of the |challenge|. Otherwise, the scheme and host and port of |request_url|
// indicates the origin of the challenge.
bool RespondToChallenge(HttpAuth::Target target,
                        const std::string& proxy_name,
                        const std::string& request_url,
                        const std::string& challenge,
                        std::string* token) {}

}  // namespace


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) {}


} // namespace net