#include "extensions/browser/updater/extension_downloader.h"
#include "base/containers/contains.h"
#include "base/functional/callback_helpers.h"
#include "base/task/sequenced_task_runner.h"
#include "base/test/bind.h"
#include "content/public/test/browser_task_environment.h"
#include "content/public/test/test_utils.h"
#include "extensions/browser/extensions_test.h"
#include "extensions/browser/updater/extension_cache_fake.h"
#include "extensions/browser/updater/extension_downloader_test_helper.h"
#include "extensions/browser/updater/extension_downloader_types.h"
#include "extensions/common/extension.h"
#include "extensions/common/extension_urls.h"
#include "services/network/test/test_utils.h"
_;
AnyNumber;
DoAll;
Return;
Sequence;
SetArgPointee;
namespace extensions {
namespace {
const char kTestExtensionId[] = …;
const char kTestExtensionId2[] = …;
}
class ExtensionDownloaderTest : public ExtensionsTest { … };
TEST_F(ExtensionDownloaderTest, TestStageChanges) { … }
TEST_F(ExtensionDownloaderTest, TestStageChangesNoUpdates) { … }
TEST_F(ExtensionDownloaderTest, TestStageChangesBadManifest) { … }
TEST_F(ExtensionDownloaderTest, TestStageChangesBadQuery) { … }
TEST_F(ExtensionDownloaderTest, TestNoUpdatesManifestReports) { … }
TEST_F(ExtensionDownloaderTest, TestCacheStatusMiss) { … }
TEST_F(ExtensionDownloaderTest, TestCacheStatusOutdated) { … }
TEST_F(ExtensionDownloaderTest, TestCacheStatusHit) { … }
TEST_F(ExtensionDownloaderTest, TestUpdateURLHandle) { … }
TEST_F(ExtensionDownloaderTest, TestMultipleUpdates) { … }
TEST_F(ExtensionDownloaderTest, TestNoNetworkRetryAfterCacheMiss) { … }
TEST_F(ExtensionDownloaderTest, TestManifestFetchFailureAfterCacheMiss) { … }
TEST_F(ExtensionDownloaderTest, TestMultipleRequests) { … }
TEST_F(ExtensionDownloaderTest, TestMultipleRequestsSameExtension) { … }
TEST_F(ExtensionDownloaderTest, TestUpdateManifestURLMerged) { … }
TEST_F(ExtensionDownloaderTest, TestExtensionURLMerged) { … }
TEST_F(ExtensionDownloaderTest, TestMultipleCacheAccess) { … }
}