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

Side by Side Diff: net/quic/test_tools/mock_crypto_client_stream.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/test_tools/mock_crypto_client_stream.h" 5 #include "net/quic/test_tools/mock_crypto_client_stream.h"
6 6
7 #include "net/quic/crypto/quic_decrypter.h" 7 #include "net/quic/core/crypto/quic_decrypter.h"
8 #include "net/quic/crypto/quic_encrypter.h" 8 #include "net/quic/core/crypto/quic_encrypter.h"
9 #include "net/quic/quic_client_session_base.h" 9 #include "net/quic/core/quic_client_session_base.h"
10 #include "net/quic/test_tools/quic_config_peer.h" 10 #include "net/quic/test_tools/quic_config_peer.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 12
13 using std::string; 13 using std::string;
14 14
15 namespace net { 15 namespace net {
16 16
17 MockCryptoClientStream::MockCryptoClientStream( 17 MockCryptoClientStream::MockCryptoClientStream(
18 const QuicServerId& server_id, 18 const QuicServerId& server_id,
19 QuicClientSessionBase* session, 19 QuicClientSessionBase* session,
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 config.ToHandshakeMessage(&msg); 132 config.ToHandshakeMessage(&msg);
133 string error_details; 133 string error_details;
134 const QuicErrorCode error = 134 const QuicErrorCode error =
135 session()->config()->ProcessPeerHello(msg, CLIENT, &error_details); 135 session()->config()->ProcessPeerHello(msg, CLIENT, &error_details);
136 ASSERT_EQ(QUIC_NO_ERROR, error); 136 ASSERT_EQ(QUIC_NO_ERROR, error);
137 ASSERT_TRUE(session()->config()->negotiated()); 137 ASSERT_TRUE(session()->config()->negotiated());
138 session()->OnConfigNegotiated(); 138 session()->OnConfigNegotiated();
139 } 139 }
140 140
141 } // namespace net 141 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/mock_crypto_client_stream.h ('k') | net/quic/test_tools/mock_crypto_client_stream_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698