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

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

Issue 10500016: Move test_browser_thread.h from content\test to content\public\test. This way we can enforce that i… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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/string_number_conversions.h" 13 #include "base/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/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" 21 #include "net/base/mock_host_resolver.h"
22 #include "net/base/winsock_init.h" 22 #include "net/base/winsock_init.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 {
(...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 EXPECT_EQ(2U, referral_list.GetSize()); 668 EXPECT_EQ(2U, referral_list.GetSize());
669 669
670 predictor.DiscardAllResults(); 670 predictor.DiscardAllResults();
671 predictor.SerializeReferrers(&referral_list); 671 predictor.SerializeReferrers(&referral_list);
672 EXPECT_EQ(1U, referral_list.GetSize()); 672 EXPECT_EQ(1U, referral_list.GetSize());
673 673
674 predictor.Shutdown(); 674 predictor.Shutdown();
675 } 675 }
676 676
677 } // namespace chrome_browser_net 677 } // namespace chrome_browser_net
OLDNEW
« no previous file with comments | « chrome/browser/net/load_timing_observer_unittest.cc ('k') | chrome/browser/net/pref_proxy_config_tracker_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698