OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/signaling/xmpp_login_handler.h" | 5 #include "remoting/signaling/xmpp_login_handler.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/base64.h" | 9 #include "base/base64.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
11 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
12 #include "remoting/signaling/xmpp_stream_parser.h" | 12 #include "remoting/signaling/xmpp_stream_parser.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" | 14 #include "third_party/libjingle_xmpp/xmllite/xmlelement.h" |
15 | 15 |
16 #ifdef SendMessage | 16 #ifdef SendMessage |
17 #undef SendMessage | 17 #undef SendMessage |
18 #endif | 18 #endif |
19 | 19 |
20 #ifdef ERROR | 20 #ifdef ERROR |
21 #undef ERROR | 21 #undef ERROR |
22 #endif | 22 #endif |
23 | 23 |
24 namespace remoting { | 24 namespace remoting { |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 login_handler_.reset( | 257 login_handler_.reset( |
258 new XmppLoginHandler("google.com", kTestUsername, kTestToken, | 258 new XmppLoginHandler("google.com", kTestUsername, kTestToken, |
259 XmppLoginHandler::TlsMode::WITHOUT_HANDSHAKE, this)); | 259 XmppLoginHandler::TlsMode::WITHOUT_HANDSHAKE, this)); |
260 delete_login_handler_from_delegate_ = true; | 260 delete_login_handler_from_delegate_ = true; |
261 login_handler_->Start(); | 261 login_handler_->Start(); |
262 EXPECT_TRUE(start_tls_called_); | 262 EXPECT_TRUE(start_tls_called_); |
263 EXPECT_FALSE(login_handler_); | 263 EXPECT_FALSE(login_handler_); |
264 } | 264 } |
265 | 265 |
266 } // namespace remoting | 266 } // namespace remoting |
OLD | NEW |