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

Side by Side Diff: remoting/protocol/ssl_hmac_channel_authenticator_unittest.cc

Issue 2443903004: Add xmllite and xmpp sources to third_party/ (Closed)
Patch Set: Explicitly use webrtc_overrides/webrtc/base/logging.h Created 3 years, 11 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "remoting/protocol/ssl_hmac_channel_authenticator.h" 5 #include "remoting/protocol/ssl_hmac_channel_authenticator.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/files/file_util.h" 12 #include "base/files/file_util.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/message_loop/message_loop.h" 14 #include "base/message_loop/message_loop.h"
15 #include "base/run_loop.h" 15 #include "base/run_loop.h"
16 #include "base/test/test_timeouts.h" 16 #include "base/test/test_timeouts.h"
17 #include "base/timer/timer.h" 17 #include "base/timer/timer.h"
18 #include "crypto/rsa_private_key.h" 18 #include "crypto/rsa_private_key.h"
19 #include "net/base/net_errors.h" 19 #include "net/base/net_errors.h"
20 #include "net/test/cert_test_util.h" 20 #include "net/test/cert_test_util.h"
21 #include "net/test/test_data_directory.h" 21 #include "net/test/test_data_directory.h"
22 #include "remoting/base/rsa_key_pair.h" 22 #include "remoting/base/rsa_key_pair.h"
23 #include "remoting/protocol/connection_tester.h" 23 #include "remoting/protocol/connection_tester.h"
24 #include "remoting/protocol/fake_session.h" 24 #include "remoting/protocol/fake_session.h"
25 #include "remoting/protocol/p2p_stream_socket.h" 25 #include "remoting/protocol/p2p_stream_socket.h"
26 #include "testing/gmock/include/gmock/gmock.h" 26 #include "testing/gmock/include/gmock/gmock.h"
27 #include "testing/gtest/include/gtest/gtest.h" 27 #include "testing/gtest/include/gtest/gtest.h"
28 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" 28 #include "third_party/libjingle_xmpp/xmllite/xmlelement.h"
29 29
30 using testing::_; 30 using testing::_;
31 using testing::NotNull; 31 using testing::NotNull;
32 using testing::SaveArg; 32 using testing::SaveArg;
33 33
34 namespace remoting { 34 namespace remoting {
35 namespace protocol { 35 namespace protocol {
36 36
37 namespace { 37 namespace {
38 38
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 host_auth_ = SslHmacChannelAuthenticator::CreateForHost( 197 host_auth_ = SslHmacChannelAuthenticator::CreateForHost(
198 host_cert_, key_pair_, kTestSharedSecret); 198 host_cert_, key_pair_, kTestSharedSecret);
199 199
200 RunChannelAuth(net::ERR_CERT_INVALID, net::ERR_CONNECTION_CLOSED); 200 RunChannelAuth(net::ERR_CERT_INVALID, net::ERR_CONNECTION_CLOSED);
201 201
202 ASSERT_TRUE(host_socket_.get() == nullptr); 202 ASSERT_TRUE(host_socket_.get() == nullptr);
203 } 203 }
204 204
205 } // namespace protocol 205 } // namespace protocol
206 } // namespace remoting 206 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/spake2_authenticator_unittest.cc ('k') | remoting/protocol/third_party_authenticator_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698