OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/net/predictor.h" | 5 #include "chrome/browser/net/predictor.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <time.h> | 8 #include <time.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
11 #include <memory> | 11 #include <memory> |
12 #include <sstream> | 12 #include <sstream> |
13 #include <string> | 13 #include <string> |
14 | 14 |
15 #include "base/location.h" | 15 #include "base/location.h" |
16 #include "base/macros.h" | 16 #include "base/macros.h" |
17 #include "base/message_loop/message_loop.h" | 17 #include "base/message_loop/message_loop.h" |
18 #include "base/single_thread_task_runner.h" | 18 #include "base/single_thread_task_runner.h" |
19 #include "base/strings/string_number_conversions.h" | 19 #include "base/strings/string_number_conversions.h" |
20 #include "base/thread_task_runner_handle.h" | 20 #include "base/threading/thread_task_runner_handle.h" |
21 #include "base/timer/timer.h" | 21 #include "base/timer/timer.h" |
22 #include "base/values.h" | 22 #include "base/values.h" |
23 #include "build/build_config.h" | 23 #include "build/build_config.h" |
24 #include "chrome/browser/net/url_info.h" | 24 #include "chrome/browser/net/url_info.h" |
25 #include "components/network_hints/common/network_hints_common.h" | 25 #include "components/network_hints/common/network_hints_common.h" |
26 #include "content/public/test/test_browser_thread.h" | 26 #include "content/public/test/test_browser_thread.h" |
27 #include "net/base/address_list.h" | 27 #include "net/base/address_list.h" |
28 #include "net/base/load_flags.h" | 28 #include "net/base/load_flags.h" |
29 #include "net/base/net_errors.h" | 29 #include "net/base/net_errors.h" |
30 #include "net/base/winsock_init.h" | 30 #include "net/base/winsock_init.h" |
(...skipping 811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
842 testing_master.Resolve(goog, UrlInfo::OMNIBOX_MOTIVATED); | 842 testing_master.Resolve(goog, UrlInfo::OMNIBOX_MOTIVATED); |
843 | 843 |
844 // Proxy may not be in use (the PAC script has not yet been evaluated), so the | 844 // Proxy may not be in use (the PAC script has not yet been evaluated), so the |
845 // name has been registered for pre-resolve. | 845 // name has been registered for pre-resolve. |
846 EXPECT_FALSE(testing_master.work_queue_.IsEmpty()); | 846 EXPECT_FALSE(testing_master.work_queue_.IsEmpty()); |
847 | 847 |
848 testing_master.Shutdown(); | 848 testing_master.Shutdown(); |
849 } | 849 } |
850 | 850 |
851 } // namespace chrome_browser_net | 851 } // namespace chrome_browser_net |
OLD | NEW |