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

Unified Diff: remoting/host/chromoting_host_unittest.cc

Issue 7262015: Conenct Chromoting plugin debug log to JS UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missing host logging files Created 9 years, 6 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/chromoting_host_unittest.cc
diff --git a/remoting/host/chromoting_host_unittest.cc b/remoting/host/chromoting_host_unittest.cc
index fbf0b8f0ac9d2d41a11fefc512033886257fca9a..3f057e8cf79ccff29da07888049aec151776a20c 100644
--- a/remoting/host/chromoting_host_unittest.cc
+++ b/remoting/host/chromoting_host_unittest.cc
@@ -5,6 +5,7 @@
#include "base/bind.h"
#include "base/memory/scoped_ptr.h"
#include "base/task.h"
+#include "remoting/base/logger.h"
#include "remoting/host/capturer_fake.h"
#include "remoting/host/chromoting_host.h"
#include "remoting/host/chromoting_host_context.h"
@@ -86,6 +87,8 @@ class ChromotingHostTest : public testing::Test {
EXPECT_CALL(context_, ui_message_loop())
.Times(AnyNumber());
+ logger_.reset(new Logger());
+
context_.SetUITaskPostFunction(base::Bind(
static_cast<void(MessageLoop::*)(
const tracked_objects::Location&, Task*)>(&MessageLoop::PostTask),
@@ -104,7 +107,7 @@ class ChromotingHostTest : public testing::Test {
MockAccessVerifier* access_verifier = new MockAccessVerifier();
host_ = ChromotingHost::Create(&context_, config_,
- desktop, access_verifier);
+ desktop, access_verifier, logger_.get());
credentials_.set_type(protocol::PASSWORD);
credentials_.set_username("user");
credentials_.set_credential("password");
@@ -205,6 +208,7 @@ class ChromotingHostTest : public testing::Test {
}
protected:
+ scoped_ptr<Logger> logger_;
MessageLoop message_loop_;
MockConnectionToClientEventHandler handler_;
scoped_refptr<ChromotingHost> host_;
@@ -229,7 +233,7 @@ class ChromotingHostTest : public testing::Test {
MockEventExecutor* event_executor_;
MockCurtain* curtain_;
MockDisconnectWindow* disconnect_window_;
- ContinueWindow* continue_window_;
+ MockContinueWindow* continue_window_;
MockLocalInputMonitor* local_input_monitor_;
};

Powered by Google App Engine
This is Rietveld 408576698