Lines Matching refs:Uuid
24 using bluetooth::hci::Uuid;
26 static const Uuid ONES = Uuid::From128BitBE(
27 …Uuid::UUID128Bit{{0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x…
29 static const Uuid SEQUENTIAL = Uuid::From128BitBE(
30 …Uuid::UUID128Bit{{0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef, 0xab, 0xcd, 0xef, 0x01, 0x23, 0x…
32 static const Uuid kBase = Uuid::From128BitBE(
33 …Uuid::UUID128Bit{{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x80, 0x00, 0x00, 0x80, 0x5f, 0x…
36 ASSERT_TRUE(Uuid::kEmpty.IsEmpty()); in TEST()
41 ASSERT_TRUE(Uuid::kNumBytes16 == kBase.GetShortestRepresentationSize()); in TEST()
42 ASSERT_TRUE(Uuid::kNumBytes32 == Uuid::From32Bit(0x01234567).GetShortestRepresentationSize()); in TEST()
43 ASSERT_TRUE(Uuid::kNumBytes128 == Uuid::kEmpty.GetShortestRepresentationSize()); in TEST()
58 ASSERT_EQ((uint32_t)0x12345678, Uuid::From32Bit(0x12345678).As32Bit()); in TEST()
65 auto uuid = Uuid::FromString("1ae8"); in TEST()
71 ASSERT_EQ(Uuid::From16Bit(0x0000), kBase); in TEST()
74 Uuid uuid = Uuid::From16Bit(0x0001); in TEST()
78 uuid = Uuid::From16Bit(0x553e); in TEST()
82 uuid = Uuid::From16Bit(0xffff); in TEST()
87 ASSERT_EQ(Uuid::From32Bit(0x00000000), kBase); in TEST()
90 Uuid uuid = Uuid::From32Bit(0x00000001); in TEST()
94 uuid = Uuid::From32Bit(0x3344553e); in TEST()
98 uuid = Uuid::From32Bit(0xffffffff); in TEST()
109 ASSERT_EQ(UUID_EMP_STR, Uuid::kEmpty.ToString()); in TEST()
113 Uuid uuid = Uuid::From32Bit(0x12345678); in TEST()
119 auto uuid = Uuid::FromString("e39c6285-867f-4b1d-9db0-35fbd9aebf22"); in TEST()
124 uuid = Uuid::FromString("1Ae8"); in TEST()
129 uuid = Uuid::FromString("12341128"); in TEST()
135 ASSERT_FALSE(Uuid::FromString("This is not a UUID")); in TEST()
136 ASSERT_FALSE(Uuid::FromString("11212")); in TEST()
137 ASSERT_FALSE(Uuid::FromString("1121 ")); in TEST()
138 ASSERT_FALSE(Uuid::FromString("AGFE")); in TEST()
139 ASSERT_FALSE(Uuid::FromString("ABFG")); in TEST()
140 ASSERT_FALSE(Uuid::FromString("e39c6285867f14b1d9db035fbd9aebf22")); in TEST()
141 ASSERT_FALSE(Uuid::FromString("12234567-89ab-cdef-abcd-ef01234567ZZ")); in TEST()