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

Unified Diff: content/browser/fileapi/dragged_file_util_unittest.cc

Issue 1432403003: Do not call stat() when reading directories via File API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed FSP tests. Created 5 years, 1 month 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
Index: content/browser/fileapi/dragged_file_util_unittest.cc
diff --git a/content/browser/fileapi/dragged_file_util_unittest.cc b/content/browser/fileapi/dragged_file_util_unittest.cc
index 38d83374baa31dfd6ac0f9e98229f65e31c95515..398ce6d1a05cdcb132df06b8ceed77336a7e5c5d 100644
--- a/content/browser/fileapi/dragged_file_util_unittest.cc
+++ b/content/browser/fileapi/dragged_file_util_unittest.cc
@@ -374,8 +374,6 @@ TEST_F(DraggedFileUtilTest, ReadDirectoryTest) {
storage::DirectoryEntry entry;
entry.is_directory = file_info.IsDirectory();
entry.name = current.BaseName().value();
- entry.size = file_info.GetSize();
- entry.last_modified_time = file_info.GetLastModifiedTime();
expected_entry_map[entry.name] = entry;
#if defined(OS_POSIX)
@@ -403,9 +401,6 @@ TEST_F(DraggedFileUtilTest, ReadDirectoryTest) {
EXPECT_TRUE(found != expected_entry_map.end());
EXPECT_EQ(found->second.name, entry.name);
EXPECT_EQ(found->second.is_directory, entry.is_directory);
- EXPECT_EQ(found->second.size, entry.size);
- EXPECT_EQ(found->second.last_modified_time.ToDoubleT(),
- entry.last_modified_time.ToDoubleT());
}
}
}

Powered by Google App Engine
This is Rietveld 408576698