Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1240)

Unified Diff: chrome/browser/extensions/extension_management_browsertest.cc

Issue 9834021: Revert most of 128095 (but leave EXPECTs), restoring the AutoUpdate test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_management_browsertest.cc
diff --git a/chrome/browser/extensions/extension_management_browsertest.cc b/chrome/browser/extensions/extension_management_browsertest.cc
index 672d26ea12a13769cd55a9d9f8421d5e7bbfc216..bd5c086be0fae0537917ed98fcdfd135c05f5a56 100644
--- a/chrome/browser/extensions/extension_management_browsertest.cc
+++ b/chrome/browser/extensions/extension_management_browsertest.cc
@@ -263,28 +263,6 @@ IN_PROC_BROWSER_TEST_F(ExtensionManagementTest, AutoUpdate) {
"ogjcoiohnmldgjemafoockdghcjciccf"));
notification_listener.Reset();
-}
-
-IN_PROC_BROWSER_TEST_F(ExtensionManagementTest, AutoUpdateBadKey) {
- NotificationListener notification_listener;
- FilePath basedir = test_data_dir_.AppendASCII("autoupdate");
- // Note: This interceptor gets requests on the IO thread.
- scoped_refptr<AutoUpdateInterceptor> interceptor(new AutoUpdateInterceptor());
- content::URLFetcher::SetEnableInterceptionForTests(true);
-
- // Install version 2 of the extension.
- ExtensionTestMessageListener listener2("v2 installed", false);
- ExtensionService* service = browser()->profile()->GetExtensionService();
- const size_t size_before = service->extensions()->size();
- ASSERT_TRUE(service->disabled_extensions()->is_empty());
- const Extension* extension =
- InstallExtension(basedir.AppendASCII("v2.crx"), 1);
- ASSERT_TRUE(extension);
- listener2.WaitUntilSatisfied();
- ASSERT_EQ(size_before + 1, service->extensions()->size());
- ASSERT_EQ("ogjcoiohnmldgjemafoockdghcjciccf", extension->id());
- ASSERT_EQ("2.0", extension->VersionString());
-
// Now try doing an update to version 3, which has been incorrectly
// signed. This should fail.
interceptor->SetResponseOnIOThread("http://localhost/autoupdate/manifest",
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698