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

Side by Side Diff: net/proxy/proxy_script_fetcher_unittest.cc

Issue 2363003: Rework the logging for sockets/connectjobs.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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
« no previous file with comments | « net/http/http_network_transaction_unittest.cc ('k') | net/socket/client_socket_handle.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "net/proxy/proxy_script_fetcher.h" 5 #include "net/proxy/proxy_script_fetcher.h"
6 6
7 #include "base/file_path.h" 7 #include "base/file_path.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "net/base/net_util.h" 10 #include "net/base/net_util.h"
(...skipping 22 matching lines...) Expand all
33 RequestContext() { 33 RequestContext() {
34 net::ProxyConfig no_proxy; 34 net::ProxyConfig no_proxy;
35 host_resolver_ = net::CreateSystemHostResolver(NULL); 35 host_resolver_ = net::CreateSystemHostResolver(NULL);
36 proxy_service_ = net::ProxyService::CreateFixed(no_proxy); 36 proxy_service_ = net::ProxyService::CreateFixed(no_proxy);
37 ssl_config_service_ = new net::SSLConfigServiceDefaults; 37 ssl_config_service_ = new net::SSLConfigServiceDefaults;
38 38
39 http_transaction_factory_ = 39 http_transaction_factory_ =
40 new net::HttpCache( 40 new net::HttpCache(
41 net::HttpNetworkLayer::CreateFactory( 41 net::HttpNetworkLayer::CreateFactory(
42 NULL, host_resolver_, proxy_service_, ssl_config_service_, 42 NULL, host_resolver_, proxy_service_, ssl_config_service_,
43 NULL), 43 NULL, NULL),
44 net::HttpCache::DefaultBackend::InMemory(0)); 44 net::HttpCache::DefaultBackend::InMemory(0));
45 } 45 }
46 46
47 private: 47 private:
48 ~RequestContext() { 48 ~RequestContext() {
49 delete http_transaction_factory_; 49 delete http_transaction_factory_;
50 } 50 }
51 }; 51 };
52 52
53 // Required to be in net namespace by FRIEND_TEST. 53 // Required to be in net namespace by FRIEND_TEST.
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 std::string bytes; 321 std::string bytes;
322 TestCompletionCallback callback; 322 TestCompletionCallback callback;
323 int result = pac_fetcher->Fetch(url, &bytes, &callback); 323 int result = pac_fetcher->Fetch(url, &bytes, &callback);
324 EXPECT_EQ(ERR_IO_PENDING, result); 324 EXPECT_EQ(ERR_IO_PENDING, result);
325 EXPECT_EQ(OK, callback.WaitForResult()); 325 EXPECT_EQ(OK, callback.WaitForResult());
326 EXPECT_EQ("This was encoded as UTF-16BE.\n", bytes); 326 EXPECT_EQ("This was encoded as UTF-16BE.\n", bytes);
327 } 327 }
328 } 328 }
329 329
330 } // namespace net 330 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_network_transaction_unittest.cc ('k') | net/socket/client_socket_handle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698