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

Unified Diff: webrtc/modules/congestion_controller/delay_based_bwe_unittest_helper.h

Issue 2378103005: Reland: Fix race / crash in OnNetworkRouteChanged(). (Closed)
Patch Set: . Created 4 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/congestion_controller/delay_based_bwe_unittest_helper.h
diff --git a/webrtc/modules/congestion_controller/delay_based_bwe_unittest_helper.h b/webrtc/modules/congestion_controller/delay_based_bwe_unittest_helper.h
index f97cd5272d8589b5b26bd25699c74a5cf4edbd65..add9fb32774f9552501ea7f418a3153566c79538 100644
--- a/webrtc/modules/congestion_controller/delay_based_bwe_unittest_helper.h
+++ b/webrtc/modules/congestion_controller/delay_based_bwe_unittest_helper.h
@@ -19,6 +19,7 @@
#include "webrtc/test/gtest.h"
#include "webrtc/base/constructormagic.h"
+#include "webrtc/modules/congestion_controller/delay_based_bwe.h"
#include "webrtc/modules/remote_bitrate_estimator/include/remote_bitrate_estimator.h"
#include "webrtc/system_wrappers/include/clock.h"
@@ -160,8 +161,8 @@ class DelayBasedBweTest : public ::testing::Test {
static const uint32_t kDefaultSsrc;
SimulatedClock clock_; // Time at the receiver.
- std::unique_ptr<test::TestBitrateObserver> bitrate_observer_;
- std::unique_ptr<RemoteBitrateEstimator> bitrate_estimator_;
+ test::TestBitrateObserver bitrate_observer_;
+ DelayBasedBwe bitrate_estimator_;
std::unique_ptr<test::StreamGenerator> stream_generator_;
int64_t arrival_time_offset_ms_;

Powered by Google App Engine
This is Rietveld 408576698