[BLE Refactor] Tune BleAdvertisement, BleAdvertisementHeader, BlePeripheral, AdvertisementReadResult, BleUtils.

PiperOrigin-RevId: 439365106
This commit is contained in:
edwinwu
2022-04-04 11:19:24 -07:00
committed by Copybara-Service
parent 7eded6c621
commit 0747c0a349
21 changed files with 411 additions and 135 deletions
+10
View File
@@ -17,6 +17,7 @@
#include <cstring>
#include "gtest/gtest.h"
#include "absl/hash/hash_testing.h"
namespace {
@@ -95,4 +96,13 @@ TEST(ByteArrayTest, CreateFromAbslStringReturnsTheSame) {
EXPECT_EQ(bytes.AsStringView(), kTestString);
}
TEST(ByteArrayTest, Hash) {
EXPECT_TRUE(absl::VerifyTypeImplementsAbslHashCorrectly({
ByteArray(),
ByteArray("12345"),
ByteArray("ABCDE"),
ByteArray("A1B2Z"),
}));
}
} // namespace