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}
diff --git a/api/test/compile_all_headers.cc b/api/test/compile_all_headers.cc
index 6e0db4f..1fcf63e 100644
--- a/api/test/compile_all_headers.cc
+++ b/api/test/compile_all_headers.cc
@@ -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"
diff --git a/api/test/mock_session_description_interface.h b/api/test/mock_session_description_interface.h
index 2a6ce0c..f0346ce 100644
--- a/api/test/mock_session_description_interface.h
+++ b/api/test/mock_session_description_interface.h
@@ -32,6 +32,8 @@
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 @@
(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));
};