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

Unified Diff: remoting/jingle_glue/server_log_entry_unittest.h

Issue 320403002: Pull out common code from client and host versions of LogToServer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add unittests for LogToServer Created 6 years, 5 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
« no previous file with comments | « remoting/jingle_glue/log_to_server_unittest.cc ('k') | remoting/jingle_glue/server_log_entry_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/jingle_glue/server_log_entry_unittest.h
diff --git a/remoting/jingle_glue/server_log_entry_unittest.h b/remoting/jingle_glue/server_log_entry_unittest.h
index 523628befafef5c59b6295e69957dbd2654598da..5d5c58916ddd6396c878eecefd77883d30568259 100644
--- a/remoting/jingle_glue/server_log_entry_unittest.h
+++ b/remoting/jingle_glue/server_log_entry_unittest.h
@@ -12,6 +12,17 @@ class XmlElement;
namespace remoting {
+extern const char kJabberClientNamespace[];
+extern const char kChromotingNamespace[];
+
+// Verifies that |stanza| contains a <log> element and returns it. Otherwise
+// returns NULL and records a test failure.
+buzz::XmlElement* GetLogElementFromStanza(buzz::XmlElement* stanza);
+
+// Verifies that |stanza| contains only 1 log entry, and returns the <entry>
+// element. Otherwise returns NULL and records a test failure.
+buzz::XmlElement* GetSingleLogEntryFromStanza(buzz::XmlElement* stanza);
+
// Verifies a logging stanza.
// |keyValuePairs| lists the keys that must have specified values, and |keys|
// lists the keys that must be present, but may have arbitrary values.
« no previous file with comments | « remoting/jingle_glue/log_to_server_unittest.cc ('k') | remoting/jingle_glue/server_log_entry_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698