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 <list> | 5 #include <list> |
6 #include <map> | 6 #include <map> |
7 #include <set> | 7 #include <set> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 1450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1461 service.extension_prefs()->LastPingDay(extension->id()); | 1461 service.extension_prefs()->LastPingDay(extension->id()); |
1462 EXPECT_FALSE(last_ping_day.is_null()); | 1462 EXPECT_FALSE(last_ping_day.is_null()); |
1463 int64 seconds_diff = (Time::Now() - last_ping_day).InSeconds(); | 1463 int64 seconds_diff = (Time::Now() - last_ping_day).InSeconds(); |
1464 EXPECT_LT(seconds_diff - results.daystart_elapsed_seconds, 5); | 1464 EXPECT_LT(seconds_diff - results.daystart_elapsed_seconds, 5); |
1465 } | 1465 } |
1466 | 1466 |
1467 protected: | 1467 protected: |
1468 scoped_ptr<TestExtensionPrefs> prefs_; | 1468 scoped_ptr<TestExtensionPrefs> prefs_; |
1469 | 1469 |
1470 private: | 1470 private: |
1471 MessageLoop loop_; | 1471 base::MessageLoop loop_; |
1472 content::TestBrowserThread ui_thread_; | 1472 content::TestBrowserThread ui_thread_; |
1473 content::TestBrowserThread file_thread_; | 1473 content::TestBrowserThread file_thread_; |
1474 content::TestBrowserThread io_thread_; | 1474 content::TestBrowserThread io_thread_; |
1475 | 1475 |
1476 #if defined OS_CHROMEOS | 1476 #if defined OS_CHROMEOS |
1477 chromeos::ScopedTestDeviceSettingsService test_device_settings_service_; | 1477 chromeos::ScopedTestDeviceSettingsService test_device_settings_service_; |
1478 chromeos::ScopedTestCrosSettings test_cros_settings_; | 1478 chromeos::ScopedTestCrosSettings test_cros_settings_; |
1479 chromeos::ScopedTestUserManager test_user_manager_; | 1479 chromeos::ScopedTestUserManager test_user_manager_; |
1480 #endif | 1480 #endif |
1481 }; | 1481 }; |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1728 // -prodversionmin (shouldn't update if browser version too old) | 1728 // -prodversionmin (shouldn't update if browser version too old) |
1729 // -manifests & updates arriving out of order / interleaved | 1729 // -manifests & updates arriving out of order / interleaved |
1730 // -malformed update url (empty, file://, has query, has a # fragment, etc.) | 1730 // -malformed update url (empty, file://, has query, has a # fragment, etc.) |
1731 // -An extension gets uninstalled while updates are in progress (so it doesn't | 1731 // -An extension gets uninstalled while updates are in progress (so it doesn't |
1732 // "come back from the dead") | 1732 // "come back from the dead") |
1733 // -An extension gets manually updated to v3 while we're downloading v2 (ie | 1733 // -An extension gets manually updated to v3 while we're downloading v2 (ie |
1734 // you don't get downgraded accidentally) | 1734 // you don't get downgraded accidentally) |
1735 // -An update manifest mentions multiple updates | 1735 // -An update manifest mentions multiple updates |
1736 | 1736 |
1737 } // namespace extensions | 1737 } // namespace extensions |
OLD | NEW |