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

Side by Side Diff: net/http/http_network_transaction_spdy3_unittest.cc

Issue 11885009: Improve performance of proxy resolver by tracing DNS dependencies. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: re-upload due to failure last time Created 7 years, 10 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
« no previous file with comments | « net/http/http_network_transaction_spdy2_unittest.cc ('k') | net/net.gyp » ('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) 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 "net/http/http_network_transaction.h" 5 #include "net/http/http_network_transaction.h"
6 6
7 #include <math.h> // ceil 7 #include <math.h> // ceil
8 #include <stdarg.h> 8 #include <stdarg.h>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 8065 matching lines...) Expand 10 before | Expand all | Expand 10 after
8076 8076
8077 virtual void CancelRequest(RequestHandle request) { 8077 virtual void CancelRequest(RequestHandle request) {
8078 NOTREACHED(); 8078 NOTREACHED();
8079 } 8079 }
8080 8080
8081 virtual LoadState GetLoadState(RequestHandle request) const OVERRIDE { 8081 virtual LoadState GetLoadState(RequestHandle request) const OVERRIDE {
8082 NOTREACHED(); 8082 NOTREACHED();
8083 return LOAD_STATE_IDLE; 8083 return LOAD_STATE_IDLE;
8084 } 8084 }
8085 8085
8086 virtual LoadState GetLoadStateThreadSafe(
8087 RequestHandle request) const OVERRIDE {
8088 NOTREACHED();
8089 return LOAD_STATE_IDLE;
8090 }
8091
8092 virtual void CancelSetPacScript() { 8086 virtual void CancelSetPacScript() {
8093 NOTREACHED(); 8087 NOTREACHED();
8094 } 8088 }
8095 8089
8096 virtual int SetPacScript(const scoped_refptr<ProxyResolverScriptData>&, 8090 virtual int SetPacScript(const scoped_refptr<ProxyResolverScriptData>&,
8097 const CompletionCallback& /*callback*/) { 8091 const CompletionCallback& /*callback*/) {
8098 return OK; 8092 return OK;
8099 } 8093 }
8100 8094
8101 const std::vector<GURL>& resolved() const { return resolved_; } 8095 const std::vector<GURL>& resolved() const { return resolved_; }
(...skipping 2599 matching lines...) Expand 10 before | Expand all | Expand 10 after
10701 trans2.Start(&request2, callback2.callback(), BoundNetLog())); 10695 trans2.Start(&request2, callback2.callback(), BoundNetLog()));
10702 MessageLoop::current()->RunUntilIdle(); 10696 MessageLoop::current()->RunUntilIdle();
10703 data2->RunFor(3); 10697 data2->RunFor(3);
10704 10698
10705 ASSERT_TRUE(callback2.have_result()); 10699 ASSERT_TRUE(callback2.have_result());
10706 EXPECT_EQ(OK, callback2.WaitForResult()); 10700 EXPECT_EQ(OK, callback2.WaitForResult());
10707 EXPECT_TRUE(trans2.GetResponseInfo()->was_fetched_via_spdy); 10701 EXPECT_TRUE(trans2.GetResponseInfo()->was_fetched_via_spdy);
10708 } 10702 }
10709 10703
10710 } // namespace net 10704 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_network_transaction_spdy2_unittest.cc ('k') | net/net.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698