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

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: presubmit complaints 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
« no previous file with comments | « webrtc/audio/audio_send_stream_unittest.cc ('k') | webrtc/test/mock_voice_engine.h » ('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/histogram.h b/webrtc/test/mock_voe_channel_proxy.h
similarity index 52%
copy from webrtc/test/histogram.h
copy to webrtc/test/mock_voe_channel_proxy.h
index 44ce32b4f4af815ec87dbf6744307bc2a7eef209..d42e29b4d99657e5716748b530e7d99856265b76 100644
--- a/webrtc/test/histogram.h
+++ b/webrtc/test/mock_voe_channel_proxy.h
@@ -8,26 +8,23 @@
* be found in the AUTHORS file in the root of the source tree.
*/
-#ifndef WEBRTC_TEST_HISTOGRAM_H_
-#define WEBRTC_TEST_HISTOGRAM_H_
+#ifndef WEBRTC_TEST_MOCK_VOE_CHANNEL_PROXY_H_
+#define WEBRTC_TEST_MOCK_VOE_CHANNEL_PROXY_H_
#include <string>
+#include "testing/gmock/include/gmock/gmock.h"
+#include "webrtc/voice_engine/channel_proxy.h"
namespace webrtc {
namespace test {
-// Returns the last added sample to a histogram (or -1 if the histogram is not
-// found).
-int LastHistogramSample(const std::string& name);
-
-// Returns the number of added samples to a histogram.
-int NumHistogramSamples(const std::string& name);
-
-// Removes all histograms.
-void ClearHistograms();
-
+class MockVoEChannelProxy : public voe::ChannelProxy {
+ public:
+ 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_TEST_HISTOGRAM_H_
-
+#endif // WEBRTC_TEST_MOCK_VOE_CHANNEL_PROXY_H_
« no previous file with comments | « webrtc/audio/audio_send_stream_unittest.cc ('k') | webrtc/test/mock_voice_engine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698