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

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

Issue 869393005: Perform ClientHello padding if the field trial is enabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@net_connection_error_uma
Patch Set: Created 5 years, 10 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 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698