| Index: remoting/host/chromoting_host_unittest.cc
|
| diff --git a/remoting/host/chromoting_host_unittest.cc b/remoting/host/chromoting_host_unittest.cc
|
| index 9a5de768e2936a92c278a939e4d7c4d111df6658..2f43916dbdfc8c2f969e715ffac3d474c795b513 100644
|
| --- a/remoting/host/chromoting_host_unittest.cc
|
| +++ b/remoting/host/chromoting_host_unittest.cc
|
| @@ -18,6 +18,7 @@
|
| #include "remoting/protocol/fake_desktop_capturer.h"
|
| #include "remoting/protocol/protocol_mock_objects.h"
|
| #include "remoting/protocol/session_config.h"
|
| +#include "remoting/protocol/transport_context.h"
|
| #include "testing/gmock/include/gmock/gmock.h"
|
| #include "testing/gmock_mutant.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| @@ -50,8 +51,7 @@ namespace remoting {
|
|
|
| class ChromotingHostTest : public testing::Test {
|
| public:
|
| - ChromotingHostTest() {
|
| - }
|
| + ChromotingHostTest() {}
|
|
|
| void SetUp() override {
|
| task_runner_ = new AutoThreadTaskRunner(message_loop_.task_runner(),
|
| @@ -60,14 +60,15 @@ class ChromotingHostTest : public testing::Test {
|
| desktop_environment_factory_.reset(new FakeDesktopEnvironmentFactory());
|
| session_manager_ = new protocol::MockSessionManager();
|
|
|
| - host_.reset(new ChromotingHost(desktop_environment_factory_.get(),
|
| - make_scoped_ptr(session_manager_),
|
| - task_runner_, // Audio
|
| - task_runner_, // Input
|
| - task_runner_, // Video capture
|
| - task_runner_, // Video encode
|
| - task_runner_, // Network
|
| - task_runner_)); // UI
|
| + host_.reset(new ChromotingHost(
|
| + desktop_environment_factory_.get(), make_scoped_ptr(session_manager_),
|
| + protocol::TransportContext::ForTests(protocol::TransportRole::SERVER),
|
| + task_runner_, // Audio
|
| + task_runner_, // Input
|
| + task_runner_, // Video capture
|
| + task_runner_, // Video encode
|
| + task_runner_, // Network
|
| + task_runner_)); // UI
|
| host_->AddStatusObserver(&host_status_observer_);
|
|
|
| xmpp_login_ = "host@domain";
|
|
|