Searched refs:IsPrivateIPAddress (Results 1 - 5 of 5) sorted by relevance

/external/chromium_org/chrome/browser/safe_browsing/
H A Dclient_side_detection_service_unittest.cc523 TEST_F(ClientSideDetectionServiceTest, IsPrivateIPAddress) {
528 EXPECT_TRUE(csd_service_->IsPrivateIPAddress("10.1.2.3"));
529 EXPECT_TRUE(csd_service_->IsPrivateIPAddress("127.0.0.1"));
530 EXPECT_TRUE(csd_service_->IsPrivateIPAddress("172.24.3.4"));
531 EXPECT_TRUE(csd_service_->IsPrivateIPAddress("192.168.1.1"));
532 EXPECT_TRUE(csd_service_->IsPrivateIPAddress("fc00::"));
533 EXPECT_TRUE(csd_service_->IsPrivateIPAddress("fec0::"));
534 EXPECT_TRUE(csd_service_->IsPrivateIPAddress("fec0:1:2::3"));
535 EXPECT_TRUE(csd_service_->IsPrivateIPAddress("::1"));
537 EXPECT_FALSE(csd_service_->IsPrivateIPAddress("1.
[all...]
H A Dclient_side_detection_service.h124 virtual bool IsPrivateIPAddress(const std::string& ip_address) const;
H A Dclient_side_detection_host_unittest.cc122 MOCK_CONST_METHOD1(IsPrivateIPAddress, bool(const std::string&));
271 EXPECT_CALL(*csd_service_, IsPrivateIPAddress(_))
895 // need to manually set up the IsPrivateIPAddress mock since if the same mock
898 EXPECT_CALL(*csd_service_, IsPrivateIPAddress(_))
937 EXPECT_CALL(*csd_service_, IsPrivateIPAddress(_)).Times(0);
1002 // If IsPrivateIPAddress returns true, no IPC should be triggered.
H A Dclient_side_detection_host.cc103 if (csd_service_->IsPrivateIPAddress(params_.socket_address.host())) {
H A Dclient_side_detection_service.cc187 bool ClientSideDetectionService::IsPrivateIPAddress( function in class:safe_browsing::ClientSideDetectionService

Completed in 108 milliseconds