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

Side by Side Diff: remoting/host/register_support_host_request_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/host/register_support_host_request.h" 5 #include "remoting/host/register_support_host_request.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/message_loop/message_loop.h" 11 #include "base/message_loop/message_loop.h"
12 #include "base/observer_list.h" 12 #include "base/observer_list.h"
13 #include "base/run_loop.h" 13 #include "base/run_loop.h"
14 #include "base/strings/string_number_conversions.h" 14 #include "base/strings/string_number_conversions.h"
15 #include "remoting/base/constants.h" 15 #include "remoting/base/constants.h"
16 #include "remoting/base/rsa_key_pair.h" 16 #include "remoting/base/rsa_key_pair.h"
17 #include "remoting/base/test_rsa_key_pair.h" 17 #include "remoting/base/test_rsa_key_pair.h"
18 #include "remoting/signaling/iq_sender.h" 18 #include "remoting/signaling/iq_sender.h"
19 #include "remoting/signaling/mock_signal_strategy.h" 19 #include "remoting/signaling/mock_signal_strategy.h"
20 #include "testing/gmock/include/gmock/gmock.h" 20 #include "testing/gmock/include/gmock/gmock.h"
21 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
22 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" 22 #include "third_party/libjingle_xmpp/xmllite/xmlelement.h"
23 #include "third_party/webrtc/libjingle/xmpp/constants.h" 23 #include "third_party/libjingle_xmpp/xmpp/constants.h"
24 24
25 using buzz::QName; 25 using buzz::QName;
26 using buzz::XmlElement; 26 using buzz::XmlElement;
27 27
28 using testing::_; 28 using testing::_;
29 using testing::Invoke; 29 using testing::Invoke;
30 using testing::NotNull; 30 using testing::NotNull;
31 using testing::Return; 31 using testing::Return;
32 using testing::SaveArg; 32 using testing::SaveArg;
33 33
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 for (auto& listener : signal_strategy_listeners_) { 156 for (auto& listener : signal_strategy_listeners_) {
157 if (listener.OnSignalStrategyIncomingStanza(response.get())) 157 if (listener.OnSignalStrategyIncomingStanza(response.get()))
158 consumed++; 158 consumed++;
159 } 159 }
160 EXPECT_EQ(1, consumed); 160 EXPECT_EQ(1, consumed);
161 161
162 base::RunLoop().RunUntilIdle(); 162 base::RunLoop().RunUntilIdle();
163 } 163 }
164 164
165 } // namespace remoting 165 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/register_support_host_request.cc ('k') | remoting/host/server_log_entry_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698