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:
@ -37,7 +37,7 @@ TEST(AudioEncoderTest, EncodeInternalRedirectsOk) {
|
||||
EXPECT_CALL(old_impl, EncodeInternal(_, _, _, _)).WillOnce(
|
||||
Invoke(MockAudioEncoderDeprecated::CopyEncoding(payload)));
|
||||
|
||||
EXPECT_CALL(new_impl, EncodeInternal(_, _, _)).WillOnce(
|
||||
EXPECT_CALL(new_impl, EncodeImpl(_, _, _)).WillOnce(
|
||||
Invoke(MockAudioEncoder::CopyEncoding(payload)));
|
||||
|
||||
int16_t audio[80];
|
||||
|
||||
Reference in New Issue
Block a user