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

Unified Diff: remoting/host/server_log_entry_unittest.cc

Issue 10409017: [Chromoting] Add platform data to heartbeats. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Improve names and comments. Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
« remoting/host/server_log_entry.cc ('K') | « remoting/host/server_log_entry.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/server_log_entry_unittest.cc
diff --git a/remoting/host/server_log_entry_unittest.cc b/remoting/host/server_log_entry_unittest.cc
index 5cd94ee990436a625d3e20a70b35dddb29fe2b57..4516473dc2257839106ff9c350d9ad862ba0e5bb 100644
--- a/remoting/host/server_log_entry_unittest.cc
+++ b/remoting/host/server_log_entry_unittest.cc
@@ -74,6 +74,18 @@ TEST_F(ServerLogEntryTest, MakeSessionStateChange) {
error;
}
+TEST_F(ServerLogEntryTest, MakeHeartbeat) {
+ scoped_ptr<ServerLogEntry> entry(ServerLogEntry::MakeForHeartbeat());
+ scoped_ptr<XmlElement> stanza = entry->ToStanza();
+ std::string error;
+ std::map<std::string, std::string> key_value_pairs;
+ key_value_pairs["role"] = "host";
+ key_value_pairs["event-name"] = "heartbeat";
+ std::set<std::string> keys;
+ ASSERT_TRUE(VerifyStanza(key_value_pairs, keys, stanza.get(), &error)) <<
Sergey Ulanov 2012/05/21 20:06:02 nit: wrap << operator.
simonmorris 2012/05/21 20:40:23 Done.
+ error;
+}
+
TEST_F(ServerLogEntryTest, AddHostFields) {
scoped_ptr<ServerLogEntry> entry(
ServerLogEntry::MakeSessionStateChange(true));
« remoting/host/server_log_entry.cc ('K') | « remoting/host/server_log_entry.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698