| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "remoting/test/remote_host_info_fetcher.h" | 5 #include "remoting/test/remote_host_info_fetcher.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/macros.h" |
| 8 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 9 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
| 10 #include "net/url_request/test_url_fetcher_factory.h" | 11 #include "net/url_request/test_url_fetcher_factory.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 12 | 13 |
| 13 namespace { | 14 namespace { |
| 14 const char kTestApplicationId[] = "klasdfjlkasdfjklasjfdkljsadf"; | 15 const char kTestApplicationId[] = "klasdfjlkasdfjklasjfdkljsadf"; |
| 15 const char kTestApplicationId2[] = "klasdfjlkasdfjklasjfdkljsadf2"; | 16 const char kTestApplicationId2[] = "klasdfjlkasdfjklasjfdkljsadf2"; |
| 16 const char kAccessTokenValue[] = "test_access_token_value"; | 17 const char kAccessTokenValue[] = "test_access_token_value"; |
| 17 const char kRemoteHostInfoReadyResponse[] = | 18 const char kRemoteHostInfoReadyResponse[] = |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 EXPECT_TRUE(remote_host_info_.IsReadyForConnection()); | 294 EXPECT_TRUE(remote_host_info_.IsReadyForConnection()); |
| 294 EXPECT_EQ(remote_host_info_.application_id.compare(kTestApplicationId2), 0); | 295 EXPECT_EQ(remote_host_info_.application_id.compare(kTestApplicationId2), 0); |
| 295 EXPECT_TRUE(!remote_host_info_.host_id.empty()); | 296 EXPECT_TRUE(!remote_host_info_.host_id.empty()); |
| 296 EXPECT_TRUE(!remote_host_info_.host_jid.empty()); | 297 EXPECT_TRUE(!remote_host_info_.host_jid.empty()); |
| 297 EXPECT_TRUE(!remote_host_info_.authorization_code.empty()); | 298 EXPECT_TRUE(!remote_host_info_.authorization_code.empty()); |
| 298 EXPECT_TRUE(!remote_host_info_.shared_secret.empty()); | 299 EXPECT_TRUE(!remote_host_info_.shared_secret.empty()); |
| 299 } | 300 } |
| 300 | 301 |
| 301 } // namespace test | 302 } // namespace test |
| 302 } // namespace remoting | 303 } // namespace remoting |
| OLD | NEW |