chromium/net/http/http_auth_preferences_unittest.cc

// Copyright 2012 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_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  // BUILDFLAG(IS_POSIX)

#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  // BUILDFLAG(IS_ANDROID)

#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX)
TEST(HttpAuthPreferencesTest, AllowGssapiLibraryLoad) {}
#endif  // BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX)

TEST(HttpAuthPreferencesTest, AuthServerAllowlist) {}

TEST(HttpAuthPreferencesTest, DelegationType) {}

TEST(HttpAuthPreferencesTest, HttpAuthSchemesFilter) {}

}  // namespace net