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,
-1
View File
@@ -68,7 +68,6 @@ cc_library(
"byte_utils.h",
],
visibility = [
"//googlemac/iPhone/Shared/Nearby/Connections:__subpackages__",
"//core:__subpackages__",
"//platform/impl:__subpackages__",
"//platform/public:__pkg__",
+1 -5
View File
@@ -51,11 +51,7 @@ objc_library(
srcs = [
"platform.mm",
],
visibility = [
"//googlemac/iPhone/Shared/Nearby/Connections:__subpackages__",
"//core:__subpackages__",
"//platform:__subpackages__",
],
visibility = ["//platform:__subpackages__"],
deps = [
":types",
"//platform/api:comm",
-1
View File
@@ -96,7 +96,6 @@ cc_library(
"logging.h",
],
visibility = [
"//googlemac/iPhone/Shared/Nearby/Connections:__subpackages__",
"//core:__subpackages__",
"//platform:__subpackages__",
],