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

Side by Side Diff: net/socket/socket_test_util.cc

Issue 949633002: Include both certificate chains in invalid cert reporting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add a comment to cert logger pb 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/socket/socket_test_util.h" 5 #include "net/socket/socket_test_util.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after
807 NOTREACHED(); 807 NOTREACHED();
808 return NULL; 808 return NULL;
809 } 809 }
810 810
811 SSLClientSocket::NextProtoStatus 811 SSLClientSocket::NextProtoStatus
812 MockClientSocket::GetNextProto(std::string* proto) { 812 MockClientSocket::GetNextProto(std::string* proto) {
813 proto->clear(); 813 proto->clear();
814 return SSLClientSocket::kNextProtoUnsupported; 814 return SSLClientSocket::kNextProtoUnsupported;
815 } 815 }
816 816
817 scoped_refptr<X509Certificate>
818 MockClientSocket::GetUnverifiedServerCertificateChain() const {
819 NOTREACHED();
820 return NULL;
821 }
822
823 MockClientSocket::~MockClientSocket() {} 817 MockClientSocket::~MockClientSocket() {}
824 818
825 void MockClientSocket::RunCallbackAsync(const CompletionCallback& callback, 819 void MockClientSocket::RunCallbackAsync(const CompletionCallback& callback,
826 int result) { 820 int result) {
827 base::MessageLoop::current()->PostTask( 821 base::MessageLoop::current()->PostTask(
828 FROM_HERE, 822 FROM_HERE,
829 base::Bind(&MockClientSocket::RunCallback, 823 base::Bind(&MockClientSocket::RunCallback,
830 weak_factory_.GetWeakPtr(), 824 weak_factory_.GetWeakPtr(),
831 callback, 825 callback,
832 result)); 826 result));
(...skipping 1180 matching lines...) Expand 10 before | Expand all | Expand 10 after
2013 2007
2014 const char kSOCKS5OkRequest[] = 2008 const char kSOCKS5OkRequest[] =
2015 { 0x05, 0x01, 0x00, 0x03, 0x04, 'h', 'o', 's', 't', 0x00, 0x50 }; 2009 { 0x05, 0x01, 0x00, 0x03, 0x04, 'h', 'o', 's', 't', 0x00, 0x50 };
2016 const int kSOCKS5OkRequestLength = arraysize(kSOCKS5OkRequest); 2010 const int kSOCKS5OkRequestLength = arraysize(kSOCKS5OkRequest);
2017 2011
2018 const char kSOCKS5OkResponse[] = 2012 const char kSOCKS5OkResponse[] =
2019 { 0x05, 0x00, 0x00, 0x01, 127, 0, 0, 1, 0x00, 0x50 }; 2013 { 0x05, 0x00, 0x00, 0x01, 127, 0, 0, 1, 0x00, 0x50 };
2020 const int kSOCKS5OkResponseLength = arraysize(kSOCKS5OkResponse); 2014 const int kSOCKS5OkResponseLength = arraysize(kSOCKS5OkResponse);
2021 2015
2022 } // namespace net 2016 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698