| Index: chrome/browser/extensions/updater/extension_updater_unittest.cc
|
| diff --git a/chrome/browser/extensions/updater/extension_updater_unittest.cc b/chrome/browser/extensions/updater/extension_updater_unittest.cc
|
| index b6ebb83317d8a4411a0150e5af39575815182619..4a7375ff883699b39c076dd2269023a46db0dda9 100644
|
| --- a/chrome/browser/extensions/updater/extension_updater_unittest.cc
|
| +++ b/chrome/browser/extensions/updater/extension_updater_unittest.cc
|
| @@ -39,6 +39,7 @@
|
| #include "chrome/browser/prefs/pref_service_syncable.h"
|
| #include "chrome/common/pref_names.h"
|
| #include "chrome/test/base/testing_profile.h"
|
| +#include "components/crx_file/id_util.h"
|
| #include "components/omaha_query_params/omaha_query_params.h"
|
| #include "content/public/browser/notification_details.h"
|
| #include "content/public/browser/notification_observer.h"
|
| @@ -51,7 +52,6 @@
|
| #include "extensions/browser/extension_registry.h"
|
| #include "extensions/browser/extension_system.h"
|
| #include "extensions/common/extension.h"
|
| -#include "extensions/common/id_util.h"
|
| #include "extensions/common/manifest_constants.h"
|
| #include "google_apis/gaia/fake_identity_provider.h"
|
| #include "google_apis/gaia/fake_oauth2_token_service.h"
|
| @@ -410,7 +410,8 @@ void SetupPendingExtensionManagerForTest(
|
| const bool kInstallSilently = true;
|
| const bool kMarkAcknowledged = false;
|
| const bool kRemoteInstall = false;
|
| - std::string id = id_util::GenerateId(base::StringPrintf("extension%i", i));
|
| + std::string id =
|
| + crx_file::id_util::GenerateId(base::StringPrintf("extension%i", i));
|
|
|
| pending_extension_manager->AddForTesting(
|
| PendingExtensionInfo(id,
|
| @@ -802,8 +803,8 @@ class ExtensionUpdaterTest : public testing::Test {
|
| // Create two updates - expect that DetermineUpdates will return the first
|
| // one (v1.0 installed, v1.1 available) but not the second one (both
|
| // installed and available at v2.0).
|
| - const std::string id1 = id_util::GenerateId("1");
|
| - const std::string id2 = id_util::GenerateId("2");
|
| + const std::string id1 = crx_file::id_util::GenerateId("1");
|
| + const std::string id2 = crx_file::id_util::GenerateId("2");
|
| fetch_data.AddExtension(
|
| id1, "1.0.0.0", &kNeverPingedData, kEmptyUpdateUrlData, std::string());
|
| AddParseResult(id1, "1.1", "http://localhost/e1_1.1.crx", &updates);
|
| @@ -1954,7 +1955,7 @@ TEST_F(ExtensionUpdaterTest, TestManifestFetchesBuilderAddExtension) {
|
|
|
| // First, verify that adding valid extensions does invoke the callbacks on
|
| // the delegate.
|
| - std::string id = id_util::GenerateId("foo");
|
| + std::string id = crx_file::id_util::GenerateId("foo");
|
| EXPECT_CALL(delegate, GetPingDataForExtension(id, _)).WillOnce(Return(false));
|
| EXPECT_TRUE(
|
| downloader->AddPendingExtension(id, GURL("http://example.com/update"),
|
| @@ -1964,7 +1965,7 @@ TEST_F(ExtensionUpdaterTest, TestManifestFetchesBuilderAddExtension) {
|
| EXPECT_EQ(1u, ManifestFetchersCount(downloader.get()));
|
|
|
| // Extensions with invalid update URLs should be rejected.
|
| - id = id_util::GenerateId("foo2");
|
| + id = crx_file::id_util::GenerateId("foo2");
|
| EXPECT_FALSE(
|
| downloader->AddPendingExtension(id, GURL("http:google.com:foo"), 0));
|
| downloader->StartAllPending(NULL);
|
| @@ -1985,7 +1986,7 @@ TEST_F(ExtensionUpdaterTest, TestManifestFetchesBuilderAddExtension) {
|
|
|
| // Extensions with empty update URLs should have a default one
|
| // filled in.
|
| - id = id_util::GenerateId("foo3");
|
| + id = crx_file::id_util::GenerateId("foo3");
|
| EXPECT_CALL(delegate, GetPingDataForExtension(id, _)).WillOnce(Return(false));
|
| EXPECT_TRUE(downloader->AddPendingExtension(id, GURL(), 0));
|
| downloader->StartAllPending(NULL);
|
|
|