Remove rtc::Location from SendTask test helper
that rtc::Location parameter was used only as extra information for the
RTC_CHECKs directly in the function, thus call stack of the crash should
provide all the information about the caller.
Bug: webrtc:11318
Change-Id: Iec6dd2c5de547f3e1601647a614be7ce57a55734
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/270920
Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org>
Commit-Queue: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#37748}
diff --git a/video/picture_id_tests.cc b/video/picture_id_tests.cc
index 85b7f8a..7d0a076 100644
--- a/video/picture_id_tests.cc
+++ b/video/picture_id_tests.cc
@@ -217,7 +217,7 @@
PictureIdTest() : num_temporal_layers_(GetParam()) {}
virtual ~PictureIdTest() {
- SendTask(RTC_FROM_HERE, task_queue(), [this]() {
+ SendTask(task_queue(), [this]() {
send_transport_.reset();
receive_transport_.reset();
DestroyCalls();
@@ -254,7 +254,7 @@
new PictureIdObserver(PayloadStringToCodecType(payload_name)));
SendTask(
- RTC_FROM_HERE, task_queue(), [this, encoder_factory, payload_name]() {
+ task_queue(), [this, encoder_factory, payload_name]() {
CreateCalls();
send_transport_.reset(new test::PacketTransport(
@@ -299,7 +299,7 @@
void PictureIdTest::TestPictureIdContinuousAfterReconfigure(
const std::vector<int>& ssrc_counts) {
- SendTask(RTC_FROM_HERE, task_queue(), [this]() {
+ SendTask(task_queue(), [this]() {
CreateVideoStreams();
CreateFrameGeneratorCapturer(kFrameRate, kFrameMaxWidth, kFrameMaxHeight);
@@ -317,14 +317,14 @@
observer_->SetExpectedSsrcs(ssrc_count);
observer_->ResetObservedSsrcs();
// Make sure the picture_id sequence is continuous on reinit and recreate.
- SendTask(RTC_FROM_HERE, task_queue(), [this]() {
+ SendTask(task_queue(), [this]() {
GetVideoSendStream()->ReconfigureVideoEncoder(
GetVideoEncoderConfig()->Copy());
});
EXPECT_TRUE(observer_->Wait()) << "Timed out waiting for packets.";
}
- SendTask(RTC_FROM_HERE, task_queue(), [this]() {
+ SendTask(task_queue(), [this]() {
Stop();
DestroyStreams();
});
@@ -332,7 +332,7 @@
void PictureIdTest::TestPictureIdIncreaseAfterRecreateStreams(
const std::vector<int>& ssrc_counts) {
- SendTask(RTC_FROM_HERE, task_queue(), [this]() {
+ SendTask(task_queue(), [this]() {
CreateVideoStreams();
CreateFrameGeneratorCapturer(kFrameRate, kFrameMaxWidth, kFrameMaxHeight);
@@ -347,7 +347,7 @@
// with it, therefore it is expected that some frames might be lost.
observer_->SetMaxExpectedPictureIdGap(kMaxFramesLost);
for (int ssrc_count : ssrc_counts) {
- SendTask(RTC_FROM_HERE, task_queue(), [this, &ssrc_count]() {
+ SendTask(task_queue(), [this, &ssrc_count]() {
DestroyVideoSendStreams();
SetVideoEncoderConfig(ssrc_count);
@@ -362,7 +362,7 @@
EXPECT_TRUE(observer_->Wait()) << "Timed out waiting for packets.";
}
- SendTask(RTC_FROM_HERE, task_queue(), [this]() {
+ SendTask(task_queue(), [this]() {
Stop();
DestroyStreams();
});