OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "mojo/edk/system/platform_handle_dispatcher.h" | 5 #include "mojo/edk/system/platform_handle_dispatcher.h" |
6 | 6 |
7 #include <stdio.h> | 7 #include <stdio.h> |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "mojo/edk/platform/platform_handle_utils_posix.h" | 11 #include "mojo/edk/platform/platform_handle_utils_posix.h" |
| 12 #include "mojo/edk/system/handle_transport.h" |
12 #include "mojo/edk/system/test/scoped_test_dir.h" | 13 #include "mojo/edk/system/test/scoped_test_dir.h" |
13 #include "mojo/edk/util/scoped_file.h" | 14 #include "mojo/edk/util/scoped_file.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
15 | 16 |
16 using mojo::platform::FILEFromPlatformHandle; | 17 using mojo::platform::FILEFromPlatformHandle; |
17 using mojo::platform::PlatformHandleFromFILE; | 18 using mojo::platform::PlatformHandleFromFILE; |
18 using mojo::platform::ScopedPlatformHandle; | 19 using mojo::platform::ScopedPlatformHandle; |
19 using mojo::util::RefPtr; | 20 using mojo::util::RefPtr; |
20 | 21 |
21 namespace mojo { | 22 namespace mojo { |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 EXPECT_EQ(sizeof(kFooBar), | 123 EXPECT_EQ(sizeof(kFooBar), |
123 fread(read_buffer, 1, sizeof(read_buffer), fp.get())); | 124 fread(read_buffer, 1, sizeof(read_buffer), fp.get())); |
124 EXPECT_STREQ(kFooBar, read_buffer); | 125 EXPECT_STREQ(kFooBar, read_buffer); |
125 | 126 |
126 EXPECT_EQ(MOJO_RESULT_OK, dispatcher->Close()); | 127 EXPECT_EQ(MOJO_RESULT_OK, dispatcher->Close()); |
127 } | 128 } |
128 | 129 |
129 } // namespace | 130 } // namespace |
130 } // namespace system | 131 } // namespace system |
131 } // namespace mojo | 132 } // namespace mojo |
OLD | NEW |