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

Unified Diff: remoting/host/gcd_state_updater_unittest.cc

Issue 2798393007: Use SignalingAddress in SignalStrategy insterface. (Closed)
Patch Set: . Created 3 years, 8 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/gcd_state_updater_unittest.cc
diff --git a/remoting/host/gcd_state_updater_unittest.cc b/remoting/host/gcd_state_updater_unittest.cc
index adcf65d09dae0e839d0f277a568748b00cd37ee7..160bd6580ddb01f30b8ef0f1d72e53614193e40c 100644
--- a/remoting/host/gcd_state_updater_unittest.cc
+++ b/remoting/host/gcd_state_updater_unittest.cc
@@ -35,12 +35,11 @@ class GcdStateUpdaterTest : public testing::Test {
token_getter_(OAuthTokenGetter::SUCCESS,
"<fake_user_email>",
"<fake_access_token>"),
- rest_client_(new GcdRestClient(
- "http://gcd_base_url",
- "<gcd_device_id>",
- nullptr,
- &token_getter_)),
- signal_strategy_("local_jid") {
+ rest_client_(new GcdRestClient("http://gcd_base_url",
+ "<gcd_device_id>",
+ nullptr,
+ &token_getter_)),
+ signal_strategy_(SignalingAddress("local_jid")) {
rest_client_->SetClockForTest(base::WrapUnique(new base::SimpleTestClock));
}
@@ -96,7 +95,7 @@ TEST_F(GcdStateUpdaterTest, QueuedRequests) {
task_runner_->RunUntilIdle();
signal_strategy_.Disconnect();
task_runner_->RunUntilIdle();
- signal_strategy_.SetLocalJid("local_jid2");
+ signal_strategy_.SetLocalAddress(SignalingAddress("local_jid2"));
signal_strategy_.Connect();
task_runner_->RunUntilIdle();

Powered by Google App Engine
This is Rietveld 408576698