| 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 <stddef.h> | 5 #include <stddef.h> |
| 6 #include <stdint.h> | 6 #include <stdint.h> |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "components/filesystem/files_test_base.h" | 12 #include "components/filesystem/files_test_base.h" |
| 13 #include "mojo/common/common_type_converters.h" | 13 #include "mojo/common/common_type_converters.h" |
| 14 #include "mojo/util/capture_util.h" | |
| 15 | |
| 16 using mojo::Capture; | |
| 17 | 14 |
| 18 namespace filesystem { | 15 namespace filesystem { |
| 19 namespace { | 16 namespace { |
| 20 | 17 |
| 21 using DirectoryImplTest = FilesTestBase; | 18 using DirectoryImplTest = FilesTestBase; |
| 22 | 19 |
| 23 TEST_F(DirectoryImplTest, Read) { | 20 TEST_F(DirectoryImplTest, Read) { |
| 24 mojom::DirectoryPtr directory; | 21 mojom::DirectoryPtr directory; |
| 25 GetTemporaryRoot(&directory); | 22 GetTemporaryRoot(&directory); |
| 26 mojom::FileError error; | 23 mojom::FileError error; |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 Capture(&error)); | 272 Capture(&error)); |
| 276 ASSERT_TRUE(directory.WaitForIncomingResponse()); | 273 ASSERT_TRUE(directory.WaitForIncomingResponse()); |
| 277 EXPECT_EQ(mojom::FileError::NOT_A_FILE, error); | 274 EXPECT_EQ(mojom::FileError::NOT_A_FILE, error); |
| 278 } | 275 } |
| 279 } | 276 } |
| 280 | 277 |
| 281 // TODO(vtl): Test delete flags. | 278 // TODO(vtl): Test delete flags. |
| 282 | 279 |
| 283 } // namespace | 280 } // namespace |
| 284 } // namespace filesystem | 281 } // namespace filesystem |
| OLD | NEW |