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

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

Issue 2384063008: Enables delegating signal strategy for It2Me Host. (Closed)
Patch Set: Fix typos 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
« no previous file with comments | « remoting/host/it2me/it2me_host.cc ('k') | remoting/host/it2me/it2me_native_messaging_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f59e6cc3765256c76029fa8b5ed15883fa78b172..8b218660db91a7e8728a80003b93d2fc9dd77305 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 {
@@ -110,9 +111,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);
};
@@ -127,11 +125,12 @@ void It2MeHostTest::SetUp() {
ui_task_runner_ = host_context->ui_task_runner();
dialog_ = new FakeIt2MeConfirmationDialog();
-
it2me_host_ =
- new It2MeHost(std::move(host_context), /*policy_watcher=*/nullptr,
- base::WrapUnique(dialog_), /*observer=*/nullptr,
- xmpp_server_config_, directory_bot_jid_);
+ new It2MeHost(std::move(host_context),
+ /*policy_watcher=*/nullptr, base::WrapUnique(dialog_),
+ /*observer=*/nullptr,
+ base::WrapUnique(new FakeSignalStrategy("fake_local_jid")),
+ "fake_user_name", "fake_bot_jid");
}
void It2MeHostTest::TearDown() {
« no previous file with comments | « remoting/host/it2me/it2me_host.cc ('k') | remoting/host/it2me/it2me_native_messaging_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698