OLD | NEW |
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 1232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1243 EXPECT_LT(seconds_diff - results.daystart_elapsed_seconds, 5); | 1243 EXPECT_LT(seconds_diff - results.daystart_elapsed_seconds, 5); |
1244 } | 1244 } |
1245 | 1245 |
1246 private: | 1246 private: |
1247 MessageLoop loop_; | 1247 MessageLoop loop_; |
1248 content::TestBrowserThread ui_thread_; | 1248 content::TestBrowserThread ui_thread_; |
1249 content::TestBrowserThread file_thread_; | 1249 content::TestBrowserThread file_thread_; |
1250 content::TestBrowserThread io_thread_; | 1250 content::TestBrowserThread io_thread_; |
1251 }; | 1251 }; |
1252 | 1252 |
1253 // Because we test some private methods of ExtensionUpdater, it's easer for the | 1253 // Because we test some private methods of ExtensionUpdater, it's easier for the |
1254 // actual test code to live in ExtenionUpdaterTest methods instead of TEST_F | 1254 // actual test code to live in ExtenionUpdaterTest methods instead of TEST_F |
1255 // subclasses where friendship with ExtenionUpdater is not inherited. | 1255 // subclasses where friendship with ExtenionUpdater is not inherited. |
1256 | 1256 |
1257 TEST_F(ExtensionUpdaterTest, TestExtensionUpdateCheckRequests) { | 1257 TEST_F(ExtensionUpdaterTest, TestExtensionUpdateCheckRequests) { |
1258 TestExtensionUpdateCheckRequests(false); | 1258 TestExtensionUpdateCheckRequests(false); |
1259 } | 1259 } |
1260 | 1260 |
1261 TEST_F(ExtensionUpdaterTest, TestExtensionUpdateCheckRequestsPending) { | 1261 TEST_F(ExtensionUpdaterTest, TestExtensionUpdateCheckRequestsPending) { |
1262 TestExtensionUpdateCheckRequests(true); | 1262 TestExtensionUpdateCheckRequests(true); |
1263 } | 1263 } |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1446 // -prodversionmin (shouldn't update if browser version too old) | 1446 // -prodversionmin (shouldn't update if browser version too old) |
1447 // -manifests & updates arriving out of order / interleaved | 1447 // -manifests & updates arriving out of order / interleaved |
1448 // -malformed update url (empty, file://, has query, has a # fragment, etc.) | 1448 // -malformed update url (empty, file://, has query, has a # fragment, etc.) |
1449 // -An extension gets uninstalled while updates are in progress (so it doesn't | 1449 // -An extension gets uninstalled while updates are in progress (so it doesn't |
1450 // "come back from the dead") | 1450 // "come back from the dead") |
1451 // -An extension gets manually updated to v3 while we're downloading v2 (ie | 1451 // -An extension gets manually updated to v3 while we're downloading v2 (ie |
1452 // you don't get downgraded accidentally) | 1452 // you don't get downgraded accidentally) |
1453 // -An update manifest mentions multiple updates | 1453 // -An update manifest mentions multiple updates |
1454 | 1454 |
1455 } // namespace extensions | 1455 } // namespace extensions |
OLD | NEW |