OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <map> | 5 #include <map> |
6 #include <string> | 6 #include <string> |
7 | 7 |
8 #include "components/filesystem/files_test_base.h" | 8 #include "components/filesystem/files_test_base.h" |
| 9 #include "mojo/util/capture_util.h" |
| 10 |
| 11 using mojo::Capture; |
9 | 12 |
10 namespace filesystem { | 13 namespace filesystem { |
11 namespace { | 14 namespace { |
12 | 15 |
13 using DirectoryImplTest = FilesTestBase; | 16 using DirectoryImplTest = FilesTestBase; |
14 | 17 |
15 TEST_F(DirectoryImplTest, Read) { | 18 TEST_F(DirectoryImplTest, Read) { |
16 DirectoryPtr directory; | 19 DirectoryPtr directory; |
17 GetTemporaryRoot(&directory); | 20 GetTemporaryRoot(&directory); |
18 FileError error; | 21 FileError error; |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 ASSERT_TRUE(directory.WaitForIncomingResponse()); | 149 ASSERT_TRUE(directory.WaitForIncomingResponse()); |
147 EXPECT_EQ(FILE_ERROR_NOT_A_FILE, error); | 150 EXPECT_EQ(FILE_ERROR_NOT_A_FILE, error); |
148 } | 151 } |
149 } | 152 } |
150 | 153 |
151 | 154 |
152 // TODO(vtl): Test delete flags. | 155 // TODO(vtl): Test delete flags. |
153 | 156 |
154 } // namespace | 157 } // namespace |
155 } // namespace filesystem | 158 } // namespace filesystem |
OLD | NEW |