OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/handle_table.h" | 5 #include "mojo/edk/system/handle_table.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "mojo/edk/system/dispatcher.h" | 9 #include "mojo/edk/system/dispatcher.h" |
10 #include "mojo/edk/system/handle.h" | 10 #include "mojo/edk/system/handle.h" |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 | 240 |
241 Handle h; | 241 Handle h; |
242 ASSERT_EQ(MOJO_RESULT_OK, ht.GetAndRemoveHandle(handle_values[i], &h)) << i; | 242 ASSERT_EQ(MOJO_RESULT_OK, ht.GetAndRemoveHandle(handle_values[i], &h)) << i; |
243 ASSERT_EQ(handles[i], h) << i; | 243 ASSERT_EQ(handles[i], h) << i; |
244 } | 244 } |
245 | 245 |
246 for (size_t i = 0u; i < kNumHandles; i++) | 246 for (size_t i = 0u; i < kNumHandles; i++) |
247 EXPECT_EQ(MOJO_RESULT_OK, handles[i].dispatcher->Close()) << i; | 247 EXPECT_EQ(MOJO_RESULT_OK, handles[i].dispatcher->Close()) << i; |
248 } | 248 } |
249 | 249 |
| 250 // TODO(vtl): Figure out how to test |MarkBusyAndStartTransport()|. |
| 251 |
250 } // namespace | 252 } // namespace |
251 } // namespace system | 253 } // namespace system |
252 } // namespace mojo | 254 } // namespace mojo |
OLD | NEW |