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

Unified Diff: net/socket/ssl_client_socket_unittest.cc

Issue 1573243011: Refactor der::Input helper methods into new constructors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix nits Created 4 years, 11 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
« no previous file with comments | « net/der/input.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/ssl_client_socket_unittest.cc
diff --git a/net/socket/ssl_client_socket_unittest.cc b/net/socket/ssl_client_socket_unittest.cc
index bf1cc37b02e85fe52c984dd5d1dd36d7ba9eaf1f..58b12fa13a01c5c3c48776e68bbc2c8198935626 100644
--- a/net/socket/ssl_client_socket_unittest.cc
+++ b/net/socket/ssl_client_socket_unittest.cc
@@ -2383,8 +2383,7 @@ TEST_F(SSLClientSocketTest, EVCertStatusRemovedForNonCompliantCert) {
namespace {
bool IsValidOCSPResponse(const base::StringPiece& input) {
- der::Parser parser(der::Input(reinterpret_cast<const uint8_t*>(input.data()),
- input.length()));
+ der::Parser parser((der::Input(input)));
der::Parser sequence;
return parser.ReadSequence(&sequence) && !parser.HasMore() &&
sequence.SkipTag(der::kEnumerated) &&
« no previous file with comments | « net/der/input.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698