| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/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 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 594 NULL, | 594 NULL, |
| 595 NULL, | 595 NULL, |
| 596 NULL, | 596 NULL, |
| 597 NULL, | 597 NULL, |
| 598 std::string(), | 598 std::string(), |
| 599 NULL, | 599 NULL, |
| 600 NULL, | 600 NULL, |
| 601 NULL, | 601 NULL, |
| 602 NULL, | 602 NULL, |
| 603 NULL, | 603 NULL, |
| 604 false, | |
| 605 NULL) { | 604 NULL) { |
| 606 } | 605 } |
| 607 | 606 |
| 608 //----------------------------------------------------------------------------- | 607 //----------------------------------------------------------------------------- |
| 609 | 608 |
| 610 // Helper functions for validating that AuthChallengeInfo's are correctly | 609 // Helper functions for validating that AuthChallengeInfo's are correctly |
| 611 // configured for common cases. | 610 // configured for common cases. |
| 612 bool CheckBasicServerAuth(const AuthChallengeInfo* auth_challenge) { | 611 bool CheckBasicServerAuth(const AuthChallengeInfo* auth_challenge) { |
| 613 if (!auth_challenge) | 612 if (!auth_challenge) |
| 614 return false; | 613 return false; |
| (...skipping 13167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13782 ASSERT_TRUE(response); | 13781 ASSERT_TRUE(response); |
| 13783 ASSERT_TRUE(response->headers.get()); | 13782 ASSERT_TRUE(response->headers.get()); |
| 13784 | 13783 |
| 13785 EXPECT_EQ(101, response->headers->response_code()); | 13784 EXPECT_EQ(101, response->headers->response_code()); |
| 13786 | 13785 |
| 13787 trans.reset(); | 13786 trans.reset(); |
| 13788 session->CloseAllConnections(); | 13787 session->CloseAllConnections(); |
| 13789 } | 13788 } |
| 13790 | 13789 |
| 13791 } // namespace net | 13790 } // namespace net |
| OLD | NEW |