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

Unified Diff: webrtc/test/mock_voe_channel_proxy.h

Issue 1459083007: Open backdoor in VoiceEngineImpl to get at the actual voe::Channel objects from an ID. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 5 years, 1 month 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
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
new file mode 100644
index 0000000000000000000000000000000000000000..cd4d85a7b3902c3a684276bbc1a2c464b9424a8a
--- /dev/null
+++ b/webrtc/test/mock_voe_channel_proxy.h
@@ -0,0 +1,32 @@
+/*
+ * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
+ *
+ * Use of this source code is governed by a BSD-style license
+ * that can be found in the LICENSE file in the root of the source
+ * tree. An additional intellectual property rights grant can be found
+ * in the file PATENTS. All contributing project authors may
+ * be found in the AUTHORS file in the root of the source tree.
+ */
+
+#ifndef WEBRTC_AUDIO_MOCK_VOE_CHANNEL_PROXY_H_
+#define WEBRTC_AUDIO_MOCK_VOE_CHANNEL_PROXY_H_
+
+#include "testing/gmock/include/gmock/gmock.h"
+#include "webrtc/voice_engine/channel_proxy.h"
+
+namespace webrtc {
+namespace test {
+
+class MockVoEChannelProxy : public voe::ChannelProxy {
+ public:
+ MockVoEChannelProxy() : voe::ChannelProxy() {}
kwiberg-webrtc 2015/11/25 10:44:59 Do you need this? It looks like the default constr
the sun 2015/11/25 12:28:01 Done.
+ ~MockVoEChannelProxy() override {}
kwiberg-webrtc 2015/11/25 10:44:59 Same here.
the sun 2015/11/25 12:28:01 Done.
+
+ MOCK_METHOD1(SetRTCPStatus, void(bool enable));
+ MOCK_METHOD1(SetLocalSSRC, void(uint32_t ssrc));
+ MOCK_METHOD1(SetRTCP_CNAME, void(const std::string& c_name));
+};
+} // namespace test
+} // namespace webrtc
+
+#endif // WEBRTC_AUDIO_MOCK_VOE_CHANNEL_PROXY_H_

Powered by Google App Engine
This is Rietveld 408576698