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

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

Issue 173853014: Make OpenSSL UpdateServerCert() OS independent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved FreeX509Stack back inside class using friend to please gcc-4.6 Created 6 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
« no previous file with comments | « net/socket/socket_test_util.h ('k') | net/socket/ssl_client_socket.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 759 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 return NULL; 770 return NULL;
771 } 771 }
772 772
773 SSLClientSocket::NextProtoStatus 773 SSLClientSocket::NextProtoStatus
774 MockClientSocket::GetNextProto(std::string* proto, std::string* server_protos) { 774 MockClientSocket::GetNextProto(std::string* proto, std::string* server_protos) {
775 proto->clear(); 775 proto->clear();
776 server_protos->clear(); 776 server_protos->clear();
777 return SSLClientSocket::kNextProtoUnsupported; 777 return SSLClientSocket::kNextProtoUnsupported;
778 } 778 }
779 779
780 scoped_refptr<X509Certificate>
781 MockClientSocket::GetUnverifiedServerCertificateChain() const {
782 NOTREACHED();
783 return NULL;
784 }
785
780 MockClientSocket::~MockClientSocket() {} 786 MockClientSocket::~MockClientSocket() {}
781 787
782 void MockClientSocket::RunCallbackAsync(const CompletionCallback& callback, 788 void MockClientSocket::RunCallbackAsync(const CompletionCallback& callback,
783 int result) { 789 int result) {
784 base::MessageLoop::current()->PostTask( 790 base::MessageLoop::current()->PostTask(
785 FROM_HERE, 791 FROM_HERE,
786 base::Bind(&MockClientSocket::RunCallback, 792 base::Bind(&MockClientSocket::RunCallback,
787 weak_factory_.GetWeakPtr(), 793 weak_factory_.GetWeakPtr(),
788 callback, 794 callback,
789 result)); 795 result));
(...skipping 1098 matching lines...) Expand 10 before | Expand all | Expand 10 after
1888 1894
1889 const char kSOCKS5OkRequest[] = 1895 const char kSOCKS5OkRequest[] =
1890 { 0x05, 0x01, 0x00, 0x03, 0x04, 'h', 'o', 's', 't', 0x00, 0x50 }; 1896 { 0x05, 0x01, 0x00, 0x03, 0x04, 'h', 'o', 's', 't', 0x00, 0x50 };
1891 const int kSOCKS5OkRequestLength = arraysize(kSOCKS5OkRequest); 1897 const int kSOCKS5OkRequestLength = arraysize(kSOCKS5OkRequest);
1892 1898
1893 const char kSOCKS5OkResponse[] = 1899 const char kSOCKS5OkResponse[] =
1894 { 0x05, 0x00, 0x00, 0x01, 127, 0, 0, 1, 0x00, 0x50 }; 1900 { 0x05, 0x00, 0x00, 0x01, 127, 0, 0, 1, 0x00, 0x50 };
1895 const int kSOCKS5OkResponseLength = arraysize(kSOCKS5OkResponse); 1901 const int kSOCKS5OkResponseLength = arraysize(kSOCKS5OkResponse);
1896 1902
1897 } // namespace net 1903 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/socket_test_util.h ('k') | net/socket/ssl_client_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698