| 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 5345ccaee5108c7f8191c01899ae65abbdc2059a..3af49e424fe86f0a355e6c76898f874f37b9b309 100644
|
| --- a/mojo/public/cpp/bindings/tests/handle_passing_unittest.cc
|
| +++ b/mojo/public/cpp/bindings/tests/handle_passing_unittest.cc
|
| @@ -2,6 +2,8 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| +#include <utility>
|
| +
|
| #include "mojo/public/cpp/bindings/binding.h"
|
| #include "mojo/public/cpp/bindings/strong_binding.h"
|
| #include "mojo/public/cpp/environment/environment.h"
|
| @@ -89,7 +91,8 @@ class SampleFactoryImpl : public sample::Factory {
|
| callback.Run(response.Pass(), text1);
|
|
|
| if (request->obj)
|
| - request->obj->DoSomething();
|
| + imported::ImportedInterfacePtr::Create(std::move(request->obj))
|
| + ->DoSomething();
|
| }
|
|
|
| void DoStuff2(ScopedDataPipeConsumerHandle pipe,
|
| @@ -126,9 +129,9 @@ class SampleFactoryImpl : public sample::Factory {
|
| const mojo::Callback<void(InterfaceRequest<imported::ImportedInterface>)>&
|
| callback) override {}
|
| void TakeImportedInterface(
|
| - imported::ImportedInterfacePtr imported,
|
| - const mojo::Callback<void(imported::ImportedInterfacePtr)>& callback)
|
| - override {}
|
| + InterfaceHandle<imported::ImportedInterface> imported,
|
| + const mojo::Callback<void(InterfaceHandle<imported::ImportedInterface>)>&
|
| + callback) override {}
|
|
|
| private:
|
| ScopedMessagePipeHandle pipe1_;
|
|
|