chromium/components/component_updater/installer_policies/masked_domain_list_component_installer_policy_unittest.cc

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

#include "components/component_updater/installer_policies/masked_domain_list_component_installer_policy.h"

#include <optional>
#include <string>
#include <tuple>

#include "base/check.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/test/repeating_test_future.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/task_environment.h"
#include "base/version.h"
#include "components/privacy_sandbox/masked_domain_list/masked_domain_list.pb.h"
#include "mojo/public/cpp/base/proto_wrapper.h"
#include "services/network/public/cpp/features.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace component_updater {

namespace {
_;

// Not a valid MDL but enough to check the protobuf end to end.
std::string FakeMDL(const std::string& owner_name) {}

}  // namespace

class MaskedDomainListComponentInstallerPolicyTest : public ::testing::Test {};

TEST_F(MaskedDomainListComponentInstallerPolicyTest,
       LoadsFile_OnComponentReady) {}

TEST_F(MaskedDomainListComponentInstallerPolicyTest, LoadsNewListWhenUpdated) {}

}  // namespace component_updater