Renamed new EncodeInternal to EncodeImpl to ensure proper backwards compatibility.
Renamed the new variant of EncodeInternal to EncodeImpl, so that subclasses implementing one of the EncodeInternal don't need to explicitly contain 'using AudioEncoder::EncodeInternal' to avoid their implementation hiding the other variant of EncodeInternal. This causes a warning (treated as an error) when building using GCC. Review URL: https://codereview.webrtc.org/1764583003 Cr-Commit-Position: refs/heads/master@{#11868}
This commit is contained in:
@ -43,10 +43,8 @@ class MockAudioEncoderBase : public AudioEncoder {
|
||||
|
||||
class MockAudioEncoder final : public MockAudioEncoderBase {
|
||||
public:
|
||||
using AudioEncoder::EncodeInternal;
|
||||
|
||||
// Note, we explicitly chose not to create a mock for the Encode method.
|
||||
MOCK_METHOD3(EncodeInternal,
|
||||
MOCK_METHOD3(EncodeImpl,
|
||||
EncodedInfo(uint32_t timestamp,
|
||||
rtc::ArrayView<const int16_t> audio,
|
||||
rtc::Buffer* encoded));
|
||||
@ -96,8 +94,6 @@ class MockAudioEncoder final : public MockAudioEncoderBase {
|
||||
|
||||
class MockAudioEncoderDeprecated final : public MockAudioEncoderBase {
|
||||
public:
|
||||
using AudioEncoder::EncodeInternal;
|
||||
|
||||
// Note, we explicitly chose not to create a mock for the Encode method.
|
||||
MOCK_METHOD4(EncodeInternal,
|
||||
EncodedInfo(uint32_t timestamp,
|
||||
|
||||
Reference in New Issue
Block a user