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

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

Issue 356713005: Rename ServerBoundCert => ChannelID to reflect the current name (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix cookies_list.js Created 6 years, 4 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 | Annotate | Revision Log
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 758 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 unsigned int outlen) { 769 unsigned int outlen) {
770 memset(out, 'A', outlen); 770 memset(out, 'A', outlen);
771 return OK; 771 return OK;
772 } 772 }
773 773
774 int MockClientSocket::GetTLSUniqueChannelBinding(std::string* out) { 774 int MockClientSocket::GetTLSUniqueChannelBinding(std::string* out) {
775 out->assign(MockClientSocket::kTlsUnique); 775 out->assign(MockClientSocket::kTlsUnique);
776 return OK; 776 return OK;
777 } 777 }
778 778
779 ServerBoundCertService* MockClientSocket::GetServerBoundCertService() const { 779 ChannelIDService* MockClientSocket::GetChannelIDService() const {
780 NOTREACHED(); 780 NOTREACHED();
781 return NULL; 781 return NULL;
782 } 782 }
783 783
784 SSLClientSocket::NextProtoStatus 784 SSLClientSocket::NextProtoStatus
785 MockClientSocket::GetNextProto(std::string* proto, std::string* server_protos) { 785 MockClientSocket::GetNextProto(std::string* proto, std::string* server_protos) {
786 proto->clear(); 786 proto->clear();
787 server_protos->clear(); 787 server_protos->clear();
788 return SSLClientSocket::kNextProtoUnsupported; 788 return SSLClientSocket::kNextProtoUnsupported;
789 } 789 }
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after
1430 } 1430 }
1431 1431
1432 bool MockSSLClientSocket::WasChannelIDSent() const { 1432 bool MockSSLClientSocket::WasChannelIDSent() const {
1433 return data_->channel_id_sent; 1433 return data_->channel_id_sent;
1434 } 1434 }
1435 1435
1436 void MockSSLClientSocket::set_channel_id_sent(bool channel_id_sent) { 1436 void MockSSLClientSocket::set_channel_id_sent(bool channel_id_sent) {
1437 data_->channel_id_sent = channel_id_sent; 1437 data_->channel_id_sent = channel_id_sent;
1438 } 1438 }
1439 1439
1440 ServerBoundCertService* MockSSLClientSocket::GetServerBoundCertService() const { 1440 ChannelIDService* MockSSLClientSocket::GetChannelIDService() const {
1441 return data_->server_bound_cert_service; 1441 return data_->channel_id_service;
1442 } 1442 }
1443 1443
1444 void MockSSLClientSocket::OnReadComplete(const MockRead& data) { 1444 void MockSSLClientSocket::OnReadComplete(const MockRead& data) {
1445 NOTIMPLEMENTED(); 1445 NOTIMPLEMENTED();
1446 } 1446 }
1447 1447
1448 void MockSSLClientSocket::OnConnectComplete(const MockConnect& data) { 1448 void MockSSLClientSocket::OnConnectComplete(const MockConnect& data) {
1449 NOTIMPLEMENTED(); 1449 NOTIMPLEMENTED();
1450 } 1450 }
1451 1451
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
1906 1906
1907 const char kSOCKS5OkRequest[] = 1907 const char kSOCKS5OkRequest[] =
1908 { 0x05, 0x01, 0x00, 0x03, 0x04, 'h', 'o', 's', 't', 0x00, 0x50 }; 1908 { 0x05, 0x01, 0x00, 0x03, 0x04, 'h', 'o', 's', 't', 0x00, 0x50 };
1909 const int kSOCKS5OkRequestLength = arraysize(kSOCKS5OkRequest); 1909 const int kSOCKS5OkRequestLength = arraysize(kSOCKS5OkRequest);
1910 1910
1911 const char kSOCKS5OkResponse[] = 1911 const char kSOCKS5OkResponse[] =
1912 { 0x05, 0x00, 0x00, 0x01, 127, 0, 0, 1, 0x00, 0x50 }; 1912 { 0x05, 0x00, 0x00, 0x01, 127, 0, 0, 1, 0x00, 0x50 };
1913 const int kSOCKS5OkResponseLength = arraysize(kSOCKS5OkResponse); 1913 const int kSOCKS5OkResponseLength = arraysize(kSOCKS5OkResponse);
1914 1914
1915 } // namespace net 1915 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698