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

Side by Side Diff: chrome_frame/test/test_server_test.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 | « chrome/service/net/service_url_request_context.cc ('k') | net/base/net_log.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 <windows.h> 5 #include <windows.h>
6 #include <wininet.h> 6 #include <wininet.h>
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/scoped_handle_win.h" 10 #include "base/scoped_handle_win.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 URLRequestTestContext() { 63 URLRequestTestContext() {
64 host_resolver_ = net::CreateSystemHostResolver(NULL); 64 host_resolver_ = net::CreateSystemHostResolver(NULL);
65 proxy_service_ = net::ProxyService::CreateNull(); 65 proxy_service_ = net::ProxyService::CreateNull();
66 ssl_config_service_ = new net::SSLConfigServiceDefaults; 66 ssl_config_service_ = new net::SSLConfigServiceDefaults;
67 http_auth_handler_factory_ = net::HttpAuthHandlerFactory::CreateDefault(); 67 http_auth_handler_factory_ = net::HttpAuthHandlerFactory::CreateDefault();
68 http_transaction_factory_ = 68 http_transaction_factory_ =
69 new net::HttpCache( 69 new net::HttpCache(
70 net::HttpNetworkLayer::CreateFactory(NULL, host_resolver_, 70 net::HttpNetworkLayer::CreateFactory(NULL, host_resolver_,
71 proxy_service_, 71 proxy_service_,
72 ssl_config_service_, 72 ssl_config_service_,
73 http_auth_handler_factory_), 73 http_auth_handler_factory_,
74 NULL),
74 net::HttpCache::DefaultBackend::InMemory(0)); 75 net::HttpCache::DefaultBackend::InMemory(0));
75 // In-memory cookie store. 76 // In-memory cookie store.
76 cookie_store_ = new net::CookieMonster(NULL, NULL); 77 cookie_store_ = new net::CookieMonster(NULL, NULL);
77 } 78 }
78 79
79 virtual ~URLRequestTestContext() { 80 virtual ~URLRequestTestContext() {
80 delete http_transaction_factory_; 81 delete http_transaction_factory_;
81 delete http_auth_handler_factory_; 82 delete http_auth_handler_factory_;
82 } 83 }
83 }; 84 };
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 EXPECT_EQ(file.accessed(), 1); 191 EXPECT_EQ(file.accessed(), 1);
191 EXPECT_EQ(redir.accessed(), 1); 192 EXPECT_EQ(redir.accessed(), 1);
192 193
193 EXPECT_TRUE(person_task.response().find("Guthrie") != std::string::npos); 194 EXPECT_TRUE(person_task.response().find("Guthrie") != std::string::npos);
194 EXPECT_TRUE(file_task.response().find("function") != std::string::npos); 195 EXPECT_TRUE(file_task.response().find("function") != std::string::npos);
195 EXPECT_TRUE(goog_task.response().find("<title>") != std::string::npos); 196 EXPECT_TRUE(goog_task.response().find("<title>") != std::string::npos);
196 } else { 197 } else {
197 ::TerminateThread(worker, ~0); 198 ::TerminateThread(worker, ~0);
198 } 199 }
199 } 200 }
OLDNEW
« no previous file with comments | « chrome/service/net/service_url_request_context.cc ('k') | net/base/net_log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698