| OLD | NEW |
| 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/client/server_log_entry_client.h" | 5 #include "remoting/client/server_log_entry_client.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 "base/sys_info.h" | 10 #include "base/sys_info.h" |
| 11 #include "remoting/protocol/performance_tracker.h" | 11 #include "remoting/protocol/performance_tracker.h" |
| 12 #include "remoting/signaling/server_log_entry.h" | 12 #include "remoting/signaling/server_log_entry.h" |
| 13 #include "remoting/signaling/server_log_entry_unittest.h" | 13 #include "remoting/signaling/server_log_entry_unittest.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 15 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" | 15 #include "third_party/libjingle_xmpp/xmllite/xmlelement.h" |
| 16 | 16 |
| 17 using base::SysInfo; | 17 using base::SysInfo; |
| 18 using buzz::XmlAttr; | 18 using buzz::XmlAttr; |
| 19 using buzz::XmlElement; | 19 using buzz::XmlElement; |
| 20 using remoting::protocol::ConnectionToHost; | 20 using remoting::protocol::ConnectionToHost; |
| 21 | 21 |
| 22 namespace remoting { | 22 namespace remoting { |
| 23 | 23 |
| 24 TEST(ServerLogEntryClientTest, SessionStateChange) { | 24 TEST(ServerLogEntryClientTest, SessionStateChange) { |
| 25 std::unique_ptr<ServerLogEntry> entry(MakeLogEntryForSessionStateChange( | 25 std::unique_ptr<ServerLogEntry> entry(MakeLogEntryForSessionStateChange( |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 key_value_pairs["role"] = "client"; | 119 key_value_pairs["role"] = "client"; |
| 120 key_value_pairs["event-name"] = "session-state"; | 120 key_value_pairs["event-name"] = "session-state"; |
| 121 key_value_pairs["session-state"] = "connected"; | 121 key_value_pairs["session-state"] = "connected"; |
| 122 key_value_pairs["session-duration"] = "123"; | 122 key_value_pairs["session-duration"] = "123"; |
| 123 std::set<std::string> keys; | 123 std::set<std::string> keys; |
| 124 ASSERT_TRUE(VerifyStanza(key_value_pairs, keys, stanza.get(), &error)) | 124 ASSERT_TRUE(VerifyStanza(key_value_pairs, keys, stanza.get(), &error)) |
| 125 << error; | 125 << error; |
| 126 } | 126 } |
| 127 | 127 |
| 128 } // namespace remoting | 128 } // namespace remoting |
| OLD | NEW |