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

Unified Diff: net/socket/socket_test_util.cc

Issue 1127623005: Gather metrics classifying the cause of the TLS fallback. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fallback-required
Patch Set: rebase Created 5 years, 7 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 cf033c245c3e86c8b5c427c2dc061e49172b7a3a..8a26531aa76f9c9039a202ee8ebb554bbfd07b92 100644
--- a/net/socket/socket_test_util.cc
+++ b/net/socket/socket_test_util.cc
@@ -26,6 +26,7 @@
#include "net/socket/websocket_endpoint_lock_manager.h"
#include "net/ssl/ssl_cert_request_info.h"
#include "net/ssl/ssl_connection_status_flags.h"
+#include "net/ssl/ssl_failure_state.h"
#include "net/ssl/ssl_info.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -1029,6 +1030,10 @@ ChannelIDService* MockClientSocket::GetChannelIDService() const {
return NULL;
}
+SSLFailureState MockClientSocket::GetSSLFailureState() const {
+ return IsConnected() ? kSSLFailureNone : kSSLFailureUnknown;
+}
+
SSLClientSocket::NextProtoStatus MockClientSocket::GetNextProto(
std::string* proto) const {
proto->clear();

Powered by Google App Engine
This is Rietveld 408576698