Home
last modified time | relevance | path

Searched refs:Equals (Results 1 – 25 of 57) sorted by relevance

123

/system/connectivity/shill/
Darp_packet_unittest.cc91 EXPECT_TRUE(ipv4_address0_.Equals(packet_.local_ip_address())); in TEST_F()
92 EXPECT_TRUE(ipv6_address1_.Equals(packet_.remote_ip_address())); in TEST_F()
93 EXPECT_TRUE(mac_address0_.Equals(packet_.local_mac_address())); in TEST_F()
94 EXPECT_TRUE(mac_address1_.Equals(packet_.remote_mac_address())); in TEST_F()
187 EXPECT_TRUE(ipv4_address0_.Equals(packet_.local_ip_address())); in TEST_F()
188 EXPECT_TRUE(ipv4_address1_.Equals(packet_.remote_ip_address())); in TEST_F()
189 EXPECT_TRUE(mac_address0_.Equals(packet_.local_mac_address())); in TEST_F()
190 EXPECT_TRUE(mac_address1_.Equals(packet_.remote_mac_address())); in TEST_F()
205 EXPECT_TRUE(ipv6_address0_.Equals(packet_.local_ip_address())); in TEST_F()
206 EXPECT_TRUE(ipv6_address1_.Equals(packet_.remote_ip_address())); in TEST_F()
[all …]
Dconnection_info_unittest.cc46 .Equals(info2.original_source_ip_address())); in ExpectConnectionInfoEqual()
49 .Equals(info2.original_destination_ip_address())); in ExpectConnectionInfoEqual()
53 .Equals(info2.reply_source_ip_address())); in ExpectConnectionInfoEqual()
56 .Equals(info2.reply_destination_ip_address())); in ExpectConnectionInfoEqual()
Drouting_table_entry.h116 bool Equals(const RoutingTableEntry& b) { in Equals() function
117 return (dst.Equals(b.dst) && in Equals()
118 src.Equals(b.src) && in Equals()
119 gateway.Equals(b.gateway) && in Equals()
Dsocket_info_reader_unittest.cc100 EXPECT_TRUE(info1.local_ip_address().Equals(info2.local_ip_address())); in ExpectSocketInfoEqual()
102 EXPECT_TRUE(info1.remote_ip_address().Equals(info2.remote_ip_address())); in ExpectSocketInfoEqual()
277 EXPECT_TRUE(ip_address.Equals( in TEST_F()
283 EXPECT_TRUE(ip_address.Equals(StringToIPv6Address(kIPv6AddressPattern1))); in TEST_F()
298 EXPECT_TRUE(ip_address.Equals(StringToIPv4Address(kIPv4AddressAllZeros))); in TEST_F()
301 EXPECT_TRUE(ip_address.Equals(StringToIPv4Address(kIPv4Address_127_0_0_1))); in TEST_F()
304 EXPECT_TRUE(ip_address.Equals( in TEST_F()
308 EXPECT_TRUE(ip_address.Equals( in TEST_F()
313 EXPECT_TRUE(ip_address.Equals(StringToIPv6Address(kIPv6AddressAllZeros))); in TEST_F()
317 EXPECT_TRUE(ip_address.Equals(StringToIPv6Address(kIPv6AddressPattern1))); in TEST_F()
[all …]
Dconnection_info_reader_unittest.cc88 .Equals(info2.original_source_ip_address())); in ExpectConnectionInfoEqual()
91 .Equals(info2.original_destination_ip_address())); in ExpectConnectionInfoEqual()
95 .Equals(info2.reply_source_ip_address())); in ExpectConnectionInfoEqual()
98 .Equals(info2.reply_destination_ip_address())); in ExpectConnectionInfoEqual()
216 EXPECT_TRUE(ip_address.Equals(StringToIPv4Address("192.168.1.1"))); in TEST_F()
220 EXPECT_TRUE(ip_address.Equals(StringToIPv4Address("192.168.1.2"))); in TEST_F()
Darp_client_unittest.cc108 destination_mac.Equals(socket_mac);
113 byte_data.GetLength()).Equals(byte_data);
250 EXPECT_TRUE(reply.local_ip_address().Equals(packet.local_ip_address())); in TEST_F()
251 EXPECT_TRUE(reply.local_mac_address().Equals(packet.local_mac_address())); in TEST_F()
252 EXPECT_TRUE(reply.remote_ip_address().Equals(packet.remote_ip_address())); in TEST_F()
253 EXPECT_TRUE(reply.remote_mac_address().Equals(packet.remote_mac_address())); in TEST_F()
255 sender.Equals(ByteString(kSenderBytes, arraysize(kSenderBytes)))); in TEST_F()
Dsocket_info.cc77 return (local_ip_address_.Equals(socket_info.local_ip_address_) && in IsSameSocketAs()
79 remote_ip_address_.Equals(socket_info.remote_ip_address_) && in IsSameSocketAs()
Dactive_link_monitor.cc250 if (!connection_->local().address().Equals( in ReceiveResponse()
256 if (!local_mac_address_.Equals(packet.remote_mac_address())) { in ReceiveResponse()
261 if (!connection_->gateway().address().Equals( in ReceiveResponse()
289 if (!gateway_mac_address_.Equals(packet.local_mac_address())) { in ReceiveResponse()
Dactive_link_monitor_unittest.cc101 if (local_ip.Equals(arg.local_ip_address()) &&
102 remote_ip.Equals(arg.remote_ip_address()) &&
103 local_mac.Equals(arg.local_mac_address()) &&
104 remote_mac.Equals(arg.remote_mac_address()))
107 if (!local_ip.Equals(arg.local_ip_address())) {
112 if (!remote_ip.Equals(arg.remote_ip_address())) {
117 if (!local_mac.Equals(arg.local_mac_address())) {
122 if (!remote_mac.Equals(arg.remote_mac_address())) {
Drouting_table_unittest.cc221 status.dst_prefix).Equals(entry.dst) &&
225 status.src_prefix).Equals(entry.src))) &&
228 arg->GetAttribute(RTA_GATEWAY)).Equals(entry.gateway))) &&
323 EXPECT_TRUE(entry0.Equals(test_entry)); in TEST_F()
337 EXPECT_TRUE(entry0.Equals(test_entry)); in TEST_F()
361 EXPECT_TRUE(entry1.Equals(test_entry)); in TEST_F()
374 EXPECT_TRUE(entry1.Equals(test_entry)); in TEST_F()
386 EXPECT_TRUE(entry2.Equals(test_entry)); in TEST_F()
392 EXPECT_TRUE(entry2.Equals(test_entry)); in TEST_F()
429 EXPECT_TRUE(entry3.Equals(test_entry)); in TEST_F()
[all …]
Dconnection_diagnostics.cc489 ReportResultAndStop(address.Equals(connection_->gateway()) in FindArpTableEntry()
580 Type event_type = address.Equals(connection_->gateway()) in PingHost()
751 if (!connection_->local().address().Equals( in OnArpReplyReceived()
757 if (!local_mac_address_.Equals(packet.remote_mac_address())) { in OnArpReplyReceived()
762 if (connection_->local().address().Equals( in OnArpReplyReceived()
802 if (!address.Equals(address_queried)) { in OnNeighborMsgReceived()
816 ReportResultAndStop(address_queried.Equals(connection_->gateway()) in OnNeighborMsgReceived()
825 ReportResultAndStop(address_queried.Equals(connection_->gateway()) in OnNeighborMsgReceived()
837 ReportResultAndStop(address_queried.Equals(connection_->gateway()) in OnNeighborTableRequestTimeout()
Dsocket_info_unittest.cc38 EXPECT_TRUE(info1.local_ip_address().Equals(info2.local_ip_address())); in ExpectSocketInfoEqual()
40 EXPECT_TRUE(info1.remote_ip_address().Equals(info2.remote_ip_address())); in ExpectSocketInfoEqual()
Dgeolocation_info.cc41 bool GeolocationInfo::Equals(const GeolocationInfo& info) const { in Equals() function in shill::GeolocationInfo
Dconnection_unittest.cc250 return match_address.Equals(arg);
255 return match_address.Equals(arg);
263 return dst.Equals(arg.dst);
309 EXPECT_TRUE(test_local_address.Equals(GetLocalAddress(connection_))); in TEST_F()
310 EXPECT_TRUE(gateway_address_.Equals(GetGatewayAddress(connection_))); in TEST_F()
429 EXPECT_TRUE(test_local_address.Equals(GetLocalAddress(connection))); in TEST_F()
430 EXPECT_TRUE(gateway_address_.Equals(GetGatewayAddress(connection))); in TEST_F()
494 EXPECT_TRUE(test_local_address.Equals(GetLocalAddress(connection_))); in TEST_F()
863 EXPECT_TRUE(gateway_backup.Equals(gateway)); in TEST_F()
879 EXPECT_TRUE(gateway_backup.Equals(gateway)); in TEST_F()
[all …]
Dgeolocation_info.h48 bool Equals(const GeolocationInfo& info) const;
Dhttp_request_unittest.cc78 return ip_address.Equals(arg);
82 return byte_string.Equals(arg);
86 return arg.Equals(callback);
266 EXPECT_TRUE(expected_response_.Equals(response_data)); in InvokeResultVerify()
Dconnection_diagnostics_unittest.cc74 return arg.Equals(ip_addr);
110 if (local_ip.Equals(arg.local_ip_address()) &&
111 remote_ip.Equals(arg.remote_ip_address()) &&
112 local_mac.Equals(arg.local_mac_address()) &&
113 remote_mac.Equals(arg.remote_mac_address())) {
117 if (!local_ip.Equals(arg.local_ip_address())) {
122 if (!remote_ip.Equals(arg.remote_ip_address())) {
127 if (!local_mac.Equals(arg.local_mac_address())) {
132 if (!remote_mac.Equals(arg.remote_mac_address())) {
Dlink_monitor_unittest.cc128 EXPECT_TRUE(monitor_.gateway_mac_address_.Equals(gateway_mac_address)); in VerifyGatewayMacAddress()
162 return mac_address.Equals(arg);
Drouting_table.cc165 if (old_entry->gateway.Equals(gateway_address)) { in SetDefaultRoute()
402 if (nent->dst.Equals(entry.dst) && in RouteMsgHandler()
403 nent->src.Equals(entry.src) && in RouteMsgHandler()
404 nent->gateway.Equals(entry.gateway) && in RouteMsgHandler()
/system/connectivity/shill/net/
Dbyte_string_unittest.cc86 EXPECT_FALSE(bs2.Equals(bs1)); in TEST_F()
98 EXPECT_FALSE(bs2.Equals(bs1)); in TEST_F()
99 EXPECT_FALSE(bs3.Equals(bs1)); in TEST_F()
103 EXPECT_TRUE(bs6.Equals(bs1)); in TEST_F()
119 EXPECT_TRUE(fragment.Equals(bs1.GetSubstring(3, 4))); in TEST_F()
122 EXPECT_TRUE(end_fragment.Equals(bs1.GetSubstring(kMargin, sizeof(kTest1)))); in TEST_F()
141 EXPECT_TRUE(bs1.Equals(bs2)); in TEST_F()
153 EXPECT_FALSE(bs1.Equals(bs3)); in TEST_F()
155 EXPECT_TRUE(bs1.Equals(bs3)); in TEST_F()
187 EXPECT_TRUE(bs1.Equals(ByteString(kTest1, sizeof(kTest1)))); in TEST_F()
[all …]
Dip_address_unittest.cc62 EXPECT_TRUE(good_addr.address().Equals(good_bytes)); in TestAddress()
68 EXPECT_TRUE(good_addr.Equals(good_addr_from_bytes)); in TestAddress()
75 EXPECT_FALSE(good_addr.Equals(bad_addr)); in TestAddress()
86 EXPECT_FALSE(bad_addr.Equals(bad_addr_from_bytes)); in TestAddress()
144 EXPECT_TRUE(addr4.address().Equals(ByteString(4))); in TEST_F()
154 EXPECT_TRUE(addr6.address().Equals(ByteString(16))); in TEST_F()
156 EXPECT_FALSE(addr4.Equals(addr6)); in TEST_F()
190 EXPECT_TRUE(kAddress1.Equals(address.address())); in TEST_F()
202 EXPECT_FALSE(address0.Equals(address1)); in TEST_F()
203 EXPECT_TRUE(address0.Equals(address2)); in TEST_F()
[all …]
Drtnl_message_unittest.cc410 EXPECT_TRUE(msg.GetAttribute(IFLA_ADDRESS).Equals(address)); in TestParseLink()
414 EXPECT_TRUE(msg.GetAttribute(IFLA_IFNAME).Equals(name)); in TestParseLink()
423 EXPECT_TRUE(msg.GetAttribute(IFLA_QDISC).Equals(qdisc)); in TestParseLink()
450 status.prefix_len).Equals(address)); in TestParseAddress()
482 status.dst_prefix).Equals(dst)); in TestParseRoute()
489 status.src_prefix).Equals(src)); in TestParseRoute()
495 msg.GetAttribute(RTA_GATEWAY)).Equals(gateway)); in TestParseRoute()
Dip_address.cc272 bool IPAddress::Equals(const IPAddress& b) const { in Equals() function in shill::IPAddress
273 return family_ == b.family_ && address_.Equals(b.address_) && in Equals()
278 return family_ == b.family_ && address_.Equals(b.address_); in HasSameAddressAs()
318 return GetNetworkPart().Equals(b_prefixed.GetNetworkPart()); in CanReachAddress()
Dbyte_string.h116 bool Equals(const ByteString& b) const;
/system/bt/service/common/bluetooth/
Dgatt_identifier.cpp133 bool GattIdentifier::Equals(const GattIdentifier& other) const { in Equals() function in bluetooth::GattIdentifier
145 return Equals(rhs); in operator ==()
149 return !Equals(rhs); in operator !=()

123