Change StartAecDump methods to work with FILE* and FileWrapper

Bug: webrtc:6463
Change-Id: Id275975decb9b2876021ced19ee9f279b07bea53
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/140283
Commit-Queue: Niels Moller <nisse@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Reviewed-by: Alex Loiko <aleloi@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#28233}
This commit is contained in:
Niels Möller
2019-06-11 14:04:16 +02:00
committed by Commit Bot
parent 7742b21839
commit e8e4dc4c8b
17 changed files with 45 additions and 39 deletions

View File

@ -67,6 +67,8 @@
#ifndef API_PEER_CONNECTION_INTERFACE_H_
#define API_PEER_CONNECTION_INTERFACE_H_
#include <stdio.h>
#include <memory>
#include <string>
#include <vector>
@ -1405,6 +1407,12 @@ class PeerConnectionFactoryInterface : public rtc::RefCountInterface {
// reached, logging is stopped automatically. If max_size_bytes is set to a
// value <= 0, no limit will be used, and logging will continue until the
// StopAecDump function is called.
// TODO(webrtc:6463): Delete default implementation when downstream mocks
// classes are updated.
virtual bool StartAecDump(FILE* file, int64_t max_size_bytes) {
return false;
}
// TODO(webrtc:6463): Deprecated; PlatformFile will soon be deleted.
virtual bool StartAecDump(rtc::PlatformFile file, int64_t max_size_bytes) = 0;
// Stops logging the AEC dump.