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

Unified Diff: remoting/host/setup/me2me_native_messaging_host_unittest.cc

Issue 232223003: Windows chromoting host installation via the NPAPI plugin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unittests Created 6 years, 8 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
« no previous file with comments | « remoting/host/setup/daemon_controller_delegate_win.cc ('k') | remoting/webapp/host_controller.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/setup/me2me_native_messaging_host_unittest.cc
diff --git a/remoting/host/setup/me2me_native_messaging_host_unittest.cc b/remoting/host/setup/me2me_native_messaging_host_unittest.cc
index a2b5fb151e9d57f81854236b5717cf9b8ae01dac..0d0f2af272a35c02bf57b2a6defdc1dd1d09445c 100644
--- a/remoting/host/setup/me2me_native_messaging_host_unittest.cc
+++ b/remoting/host/setup/me2me_native_messaging_host_unittest.cc
@@ -140,6 +140,8 @@ class MockDaemonControllerDelegate : public DaemonController::Delegate {
// DaemonController::Delegate interface.
virtual DaemonController::State GetState() OVERRIDE;
virtual scoped_ptr<base::DictionaryValue> GetConfig() OVERRIDE;
+ virtual void InstallHost(
+ const DaemonController::CompletionCallback& done) OVERRIDE;
virtual void SetConfigAndStart(
scoped_ptr<base::DictionaryValue> config,
bool consent,
@@ -168,6 +170,11 @@ scoped_ptr<base::DictionaryValue> MockDaemonControllerDelegate::GetConfig() {
return scoped_ptr<base::DictionaryValue>(new base::DictionaryValue());
}
+void MockDaemonControllerDelegate::InstallHost(
+ const DaemonController::CompletionCallback& done) {
+ done.Run(DaemonController::RESULT_OK);
+}
+
void MockDaemonControllerDelegate::SetConfigAndStart(
scoped_ptr<base::DictionaryValue> config,
bool consent,
« no previous file with comments | « remoting/host/setup/daemon_controller_delegate_win.cc ('k') | remoting/webapp/host_controller.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698