#include "content/browser/first_party_sets/first_party_sets_loader.h"
#include <optional>
#include <string_view>
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/test/task_environment.h"
#include "base/test/test_future.h"
#include "net/base/schemeful_site.h"
#include "net/first_party_sets/first_party_set_entry.h"
#include "net/first_party_sets/first_party_sets_context_config.h"
#include "net/first_party_sets/global_first_party_sets.h"
#include "net/first_party_sets/local_set_declaration.h"
#include "testing/gmock/include/gmock/gmock-matchers.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
IsEmpty;
Optional;
Pair;
UnorderedElementsAre;
UnorderedElementsAreArray;
namespace content {
namespace {
void SetComponentSets(FirstPartySetsLoader& loader,
base::Version version,
std::string_view content) { … }
}
class FirstPartySetsLoaderTest : public ::testing::Test { … };
TEST_F(FirstPartySetsLoaderTest, IgnoresInvalidFile) { … }
TEST_F(FirstPartySetsLoaderTest, IgnoresInvalidVersion) { … }
TEST_F(FirstPartySetsLoaderTest, AcceptsMultipleSets) { … }
TEST_F(FirstPartySetsLoaderTest, SetComponentSets_Idempotent) { … }
TEST_F(FirstPartySetsLoaderTest, SetsManuallySpecified) { … }
TEST_F(FirstPartySetsLoaderTest, SetsManuallySpecified_Idempotent) { … }
}