BEGIN_PUBLIC

Microsoft has updated the winrt library
END_PUBLC

PiperOrigin-RevId: 387168248
This commit is contained in:
hai007
2021-07-29 03:27:37 -07:00
committed by Janusz Sobczak
parent 09e65aeddb
commit b1815095dd
1579 changed files with 967 additions and 20157 deletions
+4 -10
View File
@@ -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);