Removes usages of repeating task without task queue argument.
This prepares from removing the overload in a followup CL. Bug: webrtc:10365 Change-Id: I80db16e7d37944e3dc7d2799bbf45ef8f439a22c Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/126860 Reviewed-by: Åsa Persson <asapersson@webrtc.org> Cr-Commit-Position: refs/heads/master@{#27091}
This commit is contained in:
@ -59,9 +59,10 @@ class MockAdaptationObserver : public AdaptationObserverInterface {
|
||||
// Pass a lower sampling period to speed up the tests.
|
||||
class QualityScalerUnderTest : public QualityScaler {
|
||||
public:
|
||||
explicit QualityScalerUnderTest(AdaptationObserverInterface* observer,
|
||||
explicit QualityScalerUnderTest(rtc::TaskQueue* task_queue,
|
||||
AdaptationObserverInterface* observer,
|
||||
VideoEncoder::QpThresholds thresholds)
|
||||
: QualityScaler(observer, thresholds, 5) {}
|
||||
: QualityScaler(task_queue, observer, thresholds, 5) {}
|
||||
};
|
||||
|
||||
class QualityScalerTest : public ::testing::Test,
|
||||
@ -81,7 +82,8 @@ class QualityScalerTest : public ::testing::Test,
|
||||
observer_(new MockAdaptationObserver()) {
|
||||
DO_SYNC(q_, {
|
||||
qs_ = std::unique_ptr<QualityScaler>(new QualityScalerUnderTest(
|
||||
observer_.get(), VideoEncoder::QpThresholds(kLowQp, kHighQp)));
|
||||
q_.get(), observer_.get(),
|
||||
VideoEncoder::QpThresholds(kLowQp, kHighQp)));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user