Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(330)

Side by Side Diff: chrome/browser/net/predictor_unittest.cc

Issue 12518036: net: move host_resolver files from net/base to net/dns (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 <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/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/message_loop.h" 12 #include "base/message_loop.h"
13 #include "base/strings/string_number_conversions.h" 13 #include "base/strings/string_number_conversions.h"
14 #include "base/timer.h" 14 #include "base/timer.h"
15 #include "base/values.h" 15 #include "base/values.h"
16 #include "chrome/browser/net/predictor.h" 16 #include "chrome/browser/net/predictor.h"
17 #include "chrome/browser/net/url_info.h" 17 #include "chrome/browser/net/url_info.h"
18 #include "chrome/common/net/predictor_common.h" 18 #include "chrome/common/net/predictor_common.h"
19 #include "content/public/test/test_browser_thread.h" 19 #include "content/public/test/test_browser_thread.h"
20 #include "net/base/address_list.h" 20 #include "net/base/address_list.h"
21 #include "net/base/mock_host_resolver.h"
22 #include "net/base/winsock_init.h" 21 #include "net/base/winsock_init.h"
22 #include "net/dns/mock_host_resolver.h"
23 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
24 24
25 using base::Time; 25 using base::Time;
26 using base::TimeDelta; 26 using base::TimeDelta;
27 using content::BrowserThread; 27 using content::BrowserThread;
28 28
29 namespace chrome_browser_net { 29 namespace chrome_browser_net {
30 30
31 class WaitForResolutionHelper; 31 class WaitForResolutionHelper;
32 32
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 EXPECT_EQ(2U, referral_list.GetSize()); 675 EXPECT_EQ(2U, referral_list.GetSize());
676 676
677 predictor.DiscardAllResults(); 677 predictor.DiscardAllResults();
678 predictor.SerializeReferrers(&referral_list); 678 predictor.SerializeReferrers(&referral_list);
679 EXPECT_EQ(1U, referral_list.GetSize()); 679 EXPECT_EQ(1U, referral_list.GetSize());
680 680
681 predictor.Shutdown(); 681 predictor.Shutdown();
682 } 682 }
683 683
684 } // namespace chrome_browser_net 684 } // namespace chrome_browser_net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698