mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-12 21:30:45 +01:00
Fix errors in new SessionDescriptionInterface mock
and really compile it with CompileAllHeaders. Bug: webrtc:14594 Change-Id: I51b0364cbede0e1d614ee708fbc01580bda68d3d Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/280223 Commit-Queue: Florent Castelli <orphis@webrtc.org> Auto-Submit: Harald Alvestrand <hta@webrtc.org> Reviewed-by: Florent Castelli <orphis@webrtc.org> Cr-Commit-Position: refs/heads/main@{#38465}
This commit is contained in:
parent
d226c5731d
commit
0137e730b7
2 changed files with 7 additions and 1 deletions
|
@ -42,6 +42,7 @@
|
|||
#include "api/test/mock_rtp_transceiver.h"
|
||||
#include "api/test/mock_rtpreceiver.h"
|
||||
#include "api/test/mock_rtpsender.h"
|
||||
#include "api/test/mock_session_description_interface.h"
|
||||
#include "api/test/mock_transformable_video_frame.h"
|
||||
#include "api/test/mock_video_bitrate_allocator.h"
|
||||
#include "api/test/mock_video_bitrate_allocator_factory.h"
|
||||
|
|
|
@ -32,6 +32,8 @@ class MockSessionDescriptionInterface : public SessionDescriptionInterface {
|
|||
description,
|
||||
(),
|
||||
(const, override));
|
||||
MOCK_METHOD(std::string, session_id, (), (const, override));
|
||||
MOCK_METHOD(std::string, session_version, (), (const, override));
|
||||
MOCK_METHOD(SdpType, GetType, (), (const, override));
|
||||
MOCK_METHOD(std::string, type, (), (const, override));
|
||||
MOCK_METHOD(bool, AddCandidate, (const IceCandidateInterface*), (override));
|
||||
|
@ -40,7 +42,10 @@ class MockSessionDescriptionInterface : public SessionDescriptionInterface {
|
|||
(const std::vector<cricket::Candidate>&),
|
||||
(override));
|
||||
MOCK_METHOD(size_t, number_of_mediasections, (), (const, override));
|
||||
MOCK_METHOD(IceCandidateCollection*, candidates, (size_t), (const, override));
|
||||
MOCK_METHOD(const IceCandidateCollection*,
|
||||
candidates,
|
||||
(size_t),
|
||||
(const, override));
|
||||
MOCK_METHOD(bool, ToString, (std::string*), (const, override));
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue