OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |