| 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 "build/build_config.h" | 5 #include "build/build_config.h" |
| 6 | 6 |
| 7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 #include <shlobj.h> | 9 #include <shlobj.h> |
| 10 #endif | 10 #endif |
| (...skipping 8195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8206 | 8206 |
| 8207 base::RunLoop().Run(); | 8207 base::RunLoop().Run(); |
| 8208 | 8208 |
| 8209 EXPECT_EQ(1, d.on_certificate_requested_count()); | 8209 EXPECT_EQ(1, d.on_certificate_requested_count()); |
| 8210 EXPECT_FALSE(d.received_data_before_response()); | 8210 EXPECT_FALSE(d.received_data_before_response()); |
| 8211 EXPECT_EQ(0, d.bytes_received()); | 8211 EXPECT_EQ(0, d.bytes_received()); |
| 8212 | 8212 |
| 8213 // Send no certificate. | 8213 // Send no certificate. |
| 8214 // TODO(davidben): Get temporary client cert import (with keys) working on | 8214 // TODO(davidben): Get temporary client cert import (with keys) working on |
| 8215 // all platforms so we can test sending a cert as well. | 8215 // all platforms so we can test sending a cert as well. |
| 8216 r->ContinueWithCertificate(NULL); | 8216 r->ContinueWithCertificate(nullptr, nullptr); |
| 8217 | 8217 |
| 8218 base::RunLoop().Run(); | 8218 base::RunLoop().Run(); |
| 8219 | 8219 |
| 8220 EXPECT_EQ(1, d.response_started_count()); | 8220 EXPECT_EQ(1, d.response_started_count()); |
| 8221 EXPECT_FALSE(d.received_data_before_response()); | 8221 EXPECT_FALSE(d.received_data_before_response()); |
| 8222 EXPECT_NE(0, d.bytes_received()); | 8222 EXPECT_NE(0, d.bytes_received()); |
| 8223 } | 8223 } |
| 8224 } | 8224 } |
| 8225 | 8225 |
| 8226 TEST_F(HTTPSRequestTest, ResumeTest) { | 8226 TEST_F(HTTPSRequestTest, ResumeTest) { |
| (...skipping 1478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9705 | 9705 |
| 9706 req->Start(); | 9706 req->Start(); |
| 9707 req->Cancel(); | 9707 req->Cancel(); |
| 9708 job->DetachRequest(); | 9708 job->DetachRequest(); |
| 9709 base::RunLoop().RunUntilIdle(); | 9709 base::RunLoop().RunUntilIdle(); |
| 9710 EXPECT_EQ(URLRequestStatus::CANCELED, req->status().status()); | 9710 EXPECT_EQ(URLRequestStatus::CANCELED, req->status().status()); |
| 9711 EXPECT_EQ(0, d.received_redirect_count()); | 9711 EXPECT_EQ(0, d.received_redirect_count()); |
| 9712 } | 9712 } |
| 9713 | 9713 |
| 9714 } // namespace net | 9714 } // namespace net |
| OLD | NEW |