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

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

Issue 2384063008: Enables delegating signal strategy for It2Me Host. (Closed)
Patch Set: Fix unit tests Created 4 years, 2 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_host_unittest.cc
diff --git a/remoting/host/it2me/it2me_host_unittest.cc b/remoting/host/it2me/it2me_host_unittest.cc
index 7fab4d849ddbf7de8156ee9b1f032e112d342f7c..652b211cd6eabf3d6cb65b25ffbff296e9ba08c0 100644
--- a/remoting/host/it2me/it2me_host_unittest.cc
+++ b/remoting/host/it2me/it2me_host_unittest.cc
@@ -22,6 +22,7 @@
#include "remoting/host/chromoting_host_context.h"
#include "remoting/host/it2me/it2me_confirmation_dialog.h"
#include "remoting/host/policy_watcher.h"
+#include "remoting/signaling/fake_signal_strategy.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace remoting {
@@ -106,9 +107,6 @@ class It2MeHostTest : public testing::Test {
scoped_refptr<It2MeHost> it2me_host_;
- std::string directory_bot_jid_;
- XmppSignalStrategy::XmppServerConfig xmpp_server_config_;
-
DISALLOW_COPY_AND_ASSIGN(It2MeHostTest);
};
@@ -120,10 +118,12 @@ void It2MeHostTest::SetUp() {
new AutoThreadTaskRunner(base::ThreadTaskRunnerHandle::Get(),
run_loop_->QuitClosure());
dialog_ = new FakeIt2MeConfirmationDialog();
- it2me_host_ = new It2MeHost(
- ChromotingHostContext::Create(auto_thread_task_runner),
- /*policy_watcher=*/nullptr, base::WrapUnique(dialog_),
- /*observer=*/nullptr, xmpp_server_config_, directory_bot_jid_);
+ it2me_host_ =
+ new It2MeHost(ChromotingHostContext::Create(auto_thread_task_runner),
+ /*policy_watcher=*/nullptr, base::WrapUnique(dialog_),
+ /*observer=*/nullptr,
+ base::WrapUnique(new FakeSignalStrategy("fake_local_jid")),
+ "fake_user_name", "fake_bot_jid");
}
void It2MeHostTest::TearDown() {

Powered by Google App Engine
This is Rietveld 408576698