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