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 <stddef.h> |
| 6 #include <stdint.h> |
| 7 |
5 #include <vector> | 8 #include <vector> |
6 | 9 |
7 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
8 #include "mojo/message_pump/message_pump_mojo.h" | 11 #include "mojo/message_pump/message_pump_mojo.h" |
9 #include "mojo/public/cpp/bindings/array.h" | 12 #include "mojo/public/cpp/bindings/array.h" |
10 #include "mojo/public/cpp/bindings/binding.h" | 13 #include "mojo/public/cpp/bindings/binding.h" |
11 #include "mojo/public/cpp/bindings/lib/array_internal.h" | 14 #include "mojo/public/cpp/bindings/lib/array_internal.h" |
12 #include "mojo/public/cpp/bindings/lib/array_serialization.h" | 15 #include "mojo/public/cpp/bindings/lib/array_serialization.h" |
13 #include "mojo/public/cpp/bindings/lib/bounds_checker.h" | 16 #include "mojo/public/cpp/bindings/lib/bounds_checker.h" |
14 #include "mojo/public/cpp/bindings/lib/fixed_buffer.h" | 17 #include "mojo/public/cpp/bindings/lib/fixed_buffer.h" |
(...skipping 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1122 PodUnionPtr pod(PodUnion::New()); | 1125 PodUnionPtr pod(PodUnion::New()); |
1123 pod->set_f_int16(16); | 1126 pod->set_f_int16(16); |
1124 | 1127 |
1125 ptr->Echo(pod.Pass(), | 1128 ptr->Echo(pod.Pass(), |
1126 [](PodUnionPtr out) { EXPECT_EQ(16, out->get_f_int16()); }); | 1129 [](PodUnionPtr out) { EXPECT_EQ(16, out->get_f_int16()); }); |
1127 run_loop.RunUntilIdle(); | 1130 run_loop.RunUntilIdle(); |
1128 } | 1131 } |
1129 | 1132 |
1130 } // namespace test | 1133 } // namespace test |
1131 } // namespace mojo | 1134 } // namespace mojo |
OLD | NEW |