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:
ossu
2016-03-04 00:54:32 -08:00
committed by Commit bot
parent 88950cfbf9
commit 4f43fcfd49
23 changed files with 62 additions and 82 deletions

View File

@ -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];