#include "components/component_updater/installer_policies/first_party_sets_component_installer_policy.h"
#include "base/check.h"
#include "base/files/file.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/functional/callback_helpers.h"
#include "base/task/thread_pool.h"
#include "base/test/task_environment.h"
#include "base/test/test_future.h"
#include "base/version.h"
#include "components/component_updater/mock_component_updater_service.h"
#include "testing/gmock/include/gmock/gmock-matchers.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace component_updater {
namespace {
_;
IsEmpty;
std::string ReadToString(base::File file) { … }
}
class FirstPartySetsComponentInstallerTest : public ::testing::Test { … };
TEST_F(FirstPartySetsComponentInstallerTest, NonexistentFile_OnComponentReady) { … }
TEST_F(FirstPartySetsComponentInstallerTest,
NonexistentFile_OnRegistrationComplete) { … }
TEST_F(FirstPartySetsComponentInstallerTest, LoadsSets_OnComponentReady) { … }
TEST_F(FirstPartySetsComponentInstallerTest, IgnoreNewSets_NoInitialComponent) { … }
TEST_F(FirstPartySetsComponentInstallerTest, IgnoreNewSets_OnComponentReady) { … }
TEST_F(FirstPartySetsComponentInstallerTest, GetInstallerAttributes) { … }
}