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

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

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/connection_tester.h" 5 #include "chrome/browser/net/connection_tester.h"
6 6
7 #include "chrome/test/base/testing_pref_service.h" 7 #include "chrome/test/base/testing_pref_service.h"
8 #include "content/test/test_browser_thread.h" 8 #include "content/test/test_browser_thread.h"
9 #include "net/base/cert_verifier.h" 9 #include "net/base/cert_verifier.h"
10 #include "net/base/cookie_monster.h" 10 #include "net/base/cookie_monster.h"
11 #include "net/base/dnsrr_resolver.h" 11 #include "net/base/dnsrr_resolver.h"
12 #include "net/base/mock_host_resolver.h" 12 #include "net/base/mock_host_resolver.h"
13 #include "net/base/ssl_config_service_defaults.h" 13 #include "net/base/ssl_config_service_defaults.h"
14 #include "net/ftp/ftp_network_layer.h" 14 #include "net/ftp/ftp_network_layer.h"
15 #include "net/http/http_auth_handler_factory.h" 15 #include "net/http/http_auth_handler_factory.h"
16 #include "net/http/http_network_layer.h" 16 #include "net/http/http_network_layer.h"
17 #include "net/http/http_network_session.h" 17 #include "net/http/http_network_session.h"
18 #include "net/http/http_server_properties_impl.h" 18 #include "net/http/http_server_properties_impl.h"
19 #include "net/proxy/proxy_config_service_fixed.h" 19 #include "net/proxy/proxy_config_service_fixed.h"
20 #include "net/proxy/proxy_service.h" 20 #include "net/proxy/proxy_service.h"
21 #include "net/test/test_server.h" 21 #include "net/test/test_server.h"
22 #include "net/url_request/url_request_context.h" 22 #include "net/url_request/url_request_context.h"
23 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
24 #include "testing/platform_test.h" 24 #include "testing/platform_test.h"
25 25
26 using content::BrowserThread;
27
26 namespace { 28 namespace {
27 29
28 // This is a testing delegate which simply counts how many times each of 30 // This is a testing delegate which simply counts how many times each of
29 // the delegate's methods were invoked. 31 // the delegate's methods were invoked.
30 class ConnectionTesterDelegate : public ConnectionTester::Delegate { 32 class ConnectionTesterDelegate : public ConnectionTester::Delegate {
31 public: 33 public:
32 ConnectionTesterDelegate() 34 ConnectionTesterDelegate()
33 : start_connection_test_suite_count_(0), 35 : start_connection_test_suite_count_(0),
34 start_connection_test_experiment_count_(0), 36 start_connection_test_experiment_count_(0),
35 completed_connection_test_experiment_count_(0), 37 completed_connection_test_experiment_count_(0),
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 // any pending tasks instead of running them. This causes a problem with 196 // any pending tasks instead of running them. This causes a problem with
195 // net::ClientSocketPoolBaseHelper, since the "Group" holds a pointer 197 // net::ClientSocketPoolBaseHelper, since the "Group" holds a pointer
196 // |backup_task| that it will try to deref during the destructor, but 198 // |backup_task| that it will try to deref during the destructor, but
197 // depending on the order that pending tasks were deleted in, it might 199 // depending on the order that pending tasks were deleted in, it might
198 // already be invalid! See http://crbug.com/43291. 200 // already be invalid! See http://crbug.com/43291.
199 MessageLoop::current()->PostTask(FROM_HERE, new MessageLoop::QuitTask()); 201 MessageLoop::current()->PostTask(FROM_HERE, new MessageLoop::QuitTask());
200 MessageLoop::current()->Run(); 202 MessageLoop::current()->Run();
201 } 203 }
202 204
203 } // namespace 205 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/net/chrome_url_request_context.cc ('k') | chrome/browser/net/cookie_policy_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698