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

Side by Side Diff: remoting/signaling/xmpp_login_handler_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
« no previous file with comments | « remoting/signaling/xmpp_login_handler.cc ('k') | remoting/signaling/xmpp_signal_strategy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « remoting/signaling/xmpp_login_handler.cc ('k') | remoting/signaling/xmpp_signal_strategy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698