Home
last modified time | relevance | path

Searched refs:ip_address (Results 1 – 18 of 18) sorted by relevance

/external/chromium/net/proxy/
Dproxy_resolver_js_bindings_unittest.cc120 std::string ip_address; in TEST() local
125 EXPECT_FALSE(bindings->DnsResolve("", &ip_address)); in TEST()
129 EXPECT_TRUE(bindings->DnsResolve("google.com", &ip_address)); in TEST()
130 EXPECT_EQ("192.168.1.1", ip_address); in TEST()
134 EXPECT_FALSE(bindings->DnsResolve("fail", &ip_address)); in TEST()
199 std::string ip_address; in TEST() local
201 EXPECT_TRUE(bindings->MyIpAddress(&ip_address)); in TEST()
202 EXPECT_EQ("192.168.1.2", ip_address); // IPv4 restricted. in TEST()
204 EXPECT_TRUE(bindings->DnsResolve("foo", &ip_address)); in TEST()
205 EXPECT_EQ("192.168.1.1", ip_address); // IPv4 restricted. in TEST()
[all …]
Dproxy_resolver_v8.cc307 bool IsInNetEx(const std::string& ip_address, const std::string& ip_prefix) { in IsInNetEx() argument
309 if (!ParseIPLiteralToNumber(ip_address, &address)) in IsInNetEx()
605 std::string ip_address; in DnsResolveCallback() local
610 success = context->js_bindings_->DnsResolve(hostname, &ip_address); in DnsResolveCallback()
613 return success ? ASCIIStringToV8String(ip_address) : v8::Null(); in DnsResolveCallback()
664 std::string ip_address = V8StringToUTF8(args[0]->ToString()); in IsInNetExCallback() local
665 if (!IsStringASCII(ip_address)) in IsInNetExCallback()
670 return IsInNetEx(ip_address, ip_prefix) ? v8::True() : v8::False(); in IsInNetExCallback()
Dproxy_resolver_v8_unittest.cc33 virtual bool MyIpAddress(std::string* ip_address) { in MyIpAddress() argument
35 *ip_address = my_ip_address_result; in MyIpAddress()
45 virtual bool DnsResolve(const std::string& host, std::string* ip_address) { in DnsResolve() argument
47 *ip_address = dns_resolve_result; in DnsResolve()
/external/chromium/net/base/
Dip_endpoint_unittest.cc25 IPAddressNumber ip_address; member
40 &tests[index].ip_address)); in SetUp()
50 IPEndPoint endpoint(tests[index].ip_address, 80); in TEST_F()
52 EXPECT_EQ(tests[index].ip_address, endpoint.address()); in TEST_F()
58 IPEndPoint src(tests[index].ip_address, index); in TEST_F()
68 IPEndPoint src(tests[index].ip_address, index); in TEST_F()
78 IPEndPoint ip_endpoint(tests[index].ip_address, index); in TEST_F()
102 IPEndPoint ip_endpoint(tests[index].ip_address, index); in TEST_F()
113 IPEndPoint src(tests[index].ip_address, index); in TEST_F()
121 IPEndPoint ip_endpoint1(tests[0].ip_address, 100); in TEST_F()
[all …]
Daddress_list_unittest.cc179 std::string ip_address; in TEST() member
193 LOG(WARNING) << "Unable to resolve ip literal '" << tests[i].ip_address in TEST()
201 ParseIPLiteralToNumber(tests[i].ip_address, &ip_number); in TEST()
220 std::string ip_address; in TEST() member
234 LOG(WARNING) << "Unable to resolve ip literal '" << tests[i].ip_address in TEST()
/external/chromium/chrome/browser/chromeos/net/
Dnetwork_change_notifier_chromeos.cc47 network->ip_address() != ip_address_))) { in UpdateNetworkState()
58 ip_address_ = network->ip_address(); in UpdateNetworkState()
/external/chromium/net/socket/
Dssl_server_socket_unittest.cc147 net::IPAddressNumber ip_address(4); in GetPeerAddress() local
148 *address = net::AddressList(ip_address, 0, false); in GetPeerAddress()
153 net::IPAddressNumber ip_address(4); in GetLocalAddress() local
154 *address = net::IPEndPoint(ip_address, 0); in GetLocalAddress()
/external/chromium/chrome/browser/safe_browsing/
Dclient_side_detection_service.cc133 const std::string& ip_address) const { in IsPrivateIPAddress()
135 if (!net::ParseIPLiteralToNumber(ip_address, &ip_number)) { in IsPrivateIPAddress()
136 DLOG(WARNING) << "Unable to parse IP address: " << ip_address; in IsPrivateIPAddress()
Dclient_side_detection_service.h100 virtual bool IsPrivateIPAddress(const std::string& ip_address) const;
/external/chromium/chrome/browser/chromeos/status/
Dnetwork_menu.h42 std::string ip_address; member
Dnetwork_menu.cc781 std::string ip_address = cros->IPAddress(); in InitMenuItems() local
782 if (!ip_address.empty()) { in InitMenuItems()
/external/chromium/chrome/browser/resources/
Dnetwork_menu.js272 this.setStatus_(attrs.ip_address);
/external/chromium/chrome/browser/automation/
Dtesting_automation_provider_chromeos.cc40 item->SetString("ip_address", network->ip_address()); in GetNetworkInfoDict()
/external/chromium/chrome/browser/chromeos/cros/
Dnetwork_library.h281 const std::string& ip_address() const { return ip_address_; } in ip_address() function
Dnetwork_library.cc2337 return result->ip_address(); in IPAddress()
/external/chromium/chrome/browser/
Dbrowser_about_handler.cc457 str += WrapWithTD(network->ip_address()); in ToHtmlTableRow()
/external/libmtp/src/
Dptp.h1047 uint32_t ip_address; member
Dptp.c2280 test.ip_address = 10 + 11 << 16 + 11 << 24; in ptp_nikon_getwifiprofilelist()
2352 *((unsigned int*)&buffer[0x3A]) = profile->ip_address; /* Do not reverse bytes */ in ptp_nikon_writewifiprofile()