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

Side by Side Diff: net/quic/core/crypto/crypto_secret_boxer_test.cc

Issue 2193073003: Move shared files in net/quic/ into net/quic/core/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: io_thread_unittest.cc Created 4 years, 4 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 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/crypto_secret_boxer.h" 5 #include "net/quic/core/crypto/crypto_secret_boxer.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "net/quic/crypto/quic_random.h" 9 #include "net/quic/core/crypto/quic_random.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 using base::StringPiece; 12 using base::StringPiece;
13 using std::string; 13 using std::string;
14 14
15 namespace net { 15 namespace net {
16 namespace test { 16 namespace test {
17 17
18 TEST(CryptoSecretBoxerTest, BoxAndUnbox) { 18 TEST(CryptoSecretBoxerTest, BoxAndUnbox) {
19 StringPiece message("hello world"); 19 StringPiece message("hello world");
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 EXPECT_TRUE(CanDecode(boxer, boxer_12)); 72 EXPECT_TRUE(CanDecode(boxer, boxer_12));
73 73
74 // After we flush key_11 from |boxer|, it can no longer decode tokens from 74 // After we flush key_11 from |boxer|, it can no longer decode tokens from
75 // |boxer_11|. 75 // |boxer_11|.
76 boxer.SetKeys({key_12}); 76 boxer.SetKeys({key_12});
77 EXPECT_FALSE(CanDecode(boxer, boxer_11)); 77 EXPECT_FALSE(CanDecode(boxer, boxer_11));
78 } 78 }
79 79
80 } // namespace test 80 } // namespace test
81 } // namespace net 81 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/crypto/crypto_secret_boxer.cc ('k') | net/quic/core/crypto/crypto_server_config_protobuf.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698