| Index: mojo/public/cpp/bindings/tests/handle_passing_unittest.cc
|
| diff --git a/mojo/public/cpp/bindings/tests/handle_passing_unittest.cc b/mojo/public/cpp/bindings/tests/handle_passing_unittest.cc
|
| index c420e041a9ded820b191bd5197d5a7dd39f223a5..18fc2ce18cc6cca602599df5998a574edea8065e 100644
|
| --- a/mojo/public/cpp/bindings/tests/handle_passing_unittest.cc
|
| +++ b/mojo/public/cpp/bindings/tests/handle_passing_unittest.cc
|
| @@ -95,9 +95,7 @@ class SampleFactoryImpl : public sample::Factory {
|
| EXPECT_TRUE(WriteTextMessage(pipe1_.get(), text2));
|
| }
|
|
|
| - sample::ResponsePtr response(sample::Response::New());
|
| - response->x = 2;
|
| - response->pipe = std::move(pipe0);
|
| + sample::ResponsePtr response(sample::Response::New(2, std::move(pipe0)));
|
| callback.Run(std::move(response), text1);
|
|
|
| if (request->obj)
|
| @@ -214,10 +212,8 @@ TEST_F(HandlePassingTest, Basic) {
|
| ImportedInterfaceImpl imported_impl(MakeRequest(&imported),
|
| run_loop.QuitClosure());
|
|
|
| - sample::RequestPtr request(sample::Request::New());
|
| - request->x = 1;
|
| - request->pipe = std::move(pipe1.handle0);
|
| - request->obj = std::move(imported);
|
| + sample::RequestPtr request(sample::Request::New(
|
| + 1, std::move(pipe1.handle0), base::nullopt, std::move(imported)));
|
| bool got_response = false;
|
| std::string got_text_reply;
|
| base::RunLoop run_loop2;
|
| @@ -240,8 +236,7 @@ TEST_F(HandlePassingTest, PassInvalid) {
|
| sample::FactoryPtr factory;
|
| SampleFactoryImpl factory_impl(MakeRequest(&factory));
|
|
|
| - sample::RequestPtr request(sample::Request::New());
|
| - request->x = 1;
|
| + sample::RequestPtr request(sample::Request::New(1));
|
| bool got_response = false;
|
| std::string got_text_reply;
|
| base::RunLoop run_loop;
|
|
|