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

Side by Side Diff: chrome_frame/test/test_server_test.cc

Issue 4067002: First pass at adding http/backend cache to NetLog (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Lint fixes Created 9 years, 11 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_frame/metrics_service.cc ('k') | net/base/capturing_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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 host_resolver_, 74 host_resolver_,
75 cert_verifier_, 75 cert_verifier_,
76 NULL /* dnsrr_resolver */, 76 NULL /* dnsrr_resolver */,
77 NULL /* dns_cert_checker */, 77 NULL /* dns_cert_checker */,
78 NULL /* ssl_host_info_factory */, 78 NULL /* ssl_host_info_factory */,
79 proxy_service_, 79 proxy_service_,
80 ssl_config_service_, 80 ssl_config_service_,
81 http_auth_handler_factory_, 81 http_auth_handler_factory_,
82 NULL /* network_delegate */, 82 NULL /* network_delegate */,
83 NULL /* net_log */), 83 NULL /* net_log */),
84 NULL /* net_log */,
84 net::HttpCache::DefaultBackend::InMemory(0)); 85 net::HttpCache::DefaultBackend::InMemory(0));
85 // In-memory cookie store. 86 // In-memory cookie store.
86 cookie_store_ = new net::CookieMonster(NULL, NULL); 87 cookie_store_ = new net::CookieMonster(NULL, NULL);
87 } 88 }
88 89
89 virtual ~URLRequestTestContext() { 90 virtual ~URLRequestTestContext() {
90 delete http_transaction_factory_; 91 delete http_transaction_factory_;
91 delete http_auth_handler_factory_; 92 delete http_auth_handler_factory_;
92 delete cert_verifier_; 93 delete cert_verifier_;
93 delete host_resolver_; 94 delete host_resolver_;
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 EXPECT_EQ(file.accessed(), 1); 203 EXPECT_EQ(file.accessed(), 1);
203 EXPECT_EQ(redir.accessed(), 1); 204 EXPECT_EQ(redir.accessed(), 1);
204 205
205 EXPECT_TRUE(person_task.response().find("Guthrie") != std::string::npos); 206 EXPECT_TRUE(person_task.response().find("Guthrie") != std::string::npos);
206 EXPECT_TRUE(file_task.response().find("function") != std::string::npos); 207 EXPECT_TRUE(file_task.response().find("function") != std::string::npos);
207 EXPECT_TRUE(goog_task.response().find("<title>") != std::string::npos); 208 EXPECT_TRUE(goog_task.response().find("<title>") != std::string::npos);
208 } else { 209 } else {
209 ::TerminateThread(worker, ~0); 210 ::TerminateThread(worker, ~0);
210 } 211 }
211 } 212 }
OLDNEW
« no previous file with comments | « chrome_frame/metrics_service.cc ('k') | net/base/capturing_net_log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698