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 "modules/filesystem/DOMFileSystemBase.h" | 5 #include "modules/filesystem/DOMFileSystemBase.h" |
7 | 6 |
8 #include "core/fileapi/File.h" | 7 #include "core/fileapi/File.h" |
9 #include "public/platform/Platform.h" | 8 #include "public/platform/Platform.h" |
10 #include "public/platform/WebUnitTestSupport.h" | 9 #include "public/platform/WebUnitTestSupport.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
12 | 11 |
13 | 12 |
14 namespace blink { | 13 namespace blink { |
15 | 14 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 58 |
60 File* file = DOMFileSystemBase::createFile(m_fileMetadata, rootUrl, FileSyst
emTypePersistent, "UserVisibleName.txt"); | 59 File* file = DOMFileSystemBase::createFile(m_fileMetadata, rootUrl, FileSyst
emTypePersistent, "UserVisibleName.txt"); |
61 EXPECT_TRUE(file); | 60 EXPECT_TRUE(file); |
62 EXPECT_TRUE(file->hasBackingFile()); | 61 EXPECT_TRUE(file->hasBackingFile()); |
63 EXPECT_EQ(File::IsNotUserVisible, file->userVisibility()); | 62 EXPECT_EQ(File::IsNotUserVisible, file->userVisibility()); |
64 EXPECT_EQ("UserVisibleName.txt", file->name()); | 63 EXPECT_EQ("UserVisibleName.txt", file->name()); |
65 EXPECT_EQ(m_filePath, file->path()); | 64 EXPECT_EQ(m_filePath, file->path()); |
66 } | 65 } |
67 | 66 |
68 } // namespace blink | 67 } // namespace blink |
OLD | NEW |