Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(199)

Side by Side Diff: net/http/http_network_transaction_unittest.cc

Issue 981723008: Unwind the SSL connection holdback experiment and remove related code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Feedback Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
593 NULL, 593 NULL,
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 NULL) {}
604 NULL) {
605 }
606 604
607 //----------------------------------------------------------------------------- 605 //-----------------------------------------------------------------------------
608 606
609 // Helper functions for validating that AuthChallengeInfo's are correctly 607 // Helper functions for validating that AuthChallengeInfo's are correctly
610 // configured for common cases. 608 // configured for common cases.
611 bool CheckBasicServerAuth(const AuthChallengeInfo* auth_challenge) { 609 bool CheckBasicServerAuth(const AuthChallengeInfo* auth_challenge) {
612 if (!auth_challenge) 610 if (!auth_challenge)
613 return false; 611 return false;
614 EXPECT_FALSE(auth_challenge->is_proxy); 612 EXPECT_FALSE(auth_challenge->is_proxy);
615 EXPECT_EQ("www.google.com:80", auth_challenge->challenger.ToString()); 613 EXPECT_EQ("www.google.com:80", auth_challenge->challenger.ToString());
(...skipping 13163 matching lines...) Expand 10 before | Expand all | Expand 10 after
13779 ASSERT_TRUE(response); 13777 ASSERT_TRUE(response);
13780 ASSERT_TRUE(response->headers.get()); 13778 ASSERT_TRUE(response->headers.get());
13781 13779
13782 EXPECT_EQ(101, response->headers->response_code()); 13780 EXPECT_EQ(101, response->headers->response_code());
13783 13781
13784 trans.reset(); 13782 trans.reset();
13785 session->CloseAllConnections(); 13783 session->CloseAllConnections();
13786 } 13784 }
13787 13785
13788 } // namespace net 13786 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698