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

Unified Diff: chrome/browser/history/thumbnail_database_unittest.cc

Issue 10915092: Update thumbnail_database to store times using ToInternalValue() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/history/thumbnail_database.cc ('k') | chrome/common/thumbnail_score.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/thumbnail_database_unittest.cc
diff --git a/chrome/browser/history/thumbnail_database_unittest.cc b/chrome/browser/history/thumbnail_database_unittest.cc
index 0c55e5e953d5d5fa79e9d85a34905ea27c91bbf3..7aab0a993e25e0e5def0c3cdb2003676aff6ef54 100644
--- a/chrome/browser/history/thumbnail_database_unittest.cc
+++ b/chrome/browser/history/thumbnail_database_unittest.cc
@@ -167,7 +167,8 @@ TEST_F(ThumbnailDatabaseTest, GetFaviconAfterMigrationToTopSites) {
EXPECT_EQ(bitmap1_id, favicon_bitmap1.bitmap_id);
EXPECT_EQ(icon_id, favicon_bitmap1.icon_id);
- EXPECT_EQ(time.ToTimeT(), favicon_bitmap1.last_updated.ToTimeT());
+ EXPECT_EQ(time.ToInternalValue(),
+ favicon_bitmap1.last_updated.ToInternalValue());
EXPECT_EQ(data.size(), favicon_bitmap1.bitmap_data->size());
EXPECT_TRUE(std::equal(data.begin(),
data.end(),
@@ -176,7 +177,8 @@ TEST_F(ThumbnailDatabaseTest, GetFaviconAfterMigrationToTopSites) {
EXPECT_EQ(bitmap2_id, favicon_bitmap2.bitmap_id);
EXPECT_EQ(icon_id, favicon_bitmap2.icon_id);
- EXPECT_EQ(time.ToTimeT(), favicon_bitmap2.last_updated.ToTimeT());
+ EXPECT_EQ(time.ToInternalValue(),
+ favicon_bitmap2.last_updated.ToInternalValue());
EXPECT_EQ(data.size(), favicon_bitmap2.bitmap_data->size());
EXPECT_TRUE(std::equal(data.begin(),
data.end(),
@@ -392,7 +394,7 @@ TEST_F(ThumbnailDatabaseTest, UpgradeToVersion6) {
int favicon_id = 1;
GURL url("http://google.com");
- time_t last_updated = Time::Now().ToTimeT();
+ int64 last_updated = Time::Now().ToInternalValue();
std::vector<unsigned char> data(blob1, blob1 + sizeof(blob1));
scoped_refptr<base::RefCountedBytes> bitmap_data(
new base::RefCountedBytes(data));
« no previous file with comments | « chrome/browser/history/thumbnail_database.cc ('k') | chrome/common/thumbnail_score.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698