mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Fix the build
Change-Id: Ied63786e8f73cec805123031c26886295f086691 Signed-off-by: Alexey Polyudov <apolyudov@google.com>
This commit is contained in:
@@ -47,16 +47,6 @@ const std::int64_t
|
||||
SamplePlatform>::kAdvertisementBaseBackoffDurationMillis =
|
||||
ToInt64Milliseconds(kAdvertisementBaseBackoffDuration);
|
||||
|
||||
template<>
|
||||
const std::int64_t AdvertisementReadResult<
|
||||
SamplePlatform>::kAdvertisementBaseBackoffDurationMillis =
|
||||
absl::ToInt64Milliseconds(kAdvertisementBaseBackoffDuration);
|
||||
|
||||
template<>
|
||||
const std::int64_t AdvertisementReadResult<
|
||||
SamplePlatform>::kAdvertisementMaxBackoffDurationMillis =
|
||||
absl::ToInt64Milliseconds(kAdvertisementMaxBackoffDuration);
|
||||
|
||||
TEST(AdvertisementReadResultTest, AdvertisementExists) {
|
||||
AdvertisementReadResult<SamplePlatform> advertisement_read_result;
|
||||
advertisement_read_result.recordLastReadStatus(/* is_success= */ true);
|
||||
|
||||
@@ -47,7 +47,7 @@ constexpr ConnectionRequestFrame::Medium ToConnectionRequestMedium(
|
||||
TEST(OfflineFramesTest, CanParseMessageFromBytes) {
|
||||
const string endpoint_id{"ABC"};
|
||||
const string endpoint_name{"XYZ"};
|
||||
const int32 nonce{1234};
|
||||
const int nonce{1234};
|
||||
const std::vector<proto::connections::Medium> mediums{Medium::BLE,
|
||||
Medium::BLUETOOTH};
|
||||
|
||||
|
||||
@@ -66,9 +66,9 @@ class WifiLanServiceInfo {
|
||||
// The maximum length for endpoint id in encrypted WifiLanServiceInfo string.
|
||||
static constexpr int kMaxEndpointNameLength = 131;
|
||||
|
||||
static constexpr uint16 kVersionBitmask = 0x0E0;
|
||||
static constexpr uint16 kPcpBitmask = 0x01F;
|
||||
static constexpr uint16 kVersionShift = 5;
|
||||
static constexpr int kVersionBitmask = 0x0E0;
|
||||
static constexpr int kPcpBitmask = 0x01F;
|
||||
static constexpr int kVersionShift = 5;
|
||||
|
||||
WifiLanServiceInfo(Version version, PCP::Value pcp,
|
||||
absl::string_view endpoint_id,
|
||||
|
||||
@@ -49,7 +49,7 @@ ByteArray Base64Utils::decode(absl::string_view base64_string) {
|
||||
return ByteArray(decoded_string);
|
||||
}
|
||||
|
||||
Ptr<ByteArray> Base64Utils::decode(const std::string& base64_string) {
|
||||
Ptr<ByteArray> Base64Utils::decode(absl::string_view base64_string) {
|
||||
return decode<Ptr<ByteArray>>(base64_string);
|
||||
}
|
||||
|
||||
|
||||
@@ -16,8 +16,8 @@ class Base64Utils {
|
||||
static std::string encode(ConstPtr<ByteArray> bytes);
|
||||
|
||||
template <typename T>
|
||||
static T decode(const std::string& base64_string);
|
||||
static Ptr<ByteArray> decode(const std::string& base64_string);
|
||||
static T decode(absl::string_view base64_string);
|
||||
static Ptr<ByteArray> decode(absl::string_view base64_string);
|
||||
};
|
||||
|
||||
} // namespace nearby
|
||||
|
||||
Reference in New Issue
Block a user