#include "chrome/browser/extensions/install_tracker.h"
#include <memory>
#include "base/files/file_path.h"
#include "base/memory/ptr_util.h"
#include "chrome/browser/extensions/active_install_data.h"
#include "chrome/browser/extensions/scoped_active_install.h"
#include "chrome/test/base/testing_profile.h"
#include "content/public/test/browser_task_environment.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/common/extension.h"
#include "extensions/common/extension_builder.h"
#include "extensions/common/manifest_constants.h"
#include "testing/gtest/include/gtest/gtest.h"
ActiveInstallData;
Extension;
ExtensionRegistry;
InstallTracker;
InstallObserver;
ScopedActiveInstall;
namespace {
const char kExtensionId1[] = …;
const char kExtensionId2[] = …;
const char kExtensionId3[] = …;
scoped_refptr<const Extension> CreateDummyExtension(const std::string& id) { … }
}
class InstallTrackerTest : public testing::Test { … };
TEST_F(InstallTrackerTest, AddAndRemoveActiveInstalls) { … }
TEST_F(InstallTrackerTest, ScopedActiveInstallDeregister) { … }
TEST_F(InstallTrackerTest, ScopedActiveInstallCancelled) { … }
TEST_F(InstallTrackerTest, DownloadProgressUpdated) { … }
TEST_F(InstallTrackerTest, ExtensionInstallFailure) { … }
TEST_F(InstallTrackerTest, ExtensionInstalledEvent) { … }