diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:34:50 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:34:50 +0000 |
commit | def92d1b8e9d373e2f6f27c366d578d97d8960c6 (patch) | |
tree | 2ef34b9ad8bb9a9220e05d60352558b15f513894 /third_party/libwebrtc/pc/peer_connection_media_unittest.cc | |
parent | Adding debian version 125.0.3-1. (diff) | |
download | firefox-def92d1b8e9d373e2f6f27c366d578d97d8960c6.tar.xz firefox-def92d1b8e9d373e2f6f27c366d578d97d8960c6.zip |
Merging upstream version 126.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/libwebrtc/pc/peer_connection_media_unittest.cc')
-rw-r--r-- | third_party/libwebrtc/pc/peer_connection_media_unittest.cc | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/third_party/libwebrtc/pc/peer_connection_media_unittest.cc b/third_party/libwebrtc/pc/peer_connection_media_unittest.cc index 387094cc4f..b892eacb78 100644 --- a/third_party/libwebrtc/pc/peer_connection_media_unittest.cc +++ b/third_party/libwebrtc/pc/peer_connection_media_unittest.cc @@ -66,7 +66,6 @@ #ifdef WEBRTC_ANDROID #include "pc/test/android_test_initializer.h" #endif -#include "rtc_base/gunit.h" #include "rtc_base/virtual_socket_server.h" #include "test/gmock.h" @@ -78,6 +77,7 @@ using RTCOfferAnswerOptions = PeerConnectionInterface::RTCOfferAnswerOptions; using ::testing::Bool; using ::testing::Combine; using ::testing::ElementsAre; +using ::testing::HasSubstr; using ::testing::NotNull; using ::testing::Values; @@ -175,8 +175,7 @@ class PeerConnectionMediaBaseTest : public ::testing::Test { factory_dependencies.task_queue_factory = CreateDefaultTaskQueueFactory(); EnableFakeMedia(factory_dependencies, std::move(media_engine)); factory_dependencies.event_log_factory = - std::make_unique<RtcEventLogFactory>( - factory_dependencies.task_queue_factory.get()); + std::make_unique<RtcEventLogFactory>(); auto pc_factory = CreateModularPeerConnectionFactory(std::move(factory_dependencies)); @@ -287,8 +286,8 @@ TEST_P(PeerConnectionMediaTest, std::string error; ASSERT_FALSE(callee->SetRemoteDescription(caller->CreateOffer(), &error)); - EXPECT_PRED_FORMAT2(AssertStartsWith, error, - "Failed to set remote offer sdp: Failed to create"); + EXPECT_THAT(error, + HasSubstr("Failed to set remote offer sdp: Failed to create")); } TEST_P(PeerConnectionMediaTest, @@ -298,8 +297,8 @@ TEST_P(PeerConnectionMediaTest, std::string error; ASSERT_FALSE(caller->SetLocalDescription(caller->CreateOffer(), &error)); - EXPECT_PRED_FORMAT2(AssertStartsWith, error, - "Failed to set local offer sdp: Failed to create"); + EXPECT_THAT(error, + HasSubstr("Failed to set local offer sdp: Failed to create")); } std::vector<std::string> GetIds( |