mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
[BLE Refactor] Implement CreateAdvertisementHeader in BleV2 medium.
PiperOrigin-RevId: 429550598
This commit is contained in:
committed by
Copybara-Service
parent
ca172feb55
commit
8326aeef38
@@ -87,4 +87,12 @@ TEST(ByteArrayTest, CreateFromNonNullTerminatedStdArray) {
|
||||
EXPECT_EQ(std::string(bytes), std::string(data.data(), data.size()));
|
||||
}
|
||||
|
||||
TEST(ByteArrayTest, CreateFromAbslStringReturnsTheSame) {
|
||||
const absl::string_view kTestString = "Test String";
|
||||
ByteArray bytes{std::string(kTestString)};
|
||||
|
||||
EXPECT_EQ(bytes.size(), kTestString.size());
|
||||
EXPECT_EQ(bytes.AsStringView(), kTestString);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user