Index: Source/core/html/forms/FileInputTypeTest.cpp |
diff --git a/Source/core/html/forms/FileInputTypeTest.cpp b/Source/core/html/forms/FileInputTypeTest.cpp |
index 25db7eed0dd9af1f79f3714ef30afb3edd2b9f5c..e256f0bec2fbecd812d9cee7c4ac02ad02aad35d 100644 |
--- a/Source/core/html/forms/FileInputTypeTest.cpp |
+++ b/Source/core/html/forms/FileInputTypeTest.cpp |
@@ -10,8 +10,6 @@ |
#include "core/fileapi/FileList.h" |
#include "core/html/HTMLInputElement.h" |
#include "core/page/DragData.h" |
-#include "wtf/DateMath.h" |
- |
#include <gtest/gtest.h> |
namespace blink { |
@@ -20,14 +18,16 @@ |
{ |
Vector<FileChooserFileInfo> files; |
- // Native file. |
- files.append(FileChooserFileInfo("/native/path/native-file", "display-name")); |
+ // Natvie file. |
+ files.append(FileChooserFileInfo( |
+ "/native/path/native-file", |
+ "display-name")); |
// Non-native file. |
KURL url(ParsedURLStringTag(), "filesystem:http://example.com/isolated/hash/non-native-file"); |
FileMetadata metadata; |
metadata.length = 64; |
- metadata.modificationTimeMS = 1.0 * msPerDay + 3; |
+ metadata.modificationTime = 24 * 60 * 60 /* sec */; |
files.append(FileChooserFileInfo(url, metadata)); |
@@ -43,7 +43,7 @@ |
EXPECT_EQ("non-native-file", list->item(1)->name()); |
EXPECT_EQ(url, list->item(1)->fileSystemURL()); |
EXPECT_EQ(64u, list->item(1)->size()); |
- EXPECT_EQ(1.0 * msPerDay + 3, list->item(1)->lastModified()); |
+ EXPECT_EQ(24 * 60 * 60 * 1000 /* ms */, list->item(1)->lastModified()); |
} |
TEST(FileInputTypeTest, ignoreDroppedNonNativeFiles) |