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

Side by Side Diff: remoting/protocol/server_log_entry_unittest.h

Issue 282063005: Pull out common code from client and host versions of ServerLogEntry. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include <map>
6 #include <set>
7 #include <string>
8
9 namespace buzz {
10 class XmlElement;
11 } // namespace buzz
12
13 namespace remoting {
14 namespace protocol {
15
16 // Verifies a logging stanza.
17 // |keyValuePairs| lists the keys that must have specified values, and |keys|
18 // lists the keys that must be present, but may have arbitrary values.
19 // There must be no other keys.
20 bool VerifyStanza(
21 const std::map<std::string, std::string>& key_value_pairs,
22 const std::set<std::string> keys,
23 const buzz::XmlElement* elem,
24 std::string* error);
25
26 } // namespace protocol
27 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698