Index: webrtc/modules/remote_bitrate_estimator/include/mock/mock_remote_bitrate_estimator.h |
diff --git a/webrtc/modules/remote_bitrate_estimator/include/mock/mock_remote_bitrate_observer.h b/webrtc/modules/remote_bitrate_estimator/include/mock/mock_remote_bitrate_estimator.h |
similarity index 53% |
copy from webrtc/modules/remote_bitrate_estimator/include/mock/mock_remote_bitrate_observer.h |
copy to webrtc/modules/remote_bitrate_estimator/include/mock/mock_remote_bitrate_estimator.h |
index edfac977a2c0178ce8d20f418ad1f0ba3eee255d..7890fb72aac62e6d965964e11735bed4f669e335 100644 |
--- a/webrtc/modules/remote_bitrate_estimator/include/mock/mock_remote_bitrate_observer.h |
+++ b/webrtc/modules/remote_bitrate_estimator/include/mock/mock_remote_bitrate_estimator.h |
@@ -1,5 +1,5 @@ |
/* |
- * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
+ * 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 |
@@ -18,10 +18,22 @@ |
namespace webrtc { |
-class MockRemoteBitrateObserver : public RemoteBitrateObserver { |
+class MockRemoteBitrateEstimator : public RemoteBitrateEstimator { |
public: |
- MOCK_METHOD2(OnReceiveBitrateChanged, |
- void(const std::vector<unsigned int>& ssrcs, unsigned int bitrate)); |
+ MOCK_METHOD1(IncomingPacketFeedbackVector, |
+ void(const std::vector<PacketInfo>&)); |
+ MOCK_METHOD4(IncomingPacket, void(int64_t, size_t, const RTPHeader&, bool)); |
+ MOCK_METHOD1(RemoveStream, void(unsigned int)); |
+ MOCK_CONST_METHOD2(LatestEstimate, |
+ bool(std::vector<unsigned int>*, unsigned int*)); |
+ MOCK_CONST_METHOD1(GetStats, bool(ReceiveBandwidthEstimatorStats*)); |
+ |
+ // From CallStatsObserver; |
+ MOCK_METHOD2(OnRttUpdate, void(int64_t, int64_t)); |
+ |
+ // From Module. |
+ MOCK_METHOD0(TimeUntilNextProcess, int64_t()); |
+ MOCK_METHOD0(Process, int32_t()); |
}; |
} // namespace webrtc |