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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 ASSERT_TRUE(directory.WaitForIncomingResponse()); | 147 ASSERT_TRUE(directory.WaitForIncomingResponse()); |
145 EXPECT_EQ(FILE_ERROR_NOT_A_FILE, error); | 148 EXPECT_EQ(FILE_ERROR_NOT_A_FILE, error); |
146 } | 149 } |
147 } | 150 } |
148 | 151 |
149 | 152 |
150 // TODO(vtl): Test delete flags. | 153 // TODO(vtl): Test delete flags. |
151 | 154 |
152 } // namespace | 155 } // namespace |
153 } // namespace filesystem | 156 } // namespace filesystem |
OLD | NEW |