aboutsummaryrefslogtreecommitdiff
path: root/logging
diff options
context:
space:
mode:
authorDanil Chapovalov <danilchap@webrtc.org>2020-05-27 13:41:34 +0200
committerCommit Bot <commit-bot@chromium.org>2020-05-28 14:11:53 +0000
commited5d5947300f25380ea86491975e2cc4a8d644a6 (patch)
treec9ece912ee721791dfcd8fd6e2a9b48da838b6e4 /logging
parent8edfe6e6670ee1070ea12275fca6da48d4afb73f (diff)
downloadwebrtc-ed5d5947300f25380ea86491975e2cc4a8d644a6.tar.gz
Replace mock macros with unified MOCK_METHOD macro
Bug: webrtc:11564 Change-Id: I6398b052ec85d2f739755723629bc5da98fb30e3 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/176180 Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/master@{#31376}
Diffstat (limited to 'logging')
-rw-r--r--logging/rtc_event_log/mock/mock_rtc_event_log.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/logging/rtc_event_log/mock/mock_rtc_event_log.h b/logging/rtc_event_log/mock/mock_rtc_event_log.h
index 66a2065ed4..646831de27 100644
--- a/logging/rtc_event_log/mock/mock_rtc_event_log.h
+++ b/logging/rtc_event_log/mock/mock_rtc_event_log.h
@@ -21,20 +21,20 @@ namespace webrtc {
class MockRtcEventLog : public RtcEventLog {
public:
MockRtcEventLog();
- ~MockRtcEventLog();
+ ~MockRtcEventLog() override;
- virtual bool StartLogging(std::unique_ptr<RtcEventLogOutput> output,
- int64_t output_period_ms) {
- return StartLoggingProxy(output.get(), output_period_ms);
- }
- MOCK_METHOD2(StartLoggingProxy, bool(RtcEventLogOutput*, int64_t));
+ MOCK_METHOD(bool,
+ StartLogging,
+ (std::unique_ptr<RtcEventLogOutput> output,
+ int64_t output_period_ms),
+ (override));
- MOCK_METHOD0(StopLogging, void());
+ MOCK_METHOD(void, StopLogging, (), (override));
- virtual void Log(std::unique_ptr<RtcEvent> event) {
+ void Log(std::unique_ptr<RtcEvent> event) override {
return LogProxy(event.get());
}
- MOCK_METHOD1(LogProxy, void(RtcEvent*));
+ MOCK_METHOD(void, LogProxy, (RtcEvent*));
};
} // namespace webrtc