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 15 // Verifies a logging stanza. 16 // |keyValuePairs| lists the keys that must have specified values, and |keys| 17 // lists the keys that must be present, but may have arbitrary values. 18 // There must be no other keys. 19 bool VerifyStanza( 20 const std::map<std::string, std::string>& key_value_pairs, 21 const std::set<std::string> keys, 22 const buzz::XmlElement* elem, 23 std::string* error); 24 25 } // namespace remoting 26