Stop using ByteSize (deprecated) to get the size of a proto message.
The method ByteSize has been deprecated [1], this CL switches to ByteSizeLong. [1] - https://cs.chromium.org/chromium/src/third_party/protobuf/src/google/protobuf/message_lite.h?l=252&rcl=ac47edd22c481fcfe119769d6b7abf365abea8fa Bug: None Change-Id: I1ba622df52f47719a5beda6d230cb603a0163d43 Reviewed-on: https://webrtc-review.googlesource.com/27021 Reviewed-by: Tommi <tommi@webrtc.org> Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20952}
This commit is contained in:
committed by
Commit Bot
parent
bba8e9eb85
commit
5b86f0a24b
@ -214,7 +214,7 @@ int main(int argc, char* argv[]) {
|
||||
size_t malformed_event_size = 0;
|
||||
size_t accumulated_event_size = 0;
|
||||
for (const webrtc::rtclog::Event& event : events) {
|
||||
size_t serialized_size = event.ByteSize();
|
||||
size_t serialized_size = event.ByteSizeLong();
|
||||
// When the event is written on the disk, it is part of an EventStream
|
||||
// object. The event stream will prepend a 1 byte field number/wire type,
|
||||
// and a varint encoding (base 128) of the event length.
|
||||
|
||||
Reference in New Issue
Block a user