Index: remoting/host/it2me/it2me_native_messaging_host_unittest.cc |
diff --git a/remoting/host/it2me/it2me_native_messaging_host_unittest.cc b/remoting/host/it2me/it2me_native_messaging_host_unittest.cc |
index b438b962d890547899797497ccfa8da818e7d603..d59ce20e7f10247751067ba6d9f285fe27721c70 100644 |
--- a/remoting/host/it2me/it2me_native_messaging_host_unittest.cc |
+++ b/remoting/host/it2me/it2me_native_messaging_host_unittest.cc |
@@ -17,7 +17,7 @@ |
#include "net/base/net_util.h" |
#include "remoting/base/auto_thread_task_runner.h" |
#include "remoting/host/chromoting_host_context.h" |
-#include "remoting/host/native_messaging/native_messaging_channel.h" |
+#include "remoting/host/native_messaging/pipe_messaging_channel.h" |
#include "remoting/host/setup/test_util.h" |
#include "testing/gtest/include/gtest/gtest.h" |
@@ -431,13 +431,13 @@ void It2MeNativeMessagingHostTest::StartHost() { |
// Creating a native messaging host with a mock It2MeHostFactory. |
scoped_ptr<It2MeHostFactory> factory(new MockIt2MeHostFactory()); |
- scoped_ptr<NativeMessagingChannel> channel( |
- new NativeMessagingChannel(input_read_file.Pass(), |
- output_write_file.Pass())); |
+ scoped_ptr<PipeMessagingChannel> channel(new PipeMessagingChannel( |
Sergey Ulanov
2014/09/18 18:08:35
scoped_ptr<extensions::NativeMessagingChannel>
kelvinp
2014/09/18 19:03:50
Done.
|
+ input_read_file.Pass(), output_write_file.Pass())); |
- host_.reset( |
- new It2MeNativeMessagingHost( |
- host_task_runner_, channel.Pass(), factory.Pass())); |
+ host_.reset(new It2MeNativeMessagingHost( |
+ host_task_runner_, |
+ channel.PassAs<extensions::NativeMessagingChannel>(), |
+ factory.Pass())); |
host_->Start(base::Bind(&It2MeNativeMessagingHostTest::StopHost, |
base::Unretained(this))); |