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 <vector> | 5 #include <vector> |
6 | 6 |
7 #include "base/files/file.h" | 7 #include "base/files/file.h" |
8 #include "components/filesystem/files_test_base.h" | 8 #include "components/filesystem/files_test_base.h" |
9 #include "mojo/platform_handle/platform_handle_functions.h" | 9 #include "mojo/platform_handle/platform_handle_functions.h" |
| 10 #include "mojo/public/cpp/bindings/interface_request.h" |
| 11 #include "mojo/public/cpp/bindings/type_converter.h" |
10 #include "mojo/util/capture_util.h" | 12 #include "mojo/util/capture_util.h" |
11 #include "third_party/mojo/src/mojo/public/cpp/bindings/interface_request.h" | |
12 #include "third_party/mojo/src/mojo/public/cpp/bindings/type_converter.h" | |
13 | 13 |
14 using mojo::Capture; | 14 using mojo::Capture; |
15 | 15 |
16 namespace filesystem { | 16 namespace filesystem { |
17 namespace { | 17 namespace { |
18 | 18 |
19 using FileImplTest = FilesTestBase; | 19 using FileImplTest = FilesTestBase; |
20 | 20 |
21 TEST_F(FileImplTest, CreateWriteCloseRenameOpenRead) { | 21 TEST_F(FileImplTest, CreateWriteCloseRenameOpenRead) { |
22 DirectoryPtr directory; | 22 DirectoryPtr directory; |
(...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
680 EXPECT_EQ(static_cast<uint8_t>('h'), bytes_read[0]); | 680 EXPECT_EQ(static_cast<uint8_t>('h'), bytes_read[0]); |
681 EXPECT_EQ(static_cast<uint8_t>('e'), bytes_read[1]); | 681 EXPECT_EQ(static_cast<uint8_t>('e'), bytes_read[1]); |
682 EXPECT_EQ(static_cast<uint8_t>('l'), bytes_read[2]); | 682 EXPECT_EQ(static_cast<uint8_t>('l'), bytes_read[2]); |
683 EXPECT_EQ(static_cast<uint8_t>('l'), bytes_read[3]); | 683 EXPECT_EQ(static_cast<uint8_t>('l'), bytes_read[3]); |
684 EXPECT_EQ(static_cast<uint8_t>('o'), bytes_read[4]); | 684 EXPECT_EQ(static_cast<uint8_t>('o'), bytes_read[4]); |
685 } | 685 } |
686 } | 686 } |
687 | 687 |
688 } // namespace | 688 } // namespace |
689 } // namespace filesystem | 689 } // namespace filesystem |
OLD | NEW |