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

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

Issue 7743004: Move extension/webstore-related URL getters to the extension_urls namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review feedback. Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 1043 matching lines...) Expand 10 before | Expand all | Expand 10 after
1054 } 1054 }
1055 1055
1056 TEST_F(ExtensionUpdaterTest, TestUpdateUrlData) { 1056 TEST_F(ExtensionUpdaterTest, TestUpdateUrlData) {
1057 MessageLoop message_loop; 1057 MessageLoop message_loop;
1058 BrowserThread file_thread(BrowserThread::FILE, &message_loop); 1058 BrowserThread file_thread(BrowserThread::FILE, &message_loop);
1059 1059
1060 ExtensionUpdaterTest::TestUpdateUrlDataEmpty(); 1060 ExtensionUpdaterTest::TestUpdateUrlDataEmpty();
1061 ExtensionUpdaterTest::TestUpdateUrlDataSimple(); 1061 ExtensionUpdaterTest::TestUpdateUrlDataSimple();
1062 ExtensionUpdaterTest::TestUpdateUrlDataCompound(); 1062 ExtensionUpdaterTest::TestUpdateUrlDataCompound();
1063 ExtensionUpdaterTest::TestUpdateUrlDataFromGallery( 1063 ExtensionUpdaterTest::TestUpdateUrlDataFromGallery(
1064 Extension::GalleryUpdateUrl(false).spec()); 1064 extension_urls::GetWebstoreUpdateUrl(false).spec());
1065 ExtensionUpdaterTest::TestUpdateUrlDataFromGallery( 1065 ExtensionUpdaterTest::TestUpdateUrlDataFromGallery(
1066 Extension::GalleryUpdateUrl(true).spec()); 1066 extension_urls::GetWebstoreUpdateUrl(true).spec());
1067 } 1067 }
1068 1068
1069 TEST_F(ExtensionUpdaterTest, TestDetermineUpdates) { 1069 TEST_F(ExtensionUpdaterTest, TestDetermineUpdates) {
1070 ExtensionUpdaterTest::TestDetermineUpdates(); 1070 ExtensionUpdaterTest::TestDetermineUpdates();
1071 } 1071 }
1072 1072
1073 TEST_F(ExtensionUpdaterTest, TestDetermineUpdatesPending) { 1073 TEST_F(ExtensionUpdaterTest, TestDetermineUpdatesPending) {
1074 ExtensionUpdaterTest::TestDetermineUpdatesPending(); 1074 ExtensionUpdaterTest::TestDetermineUpdatesPending();
1075 } 1075 }
1076 1076
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
1227 1227
1228 // TODO(asargent) - (http://crbug.com/12780) add tests for: 1228 // TODO(asargent) - (http://crbug.com/12780) add tests for:
1229 // -prodversionmin (shouldn't update if browser version too old) 1229 // -prodversionmin (shouldn't update if browser version too old)
1230 // -manifests & updates arriving out of order / interleaved 1230 // -manifests & updates arriving out of order / interleaved
1231 // -malformed update url (empty, file://, has query, has a # fragment, etc.) 1231 // -malformed update url (empty, file://, has query, has a # fragment, etc.)
1232 // -An extension gets uninstalled while updates are in progress (so it doesn't 1232 // -An extension gets uninstalled while updates are in progress (so it doesn't
1233 // "come back from the dead") 1233 // "come back from the dead")
1234 // -An extension gets manually updated to v3 while we're downloading v2 (ie 1234 // -An extension gets manually updated to v3 while we're downloading v2 (ie
1235 // you don't get downgraded accidentally) 1235 // you don't get downgraded accidentally)
1236 // -An update manifest mentions multiple updates 1236 // -An update manifest mentions multiple updates
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_updater.cc ('k') | chrome/browser/extensions/extension_webstore_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698