From 0dd8d5c8ebb21e2113d940136abf771768606865 Mon Sep 17 00:00:00 2001 From: Johnson Lu Date: Thu, 26 Sep 2024 19:27:05 -0700 Subject: [PATCH] Add WEB_RTC_NON_CELLULAR enum PiperOrigin-RevId: 679384625 --- connections/implementation/fake_bwu_handler.h | 1 + connections/implementation/proto/offline_wire_formats.proto | 3 +++ proto/connections_enums.proto | 1 + 3 files changed, 5 insertions(+) diff --git a/connections/implementation/fake_bwu_handler.h b/connections/implementation/fake_bwu_handler.h index 48a7e15e..6f9aaa91 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 7cdc2cb9..f4a68e14 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) @@ -237,6 +238,7 @@ message BandwidthUpgradeNegotiationFrame { WEB_RTC = 9; // 10 is reserved. USB = 11; + WEB_RTC_NON_CELLULAR = 12; } // Accompanies Medium.WIFI_HOTSPOT. @@ -346,6 +348,7 @@ message BandwidthUpgradeRetryFrame { 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 68645f13..7128f7e7 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,