| OLD | NEW |
| 1 // Copyright (c) 2006-2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2010 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 <time.h> | 5 #include <time.h> |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <sstream> | 8 #include <sstream> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
| 12 #include "base/scoped_ptr.h" | 12 #include "base/scoped_ptr.h" |
| 13 #include "base/string_util.h" | 13 #include "base/string_util.h" |
| 14 #include "base/timer.h" | 14 #include "base/timer.h" |
| 15 #include "chrome/browser/chrome_thread.h" | 15 #include "chrome/browser/chrome_thread.h" |
| 16 #include "chrome/browser/net/dns_global.h" | 16 #include "chrome/browser/net/predictor_api.h" |
| 17 #include "chrome/browser/net/dns_host_info.h" | 17 #include "chrome/browser/net/url_info.h" |
| 18 #include "chrome/common/net/dns.h" | 18 #include "chrome/common/net/predictor_common.h" |
| 19 #include "net/base/address_list.h" | 19 #include "net/base/address_list.h" |
| 20 #include "net/base/mock_host_resolver.h" | 20 #include "net/base/mock_host_resolver.h" |
| 21 #include "net/base/winsock_init.h" | 21 #include "net/base/winsock_init.h" |
| 22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
| 23 | 23 |
| 24 using base::Time; | 24 using base::Time; |
| 25 using base::TimeDelta; | 25 using base::TimeDelta; |
| 26 | 26 |
| 27 namespace chrome_browser_net { | 27 namespace chrome_browser_net { |
| 28 | 28 |
| (...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 631 EXPECT_EQ(queue.Pop(), low2); | 631 EXPECT_EQ(queue.Pop(), low2); |
| 632 EXPECT_EQ(queue.Pop(), low3); | 632 EXPECT_EQ(queue.Pop(), low3); |
| 633 EXPECT_EQ(queue.Pop(), low4); | 633 EXPECT_EQ(queue.Pop(), low4); |
| 634 EXPECT_EQ(queue.Pop(), low5); | 634 EXPECT_EQ(queue.Pop(), low5); |
| 635 EXPECT_EQ(queue.Pop(), low4); | 635 EXPECT_EQ(queue.Pop(), low4); |
| 636 | 636 |
| 637 EXPECT_TRUE(queue.IsEmpty()); | 637 EXPECT_TRUE(queue.IsEmpty()); |
| 638 } | 638 } |
| 639 | 639 |
| 640 } // namespace chrome_browser_net | 640 } // namespace chrome_browser_net |
| OLD | NEW |