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

Side by Side Diff: net/quic/crypto/aes_128_gcm_12_decrypter_test.cc

Issue 763833003: Remove using namespace in net/quic/quic_stream_sequencer.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix missing part device_cloud_policy_manager_chromeos_unittest.cc Created 6 years 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/quic/crypto/aes_128_gcm_12_decrypter.h" 5 #include "net/quic/crypto/aes_128_gcm_12_decrypter.h"
6 6
7 #include "net/quic/test_tools/quic_test_utils.h" 7 #include "net/quic/test_tools/quic_test_utils.h"
8 8
9 using base::StringPiece; 9 using base::StringPiece;
10 using std::string;
10 11
11 namespace { 12 namespace {
12 13
13 // The AES GCM test vectors come from the file gcmDecrypt128.rsp 14 // The AES GCM test vectors come from the file gcmDecrypt128.rsp
14 // downloaded from http://csrc.nist.gov/groups/STM/cavp/index.html on 15 // downloaded from http://csrc.nist.gov/groups/STM/cavp/index.html on
15 // 2013-02-01. The test vectors in that file look like this: 16 // 2013-02-01. The test vectors in that file look like this:
16 // 17 //
17 // [Keylen = 128] 18 // [Keylen = 128]
18 // [IVlen = 96] 19 // [IVlen = 96]
19 // [PTlen = 0] 20 // [PTlen = 0]
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 328
328 ASSERT_EQ(pt.length(), decrypted->length()); 329 ASSERT_EQ(pt.length(), decrypted->length());
329 test::CompareCharArraysWithHexError("plaintext", decrypted->data(), 330 test::CompareCharArraysWithHexError("plaintext", decrypted->data(),
330 pt.length(), pt.data(), pt.length()); 331 pt.length(), pt.data(), pt.length());
331 } 332 }
332 } 333 }
333 } 334 }
334 335
335 } // namespace test 336 } // namespace test
336 } // namespace net 337 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/congestion_control/send_algorithm_simulator.cc ('k') | net/quic/crypto/aes_128_gcm_12_encrypter_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698