#include "chrome/browser/component_updater/translate_kit_component_installer.h"
#include <memory>
#include <utility>
#include "base/files/file_path.h"
#include "base/files/scoped_temp_dir.h"
#include "base/functional/callback.h"
#include "base/test/bind.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "base/version.h"
#include "chrome/services/on_device_translation/public/cpp/features.h"
#include "components/component_updater/mock_component_updater_service.h"
#include "content/public/test/browser_task_environment.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace component_updater {
namespace {
_;
constexpr char kFakeTranslateKitVersion[] = …;
}
class TranslateKitComponentMockComponentUpdateService
: public component_updater::MockComponentUpdateService { … };
class TranslateKitComponentInstallerTestBase : public ::testing::Test { … };
RegisterTranslateKitComponentTest;
TEST_F(RegisterTranslateKitComponentTest, ComponentDisabled) { … }
TEST_F(RegisterTranslateKitComponentTest, ComponentRegistration) { … }
class TranslateKitComponentInstallerTest
: public TranslateKitComponentInstallerTestBase { … };
TEST_F(TranslateKitComponentInstallerTest, VerifyInstallationDefaultEmpty) { … }
}