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

Unified Diff: net/socket/socket_test_util.cc

Issue 9959033: Move NextProto enum to a new file net/socket/next_proto.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Unwrap short lines. Created 8 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 side-by-side diff with in-line comments
Download patch
Index: net/socket/socket_test_util.cc
diff --git a/net/socket/socket_test_util.cc b/net/socket/socket_test_util.cc
index f5236abe4277dbf9ab6f1bfde6a80d92b7338144..21eed60551dcc21345f8eb5bbec2cc5e36666cec 100644
--- a/net/socket/socket_test_util.cc
+++ b/net/socket/socket_test_util.cc
@@ -239,7 +239,7 @@ SSLSocketDataProvider::SSLSocketDataProvider(IoMode mode, int result)
: connect(mode, result),
next_proto_status(SSLClientSocket::kNextProtoUnsupported),
was_npn_negotiated(false),
- protocol_negotiated(SSLClientSocket::kProtoUnknown),
+ protocol_negotiated(kProtoUnknown),
client_cert_sent(false),
cert_request_info(NULL),
domain_bound_cert_type(CLIENT_CERT_INVALID_TYPE) {
@@ -248,7 +248,7 @@ SSLSocketDataProvider::SSLSocketDataProvider(IoMode mode, int result)
SSLSocketDataProvider::~SSLSocketDataProvider() {
}
-void SSLSocketDataProvider::SetNextProto(SSLClientSocket::NextProto proto) {
+void SSLSocketDataProvider::SetNextProto(NextProto proto) {
was_npn_negotiated = true;
next_proto_status = SSLClientSocket::kNextProtoNegotiated;
protocol_negotiated = proto;
@@ -1069,7 +1069,7 @@ MockSSLClientSocket::MockSSLClientSocket(
is_npn_state_set_(false),
new_npn_value_(false),
is_protocol_negotiated_set_(false),
- protocol_negotiated_(SSLClientSocket::kProtoUnknown) {
+ protocol_negotiated_(kProtoUnknown) {
DCHECK(data_);
delete ssl_host_info; // we take ownership but don't use it.
}
@@ -1166,14 +1166,14 @@ bool MockSSLClientSocket::set_was_npn_negotiated(bool negotiated) {
return new_npn_value_ = negotiated;
}
-SSLClientSocket::NextProto MockSSLClientSocket::protocol_negotiated() const {
+NextProto MockSSLClientSocket::protocol_negotiated() const {
if (is_protocol_negotiated_set_)
return protocol_negotiated_;
return data_->protocol_negotiated;
}
void MockSSLClientSocket::set_protocol_negotiated(
- SSLClientSocket::NextProto protocol_negotiated) {
+ NextProto protocol_negotiated) {
is_protocol_negotiated_set_ = true;
protocol_negotiated_ = protocol_negotiated;
}

Powered by Google App Engine
This is Rietveld 408576698