summaryrefslogtreecommitdiffstats
path: root/net/http/des_unittest.cc
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-17 21:30:11 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-17 21:30:11 +0000
commite355475f977e1535a4dedf68b30cbff623f6b862 (patch)
tree7af2f0f1cdc6a09e768d672b64049576a1ef7d6d /net/http/des_unittest.cc
parent24daedb7047f09fa806dde11bbf05e4763c9ccd9 (diff)
downloadchromium_src-e355475f977e1535a4dedf68b30cbff623f6b862.zip
chromium_src-e355475f977e1535a4dedf68b30cbff623f6b862.tar.gz
chromium_src-e355475f977e1535a4dedf68b30cbff623f6b862.tar.bz2
Make string literal initialization more idiomatic.
No intended behavior change. BUG=none TEST=none Review URL: http://codereview.chromium.org/10095001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132656 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/des_unittest.cc')
-rw-r--r--net/http/des_unittest.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/http/des_unittest.cc b/net/http/des_unittest.cc
index 0aefd42..a615a08 100644
--- a/net/http/des_unittest.cc
+++ b/net/http/des_unittest.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -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[] = {