#include "content/test/mock_reduce_accept_language_controller_delegate.h"
#include <string_view>
#include "base/strings/string_split.h"
#include "content/public/common/origin_util.h"
#include "net/http/http_util.h"
#include "url/gurl.h"
namespace content {
namespace {
std::string GetFirstLanguage(std::string_view language_list) { … }
}
MockReduceAcceptLanguageControllerDelegate::
MockReduceAcceptLanguageControllerDelegate(const std::string& languages,
bool is_incognito)
: … { … }
MockReduceAcceptLanguageControllerDelegate::
~MockReduceAcceptLanguageControllerDelegate() = default;
std::optional<std::string>
MockReduceAcceptLanguageControllerDelegate::GetReducedLanguage(
const url::Origin& origin) { … }
std::vector<std::string>
MockReduceAcceptLanguageControllerDelegate::GetUserAcceptLanguages() const { … }
void MockReduceAcceptLanguageControllerDelegate::PersistReducedLanguage(
const url::Origin& origin,
const std::string& language) { … }
void MockReduceAcceptLanguageControllerDelegate::ClearReducedLanguage(
const url::Origin& origin) { … }
void MockReduceAcceptLanguageControllerDelegate::SetUserAcceptLanguages(
const std::string& languages) { … }
}