Internal change

PiperOrigin-RevId: 359161492
This commit is contained in:
hai007
2021-02-24 02:23:59 +00:00
committed by Shane Fitzpatrick
parent ede9f62e43
commit e9c2d0a173
14 changed files with 46 additions and 9 deletions
@@ -658,7 +658,6 @@ TEST_P(BasePcpHandlerTest, DestructorIsCalledOnProtocolEndpoint) {
channel_b->Close();
bwu.Shutdown();
pcp_handler.DisconnectFromEndpointManager();
bwu.Shutdown();
}
EXPECT_EQ(destroyed_flag.load(), mediums_count);
env_.Stop();
-1
View File
@@ -68,7 +68,6 @@ cc_library(
visibility = [
"//core/internal:__pkg__",
"//core/internal/mediums:__pkg__",
"//core/internal/mediums/ble_v2:__pkg__",
"//core/internal/mediums/webrtc:__pkg__",
],
deps = [
+14
View File
@@ -458,6 +458,13 @@ void WebRtc::SendOffer(const std::string& service_id,
}
SessionDescriptionWrapper offer = connection_flow->CreateOffer();
if (!offer.IsValid()) {
NEARBY_LOG(INFO,
"Unable to send offer. Failed to create our offer locally.");
RemoveConnectionFlow(remote_peer_id);
return;
}
const webrtc::SessionDescriptionInterface& sdp = offer.GetSdp();
if (!connection_flow->SetLocalSessionDescription(std::move(offer))) {
NEARBY_LOG(INFO,
@@ -510,6 +517,13 @@ void WebRtc::SendAnswer(const PeerId& remote_peer_id) {
}
SessionDescriptionWrapper answer = entry->second->CreateAnswer();
if (!answer.IsValid()) {
NEARBY_LOG(INFO,
"Unable to send answer. Failed to create our answer locally.");
RemoveConnectionFlow(remote_peer_id);
return;
}
const webrtc::SessionDescriptionInterface& sdp = answer.GetSdp();
if (!entry->second->SetLocalSessionDescription(std::move(answer))) {
NEARBY_LOG(INFO,