OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/url_request/url_request_http_job.h" | 5 #include "net/url_request/url_request_http_job.h" |
6 | 6 |
7 #include <cstddef> | 7 #include <cstddef> |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 void GetSSLInfo(SSLInfo* ssl_info) override {} | 297 void GetSSLInfo(SSLInfo* ssl_info) override {} |
298 | 298 |
299 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override {} | 299 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override {} |
300 | 300 |
301 bool IsSpdyHttpStream() const override { return false; } | 301 bool IsSpdyHttpStream() const override { return false; } |
302 | 302 |
303 void Drain(HttpNetworkSession* session) override {} | 303 void Drain(HttpNetworkSession* session) override {} |
304 | 304 |
305 void SetPriority(RequestPriority priority) override {} | 305 void SetPriority(RequestPriority priority) override {} |
306 | 306 |
| 307 UploadProgress GetUploadProgress() const override { |
| 308 return UploadProgress(); |
| 309 } |
| 310 |
| 311 HttpStream* RenewStreamForAuth() override { return nullptr; } |
| 312 |
307 // Fake implementation of WebSocketHandshakeStreamBase method(s) | 313 // Fake implementation of WebSocketHandshakeStreamBase method(s) |
308 scoped_ptr<WebSocketStream> Upgrade() override { | 314 scoped_ptr<WebSocketStream> Upgrade() override { |
309 return scoped_ptr<WebSocketStream>(); | 315 return scoped_ptr<WebSocketStream>(); |
310 } | 316 } |
311 | 317 |
312 private: | 318 private: |
313 bool initialize_stream_was_called_; | 319 bool initialize_stream_was_called_; |
314 }; | 320 }; |
315 | 321 |
316 TEST_F(URLRequestHttpJobWebSocketTest, RejectedWithoutCreateHelper) { | 322 TEST_F(URLRequestHttpJobWebSocketTest, RejectedWithoutCreateHelper) { |
(...skipping 21 matching lines...) Expand all Loading... |
338 req_->SetLoadFlags(LOAD_DISABLE_CACHE); | 344 req_->SetLoadFlags(LOAD_DISABLE_CACHE); |
339 job->Start(); | 345 job->Start(); |
340 base::RunLoop().RunUntilIdle(); | 346 base::RunLoop().RunUntilIdle(); |
341 EXPECT_EQ(URLRequestStatus::IO_PENDING, req_->status().status()); | 347 EXPECT_EQ(URLRequestStatus::IO_PENDING, req_->status().status()); |
342 EXPECT_TRUE(fake_handshake_stream->initialize_stream_was_called()); | 348 EXPECT_TRUE(fake_handshake_stream->initialize_stream_was_called()); |
343 } | 349 } |
344 | 350 |
345 } // namespace | 351 } // namespace |
346 | 352 |
347 } // namespace net | 353 } // namespace net |
OLD | NEW |