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

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

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 <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 1460 matching lines...) Expand 10 before | Expand all | Expand 10 after
1471 service.extension_prefs()->LastPingDay(extension->id()); 1471 service.extension_prefs()->LastPingDay(extension->id());
1472 EXPECT_FALSE(last_ping_day.is_null()); 1472 EXPECT_FALSE(last_ping_day.is_null());
1473 int64 seconds_diff = (Time::Now() - last_ping_day).InSeconds(); 1473 int64 seconds_diff = (Time::Now() - last_ping_day).InSeconds();
1474 EXPECT_LT(seconds_diff - results.daystart_elapsed_seconds, 5); 1474 EXPECT_LT(seconds_diff - results.daystart_elapsed_seconds, 5);
1475 } 1475 }
1476 1476
1477 protected: 1477 protected:
1478 scoped_ptr<TestExtensionPrefs> prefs_; 1478 scoped_ptr<TestExtensionPrefs> prefs_;
1479 1479
1480 private: 1480 private:
1481 MessageLoop loop_; 1481 base::MessageLoop loop_;
1482 content::TestBrowserThread ui_thread_; 1482 content::TestBrowserThread ui_thread_;
1483 content::TestBrowserThread file_thread_; 1483 content::TestBrowserThread file_thread_;
1484 content::TestBrowserThread io_thread_; 1484 content::TestBrowserThread io_thread_;
1485 1485
1486 #if defined OS_CHROMEOS 1486 #if defined OS_CHROMEOS
1487 chromeos::ScopedTestDeviceSettingsService test_device_settings_service_; 1487 chromeos::ScopedTestDeviceSettingsService test_device_settings_service_;
1488 chromeos::ScopedTestCrosSettings test_cros_settings_; 1488 chromeos::ScopedTestCrosSettings test_cros_settings_;
1489 chromeos::ScopedTestUserManager test_user_manager_; 1489 chromeos::ScopedTestUserManager test_user_manager_;
1490 #endif 1490 #endif
1491 }; 1491 };
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
1738 // -prodversionmin (shouldn't update if browser version too old) 1738 // -prodversionmin (shouldn't update if browser version too old)
1739 // -manifests & updates arriving out of order / interleaved 1739 // -manifests & updates arriving out of order / interleaved
1740 // -malformed update url (empty, file://, has query, has a # fragment, etc.) 1740 // -malformed update url (empty, file://, has query, has a # fragment, etc.)
1741 // -An extension gets uninstalled while updates are in progress (so it doesn't 1741 // -An extension gets uninstalled while updates are in progress (so it doesn't
1742 // "come back from the dead") 1742 // "come back from the dead")
1743 // -An extension gets manually updated to v3 while we're downloading v2 (ie 1743 // -An extension gets manually updated to v3 while we're downloading v2 (ie
1744 // you don't get downgraded accidentally) 1744 // you don't get downgraded accidentally)
1745 // -An update manifest mentions multiple updates 1745 // -An update manifest mentions multiple updates
1746 1746
1747 } // namespace extensions 1747 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698