From 3375ae5d18f4ccb64b5b5068cdf0f9f969b98ba2 Mon Sep 17 00:00:00 2001 From: hai007 Date: Wed, 25 Sep 2024 04:59:08 -0700 Subject: [PATCH] [Sharing] Add WEB_RTC_NON_CELLULAR to upgrade mediums. PiperOrigin-RevId: 678650934 --- connections/implementation/fake_bwu_handler.h | 1 + connections/implementation/proto/offline_wire_formats.proto | 1 + proto/connections_enums.proto | 1 + 3 files changed, 3 insertions(+) diff --git a/connections/implementation/fake_bwu_handler.h b/connections/implementation/fake_bwu_handler.h index 48a7e15ed0..6f9aaa910f 100644 --- a/connections/implementation/fake_bwu_handler.h +++ b/connections/implementation/fake_bwu_handler.h @@ -137,6 +137,7 @@ class FakeBwuHandler : public BaseBwuHandler { return parser::ForBwuWifiLanPathAvailable(/*ip_address=*/"ABCD", /*port=*/1234); case location::nearby::proto::connections::WEB_RTC: + case location::nearby::proto::connections::WEB_RTC_NON_CELLULAR: return parser::ForBwuWebrtcPathAvailable( /*peer_id=*/"peer-id", location::nearby::connections::LocationHint{}); diff --git a/connections/implementation/proto/offline_wire_formats.proto b/connections/implementation/proto/offline_wire_formats.proto index 7cdc2cb92a..dddafcc398 100644 --- a/connections/implementation/proto/offline_wire_formats.proto +++ b/connections/implementation/proto/offline_wire_formats.proto @@ -84,6 +84,7 @@ message ConnectionRequestFrame { WEB_RTC = 9; BLE_L2CAP = 10; USB = 11; + WEB_RTC_NON_CELLULAR = 12; } // LINT.ThenChange(//depot/google3/third_party/nearby/proto/connections_enums.proto) diff --git a/proto/connections_enums.proto b/proto/connections_enums.proto index 68645f1397..7128f7e71e 100644 --- a/proto/connections_enums.proto +++ b/proto/connections_enums.proto @@ -89,6 +89,7 @@ enum Medium { WEB_RTC = 9; BLE_L2CAP = 10; USB = 11; + WEB_RTC_NON_CELLULAR = 12; } // LINT.ThenChange( // //depot/google3/java/com/google/android/gmscore/integ/client/nearby/src/com/google/android/gms/nearby/connection/Medium.java,