Lines Matching refs:gateway
102 properties_.gateway = kGatewayAddress0; in SetUp()
146 const IPAddress gateway) { in PinHostRoute() argument
147 return connection->PinHostRoute(trusted_ip, gateway); in PinHostRoute()
270 !arg.src.IsValid() && !arg.gateway.IsValid() &&
503 properties_.gateway = string(); in TEST_F()
795 IPAddress gateway(IPAddress::kFamilyIPv4); in TEST_F() local
799 EXPECT_FALSE(PinHostRoute(connection, trusted_ip, gateway)); in TEST_F()
802 ASSERT_TRUE(gateway.SetAddressFromString(kGateway)); in TEST_F()
805 EXPECT_FALSE(PinHostRoute(connection, trusted_ip, gateway)); in TEST_F()
814 IPAddress(gateway.family()))); in TEST_F()
821 EXPECT_FALSE(PinHostRoute(connection, trusted_ip, gateway)); in TEST_F()
827 EXPECT_TRUE(PinHostRoute(connection, trusted_ip, gateway)); in TEST_F()
840 IPAddress gateway(IPAddress::kFamilyIPv4); in TEST_F() local
846 local, &peer, &gateway, trusted_ip)); in TEST_F()
849 EXPECT_FALSE(gateway.IsValid()); in TEST_F()
853 ASSERT_TRUE(gateway.SetAddressFromString(kReachableGateway)); in TEST_F()
854 IPAddress gateway_backup(gateway); in TEST_F()
857 local, &peer, &gateway, trusted_ip)); in TEST_F()
863 EXPECT_TRUE(gateway_backup.Equals(gateway)); in TEST_F()
867 ASSERT_TRUE(gateway.SetAddressFromString(kRemoteGateway)); in TEST_F()
868 gateway_backup = gateway; in TEST_F()
871 IsLinkRouteTo(gateway))) in TEST_F()
874 local, &peer, &gateway, trusted_ip)); in TEST_F()
879 EXPECT_TRUE(gateway_backup.Equals(gateway)); in TEST_F()
883 IsLinkRouteTo(gateway))) in TEST_F()
886 local, &peer, &gateway, trusted_ip)); in TEST_F()
892 ASSERT_TRUE(gateway.SetAddressFromString(kUnreachableGateway)); in TEST_F()
893 gateway_backup = gateway; in TEST_F()
896 local, &peer, &gateway, trusted_ip)); in TEST_F()
898 EXPECT_TRUE(peer.Equals(gateway)); in TEST_F()
899 EXPECT_TRUE(gateway_backup.Equals(gateway)); in TEST_F()
903 ASSERT_TRUE(gateway.SetAddressFromString(kReachableGateway)); in TEST_F()
905 local, &peer, &gateway, trusted_ip)); in TEST_F()
907 EXPECT_FALSE(peer.Equals(gateway)); in TEST_F()
912 ASSERT_TRUE(gateway.SetAddressFromString(kUnreachableGateway)); in TEST_F()
917 local, &peer, &gateway, trusted_ip)); in TEST_F()
919 EXPECT_TRUE(gateway.IsDefault()); in TEST_F()