| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 out.rv = callback.WaitForResult(); | 170 out.rv = callback.WaitForResult(); |
| 171 if (out.rv != OK) | 171 if (out.rv != OK) |
| 172 return out; | 172 return out; |
| 173 | 173 |
| 174 const HttpResponseInfo* response = trans->GetResponseInfo(); | 174 const HttpResponseInfo* response = trans->GetResponseInfo(); |
| 175 EXPECT_TRUE(response != NULL); | 175 EXPECT_TRUE(response != NULL); |
| 176 | 176 |
| 177 EXPECT_TRUE(response->headers != NULL); | 177 EXPECT_TRUE(response->headers != NULL); |
| 178 out.status_line = response->headers->GetStatusLine(); | 178 out.status_line = response->headers->GetStatusLine(); |
| 179 | 179 |
| 180 EXPECT_EQ("192.0.2.33:0", response->socket_address); |
| 181 |
| 180 rv = ReadTransaction(trans.get(), &out.response_data); | 182 rv = ReadTransaction(trans.get(), &out.response_data); |
| 181 EXPECT_EQ(OK, rv); | 183 EXPECT_EQ(OK, rv); |
| 182 | 184 |
| 183 net::CapturingNetLog::EntryList entries; | 185 net::CapturingNetLog::EntryList entries; |
| 184 log.GetEntries(&entries); | 186 log.GetEntries(&entries); |
| 185 size_t pos = ExpectLogContainsSomewhere( | 187 size_t pos = ExpectLogContainsSomewhere( |
| 186 entries, 0, NetLog::TYPE_HTTP_TRANSACTION_SEND_REQUEST_HEADERS, | 188 entries, 0, NetLog::TYPE_HTTP_TRANSACTION_SEND_REQUEST_HEADERS, |
| 187 NetLog::PHASE_NONE); | 189 NetLog::PHASE_NONE); |
| 188 ExpectLogContainsSomewhere( | 190 ExpectLogContainsSomewhere( |
| 189 entries, pos, | 191 entries, pos, |
| (...skipping 8311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8501 // Now that the new handshake has failed, ensure that the client | 8503 // Now that the new handshake has failed, ensure that the client |
| 8502 // certificate was removed from the client auth cache. | 8504 // certificate was removed from the client auth cache. |
| 8503 ASSERT_FALSE(session->ssl_client_auth_cache()->Lookup("proxy:70", | 8505 ASSERT_FALSE(session->ssl_client_auth_cache()->Lookup("proxy:70", |
| 8504 &client_cert)); | 8506 &client_cert)); |
| 8505 ASSERT_FALSE(session->ssl_client_auth_cache()->Lookup("www.example.com:443", | 8507 ASSERT_FALSE(session->ssl_client_auth_cache()->Lookup("www.example.com:443", |
| 8506 &client_cert)); | 8508 &client_cert)); |
| 8507 } | 8509 } |
| 8508 } | 8510 } |
| 8509 | 8511 |
| 8510 } // namespace net | 8512 } // namespace net |
| OLD | NEW |