#include "net/http/http_auth_preferences.h"
#include <string>
#include <vector>
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "base/threading/thread.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
#include "url/scheme_host_port.h"
namespace net {
TEST(HttpAuthPreferencesTest, DisableCnameLookup) { … }
TEST(HttpAuthPreferencesTest, NegotiateEnablePort) { … }
#if BUILDFLAG(IS_POSIX)
TEST(HttpAuthPreferencesTest, DisableNtlmV2) { … }
#endif
#if BUILDFLAG(IS_ANDROID)
TEST(HttpAuthPreferencesTest, AuthAndroidNegotiateAccountType) {
HttpAuthPreferences http_auth_preferences;
EXPECT_EQ(std::string(),
http_auth_preferences.AuthAndroidNegotiateAccountType());
http_auth_preferences.set_auth_android_negotiate_account_type("foo");
EXPECT_EQ(std::string("foo"),
http_auth_preferences.AuthAndroidNegotiateAccountType());
}
#endif
#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX)
TEST(HttpAuthPreferencesTest, AllowGssapiLibraryLoad) { … }
#endif
TEST(HttpAuthPreferencesTest, AuthServerAllowlist) { … }
TEST(HttpAuthPreferencesTest, DelegationType) { … }
TEST(HttpAuthPreferencesTest, HttpAuthSchemesFilter) { … }
}