#include <memory>
#include <string>
#include <utility>
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/scoped_refptr.h"
#include "base/run_loop.h"
#include "components/update_client/update_client.h"
#include "components/update_client/update_client_errors.h"
#include "content/public/test/test_utils.h"
#include "extensions/browser/extensions_test.h"
#include "extensions/browser/updater/extension_installer.h"
#include "extensions/common/extension_id.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace extensions {
namespace {
class ExtensionInstallerTest : public ExtensionsTest { … };
ExtensionInstallerTest::ExtensionInstallerTest()
: … { … }
ExtensionInstallerTest::~ExtensionInstallerTest() = default;
void ExtensionInstallerTest::InstallCompleteCallback(const Result& result) { … }
void ExtensionInstallerTest::RunThreads() { … }
TEST_F(ExtensionInstallerTest, GetInstalledFile) { … }
TEST_F(ExtensionInstallerTest, Install_InvalidUnpackedDir) { … }
TEST_F(ExtensionInstallerTest, Install_BasicInstallOperation_Error) { … }
TEST_F(ExtensionInstallerTest, Install_BasicInstallOperation_Success) { … }
}
}