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

Side by Side Diff: net/http/http_network_transaction_spdy2_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
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 8066 matching lines...) Expand 10 before | Expand all | Expand 10 after
8077 8077
8078 virtual void CancelRequest(RequestHandle request) { 8078 virtual void CancelRequest(RequestHandle request) {
8079 NOTREACHED(); 8079 NOTREACHED();
8080 } 8080 }
8081 8081
8082 virtual LoadState GetLoadState(RequestHandle request) const OVERRIDE { 8082 virtual LoadState GetLoadState(RequestHandle request) const OVERRIDE {
8083 NOTREACHED(); 8083 NOTREACHED();
8084 return LOAD_STATE_IDLE; 8084 return LOAD_STATE_IDLE;
8085 } 8085 }
8086 8086
8087 virtual LoadState GetLoadStateThreadSafe(
8088 RequestHandle request) const OVERRIDE {
8089 NOTREACHED();
8090 return LOAD_STATE_IDLE;
8091 }
8092
8093 virtual void CancelSetPacScript() { 8087 virtual void CancelSetPacScript() {
8094 NOTREACHED(); 8088 NOTREACHED();
8095 } 8089 }
8096 8090
8097 virtual int SetPacScript(const scoped_refptr<ProxyResolverScriptData>&, 8091 virtual int SetPacScript(const scoped_refptr<ProxyResolverScriptData>&,
8098 const CompletionCallback& /*callback*/) { 8092 const CompletionCallback& /*callback*/) {
8099 return OK; 8093 return OK;
8100 } 8094 }
8101 8095
8102 const std::vector<GURL>& resolved() const { return resolved_; } 8096 const std::vector<GURL>& resolved() const { return resolved_; }
(...skipping 2635 matching lines...) Expand 10 before | Expand all | Expand 10 after
10738 trans2.Start(&request2, callback2.callback(), BoundNetLog())); 10732 trans2.Start(&request2, callback2.callback(), BoundNetLog()));
10739 MessageLoop::current()->RunUntilIdle(); 10733 MessageLoop::current()->RunUntilIdle();
10740 data2->RunFor(3); 10734 data2->RunFor(3);
10741 10735
10742 ASSERT_TRUE(callback2.have_result()); 10736 ASSERT_TRUE(callback2.have_result());
10743 EXPECT_EQ(OK, callback2.WaitForResult()); 10737 EXPECT_EQ(OK, callback2.WaitForResult());
10744 EXPECT_TRUE(trans2.GetResponseInfo()->was_fetched_via_spdy); 10738 EXPECT_TRUE(trans2.GetResponseInfo()->was_fetched_via_spdy);
10745 } 10739 }
10746 10740
10747 } // namespace net 10741 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698