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/embedder/embedder.h" | 5 #include "mojo/edk/embedder/embedder.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <utility> | 10 #include <utility> |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 // 4. "Bar"+mp1 | 183 // 4. "Bar"+mp1 |
184 // 5. (close) | 184 // 5. (close) |
185 // 6. (close) | 185 // 6. (close) |
186 // 7. "baz" | 186 // 7. "baz" |
187 // 8. (closed) | 187 // 8. (closed) |
188 // 9. "quux"+mp2 | 188 // 9. "quux"+mp2 |
189 // 10. (close) | 189 // 10. (close) |
190 // 11. (wait/cl.) | 190 // 11. (wait/cl.) |
191 // 12. (wait/cl.) | 191 // 12. (wait/cl.) |
192 | 192 |
| 193 #if !defined(OS_IOS) |
| 194 |
193 #if defined(OS_ANDROID) | 195 #if defined(OS_ANDROID) |
194 // Android multi-process tests are not executing the new process. This is flaky. | 196 // Android multi-process tests are not executing the new process. This is flaky. |
195 #define MAYBE_MultiprocessChannels DISABLED_MultiprocessChannels | 197 #define MAYBE_MultiprocessChannels DISABLED_MultiprocessChannels |
196 #else | 198 #else |
197 #define MAYBE_MultiprocessChannels MultiprocessChannels | 199 #define MAYBE_MultiprocessChannels MultiprocessChannels |
198 #endif // defined(OS_ANDROID) | 200 #endif // defined(OS_ANDROID) |
199 TEST_F(EmbedderTest, MAYBE_MultiprocessChannels) { | 201 TEST_F(EmbedderTest, MAYBE_MultiprocessChannels) { |
200 RUN_CHILD_ON_PIPE(MultiprocessChannelsClient, server_mp) | 202 RUN_CHILD_ON_PIPE(MultiprocessChannelsClient, server_mp) |
201 // 1. Write a message to |server_mp| (attaching nothing). | 203 // 1. Write a message to |server_mp| (attaching nothing). |
202 WriteMessage(server_mp, "hello"); | 204 WriteMessage(server_mp, "hello"); |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 MojoWait(mp1, MOJO_HANDLE_SIGNAL_READABLE, | 280 MojoWait(mp1, MOJO_HANDLE_SIGNAL_READABLE, |
279 MOJO_DEADLINE_INDEFINITE, &state)); | 281 MOJO_DEADLINE_INDEFINITE, &state)); |
280 ASSERT_EQ(MOJO_HANDLE_SIGNAL_PEER_CLOSED, state.satisfied_signals); | 282 ASSERT_EQ(MOJO_HANDLE_SIGNAL_PEER_CLOSED, state.satisfied_signals); |
281 ASSERT_EQ(MOJO_HANDLE_SIGNAL_PEER_CLOSED, state.satisfiable_signals); | 283 ASSERT_EQ(MOJO_HANDLE_SIGNAL_PEER_CLOSED, state.satisfiable_signals); |
282 ASSERT_EQ(MOJO_RESULT_OK, MojoClose(mp1)); | 284 ASSERT_EQ(MOJO_RESULT_OK, MojoClose(mp1)); |
283 } | 285 } |
284 | 286 |
285 // TODO(vtl): Test immediate write & close. | 287 // TODO(vtl): Test immediate write & close. |
286 // TODO(vtl): Test broken-connection cases. | 288 // TODO(vtl): Test broken-connection cases. |
287 | 289 |
| 290 #endif // !defined(OS_IOS) |
| 291 |
288 } // namespace | 292 } // namespace |
289 } // namespace edk | 293 } // namespace edk |
290 } // namespace mojo | 294 } // namespace mojo |
OLD | NEW |