Add absl::string_view overload for RtcEventLogOutput::Write
Bug: webrtc:13579 Change-Id: I13f63fb6be6aa62c2e011c18327499fa16b5824e Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/267641 Commit-Queue: Björn Terelius <terelius@webrtc.org> Reviewed-by: Harald Alvestrand <hta@webrtc.org> Reviewed-by: Ali Tofigh <alito@webrtc.org> Cr-Commit-Position: refs/heads/main@{#37440}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
8feb6fd1e9
commit
63299a3124
@ -2810,8 +2810,10 @@ TEST_P(PeerConnectionIntegrationTest, RtcEventLogOutputWriteCalled) {
|
||||
|
||||
auto output = std::make_unique<testing::NiceMock<MockRtcEventLogOutput>>();
|
||||
ON_CALL(*output, IsActive()).WillByDefault(::testing::Return(true));
|
||||
ON_CALL(*output, Write(::testing::_)).WillByDefault(::testing::Return(true));
|
||||
EXPECT_CALL(*output, Write(::testing::_)).Times(::testing::AtLeast(1));
|
||||
ON_CALL(*output, Write(::testing::A<const std::string&>()))
|
||||
.WillByDefault(::testing::Return(true));
|
||||
EXPECT_CALL(*output, Write(::testing::A<const std::string&>()))
|
||||
.Times(::testing::AtLeast(1));
|
||||
EXPECT_TRUE(caller()->pc()->StartRtcEventLog(
|
||||
std::move(output), webrtc::RtcEventLog::kImmediateOutput));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user