| Index: mojo/public/cpp/bindings/tests/union_unittest.cc
|
| diff --git a/mojo/public/cpp/bindings/tests/union_unittest.cc b/mojo/public/cpp/bindings/tests/union_unittest.cc
|
| index ed61524fd3ac82854b64bc50b0110ec23fd10fe1..a30bf847f0d0604ac491d01b63be5c113e286fa3 100644
|
| --- a/mojo/public/cpp/bindings/tests/union_unittest.cc
|
| +++ b/mojo/public/cpp/bindings/tests/union_unittest.cc
|
| @@ -1238,6 +1238,10 @@ class UnionInterfaceImpl : public UnionInterface {
|
| }
|
| };
|
|
|
| +void ExpectInt16(int16_t value, PodUnionPtr out) {
|
| + EXPECT_EQ(value, out->get_f_int16());
|
| +}
|
| +
|
| TEST(UnionTest, UnionInInterface) {
|
| base::MessageLoop run_loop;
|
| UnionInterfaceImpl impl;
|
| @@ -1247,8 +1251,7 @@ TEST(UnionTest, UnionInInterface) {
|
| PodUnionPtr pod(PodUnion::New());
|
| pod->set_f_int16(16);
|
|
|
| - ptr->Echo(std::move(pod),
|
| - [](PodUnionPtr out) { EXPECT_EQ(16, out->get_f_int16()); });
|
| + ptr->Echo(std::move(pod), base::Bind(&ExpectInt16, 16));
|
| run_loop.RunUntilIdle();
|
| }
|
|
|
|
|