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

Side by Side Diff: chrome/browser/extensions/updater/extension_updater_unittest.cc

Issue 10446027: Force update checks to use SSL for store-hosted extensions/apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ready for review Created 8 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <map> 5 #include <map>
6 #include <set> 6 #include <set>
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 1276 matching lines...) Expand 10 before | Expand all | Expand 10 after
1287 1287
1288 TEST_F(ExtensionUpdaterTest, TestBlacklistUpdateCheckRequests) { 1288 TEST_F(ExtensionUpdaterTest, TestBlacklistUpdateCheckRequests) {
1289 TestBlacklistUpdateCheckRequests(); 1289 TestBlacklistUpdateCheckRequests();
1290 } 1290 }
1291 1291
1292 TEST_F(ExtensionUpdaterTest, TestUpdateUrlData) { 1292 TEST_F(ExtensionUpdaterTest, TestUpdateUrlData) {
1293 TestUpdateUrlDataEmpty(); 1293 TestUpdateUrlDataEmpty();
1294 TestUpdateUrlDataSimple(); 1294 TestUpdateUrlDataSimple();
1295 TestUpdateUrlDataCompound(); 1295 TestUpdateUrlDataCompound();
1296 TestUpdateUrlDataFromGallery( 1296 TestUpdateUrlDataFromGallery(
1297 extension_urls::GetWebstoreUpdateUrl(false).spec()); 1297 extension_urls::GetWebstoreUpdateUrl().spec());
1298 TestUpdateUrlDataFromGallery(
1299 extension_urls::GetWebstoreUpdateUrl(true).spec());
1300 } 1298 }
1301 1299
1302 TEST_F(ExtensionUpdaterTest, TestInstallSource) { 1300 TEST_F(ExtensionUpdaterTest, TestInstallSource) {
1303 TestInstallSource(); 1301 TestInstallSource();
1304 } 1302 }
1305 1303
1306 TEST_F(ExtensionUpdaterTest, TestDetermineUpdates) { 1304 TEST_F(ExtensionUpdaterTest, TestDetermineUpdates) {
1307 TestDetermineUpdates(); 1305 TestDetermineUpdates();
1308 } 1306 }
1309 1307
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
1507 // -prodversionmin (shouldn't update if browser version too old) 1505 // -prodversionmin (shouldn't update if browser version too old)
1508 // -manifests & updates arriving out of order / interleaved 1506 // -manifests & updates arriving out of order / interleaved
1509 // -malformed update url (empty, file://, has query, has a # fragment, etc.) 1507 // -malformed update url (empty, file://, has query, has a # fragment, etc.)
1510 // -An extension gets uninstalled while updates are in progress (so it doesn't 1508 // -An extension gets uninstalled while updates are in progress (so it doesn't
1511 // "come back from the dead") 1509 // "come back from the dead")
1512 // -An extension gets manually updated to v3 while we're downloading v2 (ie 1510 // -An extension gets manually updated to v3 while we're downloading v2 (ie
1513 // you don't get downgraded accidentally) 1511 // you don't get downgraded accidentally)
1514 // -An update manifest mentions multiple updates 1512 // -An update manifest mentions multiple updates
1515 1513
1516 } // namespace extensions 1514 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698