mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
BEGIN_PUBLIC
Microsoft has updated the winrt library END_PUBLC PiperOrigin-RevId: 387168248
This commit is contained in:
@@ -20,9 +20,9 @@
|
||||
#include <vector>
|
||||
|
||||
#include "proto/connections/offline_wire_formats.pb.h"
|
||||
#include "platform/base/byte_array.h"
|
||||
#include "gmock/gmock.h"
|
||||
#include "gtest/gtest.h"
|
||||
#include "platform/base/byte_array.h"
|
||||
|
||||
namespace location {
|
||||
namespace nearby {
|
||||
@@ -92,10 +92,7 @@ TEST(OfflineFramesTest, CanGenerateConnectionRequest) {
|
||||
endpoint_name: "XYZ"
|
||||
endpoint_info: "XYZ"
|
||||
nonce: 1234
|
||||
medium_metadata: <
|
||||
supports_5_ghz: true
|
||||
bssid: "FF:FF:FF:FF:FF:FF"
|
||||
>
|
||||
medium_metadata: < supports_5_ghz: true bssid: "FF:FF:FF:FF:FF:FF" >
|
||||
mediums: MDNS
|
||||
mediums: BLUETOOTH
|
||||
mediums: WIFI_HOTSPOT
|
||||
@@ -106,7 +103,7 @@ TEST(OfflineFramesTest, CanGenerateConnectionRequest) {
|
||||
mediums: WIFI_DIRECT
|
||||
mediums: WEB_RTC
|
||||
keep_alive_interval_millis: 1000
|
||||
keep_alive_timeout_millis : 5000
|
||||
keep_alive_timeout_millis: 5000
|
||||
>
|
||||
>)pb";
|
||||
ByteArray bytes = ForConnectionRequest(
|
||||
@@ -126,10 +123,7 @@ TEST(OfflineFramesTest, CanGenerateConnectionResponse) {
|
||||
version: V1
|
||||
v1: <
|
||||
type: CONNECTION_RESPONSE
|
||||
connection_response: <
|
||||
status: 1
|
||||
response: REJECT
|
||||
>
|
||||
connection_response: < status: 1 response: REJECT >
|
||||
>)pb";
|
||||
ByteArray bytes = ForConnectionResponse(1);
|
||||
auto response = FromBytes(bytes);
|
||||
|
||||
Reference in New Issue
Block a user