mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 14:46:12 -04:00
Set safe disconnection version to correct value
PiperOrigin-RevId: 561842110
This commit is contained in:
committed by
Copybara-Service
parent
16c6ef924b
commit
b7628b098b
@@ -16,6 +16,7 @@
|
||||
#define THIRD_PARTY_NEARBY_CONNECTIONS_IMPLEMENTATION_FLAGS_NEARBY_CONNECTIONS_FEATURE_FLAGS_H_
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
#include "absl/strings/string_view.h"
|
||||
#include "internal/flags/flag.h"
|
||||
|
||||
@@ -52,10 +53,10 @@ constexpr auto kEnableSafeToDisconnect =
|
||||
constexpr auto kEnablePayloadReceivedAck =
|
||||
flags::Flag<bool>(kConfigPackage, "45425840", false);
|
||||
|
||||
// Support 1. safe-to-disconnect 2. reserved 3. auto-reconnect
|
||||
// Support 0. disabled all. 1. safe-to-disconnect 2. reserved 3. auto-reconnect
|
||||
// 4. auto-resume for dev device 5. payload_ack
|
||||
constexpr auto kSafeToDisconnectVersion =
|
||||
flags::Flag<int64_t>(kConfigPackage, "45425841", 2);
|
||||
flags::Flag<int64_t>(kConfigPackage, "45425841", 0);
|
||||
|
||||
} // namespace nearby_connections_feature
|
||||
} // namespace config_package_nearby
|
||||
|
||||
@@ -269,7 +269,7 @@ TEST(OfflineFramesTest, CanGenerateConnectionResponse) {
|
||||
status: 1
|
||||
response: REJECT
|
||||
os_info { type: LINUX }
|
||||
safe_to_disconnect_version: 2
|
||||
safe_to_disconnect_version: 0
|
||||
>
|
||||
>)pb";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user