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

Unified Diff: webrtc/modules/remote_bitrate_estimator/include/mock/mock_remote_bitrate_estimator.h

Issue 1329083005: Add TransportFeedback adapter, adapting remote feedback to bwe estiamtor (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Bad merge, test issue Created 5 years, 3 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
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

Powered by Google App Engine
This is Rietveld 408576698