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

Side by Side Diff: remoting/host/server_log_entry_host_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/host/register_support_host_request_unittest.cc ('k') | remoting/protocol/BUILD.gn » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/server_log_entry_host.h" 5 #include "remoting/host/server_log_entry_host.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/strings/stringize_macros.h" 9 #include "base/strings/stringize_macros.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
11 #include "remoting/signaling/server_log_entry.h" 11 #include "remoting/signaling/server_log_entry.h"
12 #include "remoting/signaling/server_log_entry_unittest.h" 12 #include "remoting/signaling/server_log_entry_unittest.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 using buzz::XmlAttr; 16 using buzz::XmlAttr;
17 using buzz::XmlElement; 17 using buzz::XmlElement;
18 18
19 namespace remoting { 19 namespace remoting {
20 20
21 TEST(ServerLogEntryHostTest, MakeForSessionStateChange) { 21 TEST(ServerLogEntryHostTest, MakeForSessionStateChange) {
22 std::unique_ptr<ServerLogEntry> entry( 22 std::unique_ptr<ServerLogEntry> entry(
23 MakeLogEntryForSessionStateChange(true)); 23 MakeLogEntryForSessionStateChange(true));
24 std::unique_ptr<XmlElement> stanza = entry->ToStanza(); 24 std::unique_ptr<XmlElement> stanza = entry->ToStanza();
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 key_value_pairs["role"] = "host"; 106 key_value_pairs["role"] = "host";
107 key_value_pairs["event-name"] = "session-state"; 107 key_value_pairs["event-name"] = "session-state";
108 key_value_pairs["session-state"] = "connected"; 108 key_value_pairs["session-state"] = "connected";
109 key_value_pairs["mode"] = "me2me"; 109 key_value_pairs["mode"] = "me2me";
110 std::set<std::string> keys; 110 std::set<std::string> keys;
111 ASSERT_TRUE(VerifyStanza(key_value_pairs, keys, stanza.get(), &error)) << 111 ASSERT_TRUE(VerifyStanza(key_value_pairs, keys, stanza.get(), &error)) <<
112 error; 112 error;
113 } 113 }
114 114
115 } // namespace remoting 115 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/register_support_host_request_unittest.cc ('k') | remoting/protocol/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698