OLD | NEW |
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 7537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7548 | 7548 |
7549 virtual void CancelRequest(RequestHandle request) { | 7549 virtual void CancelRequest(RequestHandle request) { |
7550 NOTREACHED(); | 7550 NOTREACHED(); |
7551 } | 7551 } |
7552 | 7552 |
7553 virtual LoadState GetLoadState(RequestHandle request) const OVERRIDE { | 7553 virtual LoadState GetLoadState(RequestHandle request) const OVERRIDE { |
7554 NOTREACHED(); | 7554 NOTREACHED(); |
7555 return LOAD_STATE_IDLE; | 7555 return LOAD_STATE_IDLE; |
7556 } | 7556 } |
7557 | 7557 |
7558 virtual LoadState GetLoadStateThreadSafe( | |
7559 RequestHandle request) const OVERRIDE { | |
7560 NOTREACHED(); | |
7561 return LOAD_STATE_IDLE; | |
7562 } | |
7563 | |
7564 virtual void CancelSetPacScript() { | 7558 virtual void CancelSetPacScript() { |
7565 NOTREACHED(); | 7559 NOTREACHED(); |
7566 } | 7560 } |
7567 | 7561 |
7568 virtual int SetPacScript(const scoped_refptr<ProxyResolverScriptData>&, | 7562 virtual int SetPacScript(const scoped_refptr<ProxyResolverScriptData>&, |
7569 const CompletionCallback& /*callback*/) { | 7563 const CompletionCallback& /*callback*/) { |
7570 return OK; | 7564 return OK; |
7571 } | 7565 } |
7572 | 7566 |
7573 const std::vector<GURL>& resolved() const { return resolved_; } | 7567 const std::vector<GURL>& resolved() const { return resolved_; } |
(...skipping 2608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10182 trans2.Start(&request2, callback2.callback(), BoundNetLog())); | 10176 trans2.Start(&request2, callback2.callback(), BoundNetLog())); |
10183 MessageLoop::current()->RunUntilIdle(); | 10177 MessageLoop::current()->RunUntilIdle(); |
10184 data2->RunFor(3); | 10178 data2->RunFor(3); |
10185 | 10179 |
10186 ASSERT_TRUE(callback2.have_result()); | 10180 ASSERT_TRUE(callback2.have_result()); |
10187 EXPECT_EQ(OK, callback2.WaitForResult()); | 10181 EXPECT_EQ(OK, callback2.WaitForResult()); |
10188 EXPECT_TRUE(trans2.GetResponseInfo()->was_fetched_via_spdy); | 10182 EXPECT_TRUE(trans2.GetResponseInfo()->was_fetched_via_spdy); |
10189 } | 10183 } |
10190 | 10184 |
10191 } // namespace net | 10185 } // namespace net |
OLD | NEW |