#include "components/component_updater/installer_policies/optimization_hints_component_installer.h"
#include <utility>
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/run_loop.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/task_environment.h"
#include "base/version.h"
#include "components/component_updater/mock_component_updater_service.h"
#include "components/optimization_guide/core/optimization_guide_constants.h"
#include "components/optimization_guide/core/optimization_guide_features.h"
#include "components/optimization_guide/core/optimization_hints_component_update_listener.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/platform_test.h"
namespace {
static const char kTestHintsVersion[] = …;
class OptimizationHintsMockComponentUpdateService
: public component_updater::MockComponentUpdateService { … };
}
namespace component_updater {
class OptimizationHintsComponentInstallerTest : public PlatformTest { … };
TEST_F(OptimizationHintsComponentInstallerTest,
ComponentRegistrationWhenFeatureDisabled) { … }
TEST_F(OptimizationHintsComponentInstallerTest,
ComponentRegistrationWhenFeatureEnabled) { … }
TEST_F(OptimizationHintsComponentInstallerTest, LoadFileWithData) { … }
}