OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "config.h" | |
6 #include "core/fileapi/File.h" | 5 #include "core/fileapi/File.h" |
7 | 6 |
8 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
9 | 8 |
10 namespace blink { | 9 namespace blink { |
11 | 10 |
12 TEST(FileTest, nativeFile) | 11 TEST(FileTest, nativeFile) |
13 { | 12 { |
14 File* const file = File::create("/native/path"); | 13 File* const file = File::create("/native/path"); |
15 EXPECT_TRUE(file->hasBackingFile()); | 14 EXPECT_TRUE(file->hasBackingFile()); |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 EXPECT_TRUE(blobFileA1->hasSameSource(*blobFileA1)); | 75 EXPECT_TRUE(blobFileA1->hasSameSource(*blobFileA1)); |
77 EXPECT_TRUE(blobFileA1->hasSameSource(*blobFileA2)); | 76 EXPECT_TRUE(blobFileA1->hasSameSource(*blobFileA2)); |
78 EXPECT_FALSE(blobFileA1->hasSameSource(*blobFileB)); | 77 EXPECT_FALSE(blobFileA1->hasSameSource(*blobFileB)); |
79 | 78 |
80 EXPECT_TRUE(fileSystemFileA1->hasSameSource(*fileSystemFileA1)); | 79 EXPECT_TRUE(fileSystemFileA1->hasSameSource(*fileSystemFileA1)); |
81 EXPECT_TRUE(fileSystemFileA1->hasSameSource(*fileSystemFileA2)); | 80 EXPECT_TRUE(fileSystemFileA1->hasSameSource(*fileSystemFileA2)); |
82 EXPECT_FALSE(fileSystemFileA1->hasSameSource(*fileSystemFileB)); | 81 EXPECT_FALSE(fileSystemFileA1->hasSameSource(*fileSystemFileB)); |
83 } | 82 } |
84 | 83 |
85 } // namespace blink | 84 } // namespace blink |
OLD | NEW |