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/host_list_fetcher.h" | 5 #include "remoting/test/host_list_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 "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
11 #include "net/url_request/test_url_fetcher_factory.h" | 12 #include "net/url_request/test_url_fetcher_factory.h" |
12 #include "remoting/test/host_info.h" | 13 #include "remoting/test/host_info.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
14 | 15 |
15 namespace { | 16 namespace { |
16 | 17 |
17 // Used as a HostListCallback for testing. | 18 // Used as a HostListCallback for testing. |
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 empty_host_list_callback); | 436 empty_host_list_callback); |
436 | 437 |
437 empty_items_run_loop.Run(); | 438 empty_items_run_loop.Run(); |
438 | 439 |
439 // If we received an empty items response, then host list should be empty. | 440 // If we received an empty items response, then host list should be empty. |
440 EXPECT_TRUE(empty_items_hostlist.empty()); | 441 EXPECT_TRUE(empty_items_hostlist.empty()); |
441 } | 442 } |
442 | 443 |
443 } // namespace test | 444 } // namespace test |
444 } // namespace remoting | 445 } // namespace remoting |
OLD | NEW |