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}
This commit is contained in:
committed by
Commit Bot
parent
8edfe6e667
commit
ed5d594730
@ -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
|
||||
|
||||
Reference in New Issue
Block a user