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

Unified Diff: net/http/http_mac_signature_unittest.cc

Issue 8418034: Make string_util::WriteInto() DCHECK() that the supplied |length_with_null| > 1, meaning that the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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/http/http_mac_signature_unittest.cc
===================================================================
--- net/http/http_mac_signature_unittest.cc (revision 107404)
+++ net/http/http_mac_signature_unittest.cc (working copy)
@@ -59,7 +59,7 @@
EXPECT_TRUE(signature.GenerateHeaderString(age, nonce, &header_string));
EXPECT_EQ("MAC id=\"dfoi30j0qnf\", "
"nonce=\"239034:mn4302j0n+32r2/f3r=\", "
- "mac=\"GrkHtPKzB1m1dCHfa7OCWOw6EQ==\"",
+ "mac=\"GrkHtPKzB1m1dCHfa7OCWOw6Ecw=\"",
header_string);
}
@@ -104,6 +104,6 @@
std::string mac;
EXPECT_TRUE(signature.GenerateMAC(age, nonce, &mac));
- EXPECT_EQ("GrkHtPKzB1m1dCHfa7OCWOw6EQ==", mac);
+ EXPECT_EQ("GrkHtPKzB1m1dCHfa7OCWOw6Ecw=", mac);
}
}

Powered by Google App Engine
This is Rietveld 408576698