Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Unified Diff: remoting/host/it2me/it2me_native_messaging_host_unittest.cc

Issue 558403002: Remote Assistance on Chrome OS Part II - Native Messaging renaming (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase on ToT Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..2e79b36d79398fc97cf70492e8062b058183a13a 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,14 @@ 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<extensions::NativeMessagingChannel> channel(
+ new PipeMessagingChannel(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.Pass(),
+ factory.Pass()));
host_->Start(base::Bind(&It2MeNativeMessagingHostTest::StopHost,
base::Unretained(this)));
« no previous file with comments | « remoting/host/it2me/it2me_native_messaging_host_main.cc ('k') | remoting/host/native_messaging/native_messaging_channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698