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

Unified Diff: webrtc/call/rtc_event_log_parser.h

Issue 2253943006: Method to parse event log directly from a string. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Dont check for eof if checking bytes read anyway. Created 4 years, 4 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 | « no previous file | webrtc/call/rtc_event_log_parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/call/rtc_event_log_parser.h
diff --git a/webrtc/call/rtc_event_log_parser.h b/webrtc/call/rtc_event_log_parser.h
index acdfa77da177e605ddfa94e80dccea6abef37847..74f066d575ac86439dc62039f82467818eb16e30 100644
--- a/webrtc/call/rtc_event_log_parser.h
+++ b/webrtc/call/rtc_event_log_parser.h
@@ -50,6 +50,12 @@ class ParsedRtcEventLog {
// Reads an RtcEventLog file and returns true if parsing was successful.
bool ParseFile(const std::string& file_name);
+ // Reads an RtcEventLog from a string and returns true if successful.
+ bool ParseString(const std::string& s);
+
+ // Reads an RtcEventLog from an istream and returns true if successful.
+ bool ParseStream(std::istream& stream);
+
// Returns the number of events in an EventStream.
size_t GetNumberOfEvents() const;
@@ -106,7 +112,7 @@ class ParsedRtcEventLog {
int32_t* total_packets) const;
private:
- std::vector<rtclog::Event> stream_;
+ std::vector<rtclog::Event> events_;
};
} // namespace webrtc
« no previous file with comments | « no previous file | webrtc/call/rtc_event_log_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698