| Index: webrtc/modules/remote_bitrate_estimator/test/estimators/nada.cc
|
| diff --git a/webrtc/modules/remote_bitrate_estimator/test/estimators/nada.cc b/webrtc/modules/remote_bitrate_estimator/test/estimators/nada.cc
|
| index 171d196fc07e63ff5c47bae9b4417cd453ac9a83..6166ff8c2d409ecbbe290025674257c140a76553 100644
|
| --- a/webrtc/modules/remote_bitrate_estimator/test/estimators/nada.cc
|
| +++ b/webrtc/modules/remote_bitrate_estimator/test/estimators/nada.cc
|
| @@ -18,6 +18,7 @@
|
| #include <algorithm>
|
| #include <vector>
|
|
|
| +#include "webrtc/base/arraysize.h"
|
| #include "webrtc/base/common.h"
|
| #include "webrtc/modules/remote_bitrate_estimator/test/estimators/nada.h"
|
| #include "webrtc/modules/remote_bitrate_estimator/test/bwe_test_logging.h"
|
| @@ -63,7 +64,7 @@ void NadaBweReceiver::ReceivePacket(int64_t arrival_time_ms,
|
| }
|
|
|
| delay_signal_ms_ = delay_ms - baseline_delay_ms_; // Refered as d_n.
|
| - const int kMedian = ARRAY_SIZE(last_delays_ms_);
|
| + const int kMedian = arraysize(last_delays_ms_);
|
| last_delays_ms_[(last_delays_index_++) % kMedian] = delay_signal_ms_;
|
| int size = std::min(last_delays_index_, kMedian);
|
|
|
|
|