| Index: third_party/WebKit/Source/core/fileapi/FileTest.cpp
|
| diff --git a/third_party/WebKit/Source/core/fileapi/FileTest.cpp b/third_party/WebKit/Source/core/fileapi/FileTest.cpp
|
| index 7dabbb0f71053f0c8d4bfaeef83fcbeb25fc8355..bd8c1882ef9977404d317e3d09dba04587912c9c 100644
|
| --- a/third_party/WebKit/Source/core/fileapi/FileTest.cpp
|
| +++ b/third_party/WebKit/Source/core/fileapi/FileTest.cpp
|
| @@ -4,6 +4,7 @@
|
|
|
| #include "core/fileapi/File.h"
|
|
|
| +#include "platform/FileMetadata.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
|
|
| namespace blink {
|
| @@ -33,6 +34,17 @@ TEST(FileTest, fileSystemFileWithNativeSnapshot) {
|
| EXPECT_TRUE(file->fileSystemURL().isEmpty());
|
| }
|
|
|
| +TEST(FileTest, fileSystemFileWithNativeSnapshotAndSize) {
|
| + FileMetadata metadata;
|
| + metadata.length = 1024ll;
|
| + metadata.platformPath = "/native/snapshot";
|
| + File* const file =
|
| + File::createForFileSystemFile("name", metadata, File::IsUserVisible);
|
| + EXPECT_TRUE(file->hasBackingFile());
|
| + EXPECT_EQ("/native/snapshot", file->path());
|
| + EXPECT_TRUE(file->fileSystemURL().isEmpty());
|
| +}
|
| +
|
| TEST(FileTest, fileSystemFileWithoutNativeSnapshot) {
|
| KURL url(ParsedURLStringTag(),
|
| "filesystem:http://example.com/isolated/hash/non-native-file");
|
|
|