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

Unified Diff: remoting/host/setup/native_messaging_host.h

Issue 14979008: unittests for Chromoting native messaging host. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Some clang-format fixes Created 7 years, 7 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/setup/native_messaging_host.h
diff --git a/remoting/host/setup/native_messaging_host.h b/remoting/host/setup/native_messaging_host.h
index 4bfd09a03818354e0f345992626f6c569900aca7..c5138d23ca9be6dca38fcb2757462d7fa5a3361b 100644
--- a/remoting/host/setup/native_messaging_host.h
+++ b/remoting/host/setup/native_messaging_host.h
@@ -39,6 +39,10 @@ class NativeMessagingHost {
// error is encountered during reading and processing messages.
void Shutdown();
+ // Allow unittests to use a mock DaemonController instance.
+ void SetDaemonControllerForTest(
Sergey Ulanov 2013/05/18 01:59:31 can daemon_controller be passed to the constructor
Lambros 2013/05/22 21:42:18 Done.
+ scoped_ptr<DaemonController> daemon_controller);
+
private:
// Processes a message received from the client app.
void ProcessMessage(scoped_ptr<base::Value> message);
@@ -79,11 +83,10 @@ class NativeMessagingHost {
DaemonController::AsyncResult result);
void SendConfigResponse(scoped_ptr<base::DictionaryValue> response,
scoped_ptr<base::DictionaryValue> config);
- void SendUsageStatsConsentResponse(
- scoped_ptr<base::DictionaryValue> response,
- bool supported,
- bool allowed,
- bool set_by_policy);
+ void SendUsageStatsConsentResponse(scoped_ptr<base::DictionaryValue> response,
+ bool supported,
+ bool allowed,
+ bool set_by_policy);
void SendAsyncResult(scoped_ptr<base::DictionaryValue> response,
DaemonController::AsyncResult result);

Powered by Google App Engine
This is Rietveld 408576698