Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1660)

Unified Diff: webrtc/test/mock_voe_channel_proxy.h

Issue 2703373006: Injectable audio encoders: voice_engine/channel changes. (Closed)
Patch Set: Removed 'virtual' from Channel::SetEncoder. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/voice_engine/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/test/mock_voe_channel_proxy.h
diff --git a/webrtc/test/mock_voe_channel_proxy.h b/webrtc/test/mock_voe_channel_proxy.h
index b62c266ff696177aceadac0c64b34f071f2345a2..a0ccd456470e8adb8ffe6c1b83a790f69c025a14 100644
--- a/webrtc/test/mock_voe_channel_proxy.h
+++ b/webrtc/test/mock_voe_channel_proxy.h
@@ -22,6 +22,14 @@ namespace test {
class MockVoEChannelProxy : public voe::ChannelProxy {
public:
+ // GTest doesn't like move-only types, like std::unique_ptr
+ bool SetEncoder(int payload_type,
+ std::unique_ptr<AudioEncoder> encoder) {
+ return SetEncoderForMock(payload_type, &encoder);
+ }
+ MOCK_METHOD2(SetEncoderForMock,
+ bool(int payload_type,
+ std::unique_ptr<AudioEncoder>* encoder));
MOCK_METHOD1(SetRTCPStatus, void(bool enable));
MOCK_METHOD1(SetLocalSSRC, void(uint32_t ssrc));
MOCK_METHOD1(SetRTCP_CNAME, void(const std::string& c_name));
« no previous file with comments | « no previous file | webrtc/voice_engine/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698