OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "net/http/http_server_properties_manager.h" | 5 #include "net/http/http_server_properties_manager.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/json/json_writer.h" | 8 #include "base/json/json_writer.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/prefs/pref_registry_simple.h" | 10 #include "base/prefs/pref_registry_simple.h" |
11 #include "base/prefs/testing_pref_service.h" | 11 #include "base/prefs/testing_pref_service.h" |
12 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
13 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
14 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
15 #include "base/test/test_simple_task_runner.h" | 15 #include "base/test/test_simple_task_runner.h" |
16 #include "base/values.h" | 16 #include "base/values.h" |
| 17 #include "net/base/ip_address_number.h" |
17 #include "testing/gmock/include/gmock/gmock.h" | 18 #include "testing/gmock/include/gmock/gmock.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
19 #include "url/gurl.h" | 20 #include "url/gurl.h" |
20 | 21 |
21 namespace net { | 22 namespace net { |
22 | 23 |
23 namespace { | 24 namespace { |
24 | 25 |
25 using base::StringPrintf; | 26 using base::StringPrintf; |
26 using ::testing::_; | 27 using ::testing::_; |
(...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
780 // Run the task after shutdown, but before deletion. | 781 // Run the task after shutdown, but before deletion. |
781 base::RunLoop().RunUntilIdle(); | 782 base::RunLoop().RunUntilIdle(); |
782 Mock::VerifyAndClearExpectations(http_server_props_manager_.get()); | 783 Mock::VerifyAndClearExpectations(http_server_props_manager_.get()); |
783 http_server_props_manager_.reset(); | 784 http_server_props_manager_.reset(); |
784 base::RunLoop().RunUntilIdle(); | 785 base::RunLoop().RunUntilIdle(); |
785 } | 786 } |
786 | 787 |
787 } // namespace | 788 } // namespace |
788 | 789 |
789 } // namespace net | 790 } // namespace net |
OLD | NEW |