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_ |