| Index: webrtc/logging/rtc_event_log/mock/mock_rtc_event_log.h
|
| diff --git a/webrtc/logging/rtc_event_log/mock/mock_rtc_event_log.h b/webrtc/logging/rtc_event_log/mock/mock_rtc_event_log.h
|
| index 36d9e688f2682707997cf67e53276556e4b5fce1..68639043a0b0a9d23cc8d99becf2fbf8c8a38c3c 100644
|
| --- a/webrtc/logging/rtc_event_log/mock/mock_rtc_event_log.h
|
| +++ b/webrtc/logging/rtc_event_log/mock/mock_rtc_event_log.h
|
| @@ -11,6 +11,7 @@
|
| #ifndef WEBRTC_LOGGING_RTC_EVENT_LOG_MOCK_MOCK_RTC_EVENT_LOG_H_
|
| #define WEBRTC_LOGGING_RTC_EVENT_LOG_MOCK_MOCK_RTC_EVENT_LOG_H_
|
|
|
| +#include <memory>
|
| #include <string>
|
|
|
| #include "webrtc/logging/rtc_event_log/rtc_event_log.h"
|
| @@ -31,6 +32,14 @@ class MockRtcEventLog : public RtcEventLog {
|
|
|
| MOCK_METHOD0(StopLogging, void());
|
|
|
| + // Can't be directly mocked because unique_ptr doesn't support copying;
|
| + // using a proxy-mock is the work-around.
|
| + void LogRtcEvent(std::unique_ptr<RtcEvent> event) {
|
| + LogRtcEventProxy(event.get());
|
| + }
|
| + // TODO(eladalon): !!! private instead?
|
| + MOCK_METHOD1(LogRtcEventProxy, void(RtcEvent*));
|
| +
|
| MOCK_METHOD1(LogVideoReceiveStreamConfig,
|
| void(const rtclog::StreamConfig& config));
|
|
|
|
|