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 "files/public/cpp/input_stream_file.h" | 5 #include "files/cpp/input_stream_file.h" |
6 | 6 |
7 #include <string.h> | 7 #include <string.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "files/public/interfaces/files.mojom.h" | 12 #include "files/interfaces/files.mojom.h" |
13 #include "files/public/interfaces/types.mojom.h" | 13 #include "files/interfaces/types.mojom.h" |
14 #include "mojo/public/cpp/application/application_test_base.h" | 14 #include "mojo/public/cpp/application/application_test_base.h" |
15 #include "mojo/public/cpp/bindings/interface_request.h" | 15 #include "mojo/public/cpp/bindings/interface_request.h" |
16 #include "mojo/public/cpp/environment/logging.h" | 16 #include "mojo/public/cpp/environment/logging.h" |
17 #include "mojo/public/cpp/system/macros.h" | 17 #include "mojo/public/cpp/system/macros.h" |
18 #include "mojo/public/cpp/utility/run_loop.h" | 18 #include "mojo/public/cpp/utility/run_loop.h" |
19 | 19 |
20 namespace files_impl { | 20 namespace files_impl { |
21 namespace { | 21 namespace { |
22 | 22 |
23 using InputStreamFileTest = mojo::test::ApplicationTestBase; | 23 using InputStreamFileTest = mojo::test::ApplicationTestBase; |
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 | 530 |
531 // Like |InputStreamFileTest.FifoSync|, but asynchronous. | 531 // Like |InputStreamFileTest.FifoSync|, but asynchronous. |
532 TEST_F(InputStreamFileTest, FifoAsync) { | 532 TEST_F(InputStreamFileTest, FifoAsync) { |
533 mojo::files::FilePtr file; | 533 mojo::files::FilePtr file; |
534 TestClientFifoAsync client(GetProxy(&file)); | 534 TestClientFifoAsync client(GetProxy(&file)); |
535 TestFifo(file.get()); | 535 TestFifo(file.get()); |
536 } | 536 } |
537 | 537 |
538 } // namespace | 538 } // namespace |
539 } // namespace files_impl | 539 } // namespace files_impl |
OLD | NEW |