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

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

Issue 810133003: replace NULL->nullptr in src/remoting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « remoting/signaling/server_log_entry.cc ('k') | remoting/signaling/server_log_entry_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <map> 5 #include <map>
6 #include <set> 6 #include <set>
7 #include <string> 7 #include <string>
8 8
9 namespace buzz { 9 namespace buzz {
10 class XmlElement; 10 class XmlElement;
11 } // namespace buzz 11 } // namespace buzz
12 12
13 namespace remoting { 13 namespace remoting {
14 14
15 extern const char kJabberClientNamespace[]; 15 extern const char kJabberClientNamespace[];
16 extern const char kChromotingNamespace[]; 16 extern const char kChromotingNamespace[];
17 17
18 // Verifies that |stanza| contains a <log> element and returns it. Otherwise 18 // Verifies that |stanza| contains a <log> element and returns it. Otherwise
19 // returns NULL and records a test failure. 19 // returns nullptr and records a test failure.
20 buzz::XmlElement* GetLogElementFromStanza(buzz::XmlElement* stanza); 20 buzz::XmlElement* GetLogElementFromStanza(buzz::XmlElement* stanza);
21 21
22 // Verifies that |stanza| contains only 1 log entry, and returns the <entry> 22 // Verifies that |stanza| contains only 1 log entry, and returns the <entry>
23 // element. Otherwise returns NULL and records a test failure. 23 // element. Otherwise returns nullptr and records a test failure.
24 buzz::XmlElement* GetSingleLogEntryFromStanza(buzz::XmlElement* stanza); 24 buzz::XmlElement* GetSingleLogEntryFromStanza(buzz::XmlElement* stanza);
25 25
26 // Verifies a logging stanza. 26 // Verifies a logging stanza.
27 // |keyValuePairs| lists the keys that must have specified values, and |keys| 27 // |keyValuePairs| lists the keys that must have specified values, and |keys|
28 // lists the keys that must be present, but may have arbitrary values. 28 // lists the keys that must be present, but may have arbitrary values.
29 // There must be no other keys. 29 // There must be no other keys.
30 bool VerifyStanza( 30 bool VerifyStanza(
31 const std::map<std::string, std::string>& key_value_pairs, 31 const std::map<std::string, std::string>& key_value_pairs,
32 const std::set<std::string> keys, 32 const std::set<std::string> keys,
33 const buzz::XmlElement* elem, 33 const buzz::XmlElement* elem,
34 std::string* error); 34 std::string* error);
35 35
36 } // namespace remoting 36 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/signaling/server_log_entry.cc ('k') | remoting/signaling/server_log_entry_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698