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

Unified Diff: net/http/des_unittest.cc

Issue 10095001: Make string literal initialization more idiomatic. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/des_unittest.cc
diff --git a/net/http/des_unittest.cc b/net/http/des_unittest.cc
index 0aefd42b270e1a215a95d45cd7e018f645c386b4..4daf763f72db5572c3592e53432ce933ed2b7542 100644
--- a/net/http/des_unittest.cc
+++ b/net/http/des_unittest.cc
@@ -12,10 +12,10 @@ namespace net {
// This test vector comes from the NSS FIPS power-up self-test.
TEST(DESTest, KnownAnswerTest1) {
// DES known key (56-bits).
- static const uint8 des_known_key[] = { "ANSI DES" };
+ static const uint8 des_known_key[] = "ANSI DES";
// DES known plaintext (64-bits).
- static const uint8 des_ecb_known_plaintext[] = { "Netscape" };
+ static const uint8 des_ecb_known_plaintext[] = "Netscape";
// DES known ciphertext (64-bits).
static const uint8 des_ecb_known_ciphertext[] = {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698