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 std::string(), | 597 std::string(), |
598 NULL, | 598 NULL, |
599 NULL, | 599 NULL, |
600 NULL, | 600 NULL, |
601 NULL, | 601 NULL, |
602 NULL, | 602 NULL, |
603 false, | 603 false, |
| 604 NULL, |
604 NULL) { | 605 NULL) { |
605 } | 606 } |
606 | 607 |
607 //----------------------------------------------------------------------------- | 608 //----------------------------------------------------------------------------- |
608 | 609 |
609 // Helper functions for validating that AuthChallengeInfo's are correctly | 610 // Helper functions for validating that AuthChallengeInfo's are correctly |
610 // configured for common cases. | 611 // configured for common cases. |
611 bool CheckBasicServerAuth(const AuthChallengeInfo* auth_challenge) { | 612 bool CheckBasicServerAuth(const AuthChallengeInfo* auth_challenge) { |
612 if (!auth_challenge) | 613 if (!auth_challenge) |
613 return false; | 614 return false; |
(...skipping 12942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13556 ASSERT_TRUE(response); | 13557 ASSERT_TRUE(response); |
13557 ASSERT_TRUE(response->headers.get()); | 13558 ASSERT_TRUE(response->headers.get()); |
13558 | 13559 |
13559 EXPECT_EQ(101, response->headers->response_code()); | 13560 EXPECT_EQ(101, response->headers->response_code()); |
13560 | 13561 |
13561 trans.reset(); | 13562 trans.reset(); |
13562 session->CloseAllConnections(); | 13563 session->CloseAllConnections(); |
13563 } | 13564 } |
13564 | 13565 |
13565 } // namespace net | 13566 } // namespace net |
OLD | NEW |