• Home
  • Raw
  • Download

Lines Matching refs:Address

26 using bluetooth::hci::Address;
32 Address bdaddr({0x12, 0x34, 0x56, 0x78, 0x9a, 0xbc}); in TEST()
47 Address empty; in TEST()
48 Address::FromString("00:00:00:00:00:00", empty); in TEST()
51 Address not_empty; in TEST()
52 Address::FromString("00:00:00:00:00:01", not_empty); in TEST()
57 Address bdaddr; in TEST()
58 Address::FromString(test_addr, bdaddr); in TEST()
75 Address bdaddr; in TEST()
76 size_t expected_result = Address::kLength; in TEST()
92 Address bdaddr1; in TEST()
93 Address bdaddr2; in TEST()
94 Address bdaddr3; in TEST()
95 Address::FromString(test_addr, bdaddr1); in TEST()
96 Address::FromString(test_addr, bdaddr2); in TEST()
102 Address::FromString(test_addr2, bdaddr3); in TEST()
108 Address bdaddr1; in TEST()
109 Address bdaddr2; in TEST()
110 Address bdaddr3; in TEST()
111 Address::FromString(test_addr, bdaddr1); in TEST()
112 Address::FromString(test_addr, bdaddr2); in TEST()
116 Address::FromString(test_addr2, bdaddr3); in TEST()
122 Address bdaddr1; in TEST()
123 Address bdaddr2; in TEST()
124 Address bdaddr3; in TEST()
125 Address::FromString(test_addr, bdaddr1); in TEST()
126 Address::FromString(test_addr, bdaddr2); in TEST()
130 Address::FromString(test_addr2, bdaddr3); in TEST()
136 Address bdaddr1; in TEST()
137 Address bdaddr2; in TEST()
138 Address bdaddr3; in TEST()
139 Address::FromString(test_addr, bdaddr1); in TEST()
140 Address::FromString(test_addr, bdaddr2); in TEST()
144 Address::FromString(test_addr2, bdaddr3); in TEST()
150 Address bdaddr1; in TEST()
151 Address bdaddr2; in TEST()
152 Address bdaddr3; in TEST()
153 Address::FromString(test_addr, bdaddr1); in TEST()
154 Address::FromString(test_addr, bdaddr2); in TEST()
158 Address::FromString(test_addr2, bdaddr3); in TEST()
164 Address bdaddr1; in TEST()
165 Address bdaddr2; in TEST()
166 Address::FromString(test_addr, bdaddr1); in TEST()
173 ASSERT_FALSE(Address::IsValidAddress("")); in TEST()
174 ASSERT_FALSE(Address::IsValidAddress("000000000000")); in TEST()
175 ASSERT_FALSE(Address::IsValidAddress("00:00:00:00:0000")); in TEST()
176 ASSERT_FALSE(Address::IsValidAddress("00:00:00:00:00:0")); in TEST()
177 ASSERT_FALSE(Address::IsValidAddress("00:00:00:00:00:0;")); in TEST()
178 ASSERT_TRUE(Address::IsValidAddress("00:00:00:00:00:00")); in TEST()
179 ASSERT_TRUE(Address::IsValidAddress("AB:cd:00:00:00:00")); in TEST()
180 ASSERT_FALSE(Address::IsValidAddress("aB:cD:eF:Gh:iJ:Kl")); in TEST()
184 Address addr = {}; in TEST()
186 ASSERT_TRUE(Address::FromString("00:00:00:00:00:00", addr)); in TEST()
187 const Address result0 = {{0x00, 0x00, 0x00, 0x00, 0x00, 0x00}}; in TEST()
188 ASSERT_EQ(0, memcmp(addr.data(), result0.data(), Address::kLength)); in TEST()
190 ASSERT_TRUE(Address::FromString("ab:01:4C:d5:21:9f", addr)); in TEST()
191 const Address result1 = {{0x9f, 0x21, 0xd5, 0x4c, 0x01, 0xab}}; in TEST()
195 ASSERT_EQ(0, memcmp(addr.data(), result1.data(), Address::kLength)); in TEST()
200 Address addr; in TEST()
202 ASSERT_TRUE(Address::FromString(address, addr)); in TEST()
207 Address addr1{{0x01, 0x02, 0x03, 0x04, 0x05, 0x06}}; in TEST()
208 Address addr2{{0x01, 0x02, 0x03, 0x04, 0x05, 0x06}}; in TEST()
210 struct std::hash<bluetooth::hci::Address> hasher; in TEST()
214 std::unordered_map<Address, int> data = {}; in TEST()
221 Address addr1{{0x01, 0x02, 0x03, 0x04, 0x05, 0x06}}; in TEST()
222 struct std::hash<Address> hasher; in TEST()
223 ASSERT_NE(hasher(addr1), hasher(Address::kEmpty)); in TEST()
227 Address addr1{{0x01, 0x02, 0x03, 0x04, 0x05, 0x06}}; in TEST()
228 struct std::hash<Address> hasher; in TEST()
229 ASSERT_NE(hasher(addr1), hasher(Address::kAny)); in TEST()
233 struct std::hash<Address> hasher; in TEST()
234 ASSERT_NE(hasher(Address::kEmpty), hasher(Address::kAny)); in TEST()