Home | History | Annotate | Download | only in vpn

Lines Matching refs:SplitPortFromHost

565 TEST_F(OpenVPNDriverTest, SplitPortFromHost) {
567 EXPECT_FALSE(OpenVPNDriver::SplitPortFromHost("", nullptr, nullptr));
568 EXPECT_FALSE(OpenVPNDriver::SplitPortFromHost("", &name, &port));
569 EXPECT_FALSE(OpenVPNDriver::SplitPortFromHost("v.com", &name, &port));
570 EXPECT_FALSE(OpenVPNDriver::SplitPortFromHost("v.com:", &name, &port));
571 EXPECT_FALSE(OpenVPNDriver::SplitPortFromHost(":1234", &name, &port));
572 EXPECT_FALSE(OpenVPNDriver::SplitPortFromHost("v.com:f:1234", &name, &port));
573 EXPECT_FALSE(OpenVPNDriver::SplitPortFromHost("v.com:x", &name, &port));
574 EXPECT_FALSE(OpenVPNDriver::SplitPortFromHost("v.com:-1", &name, &port));
575 EXPECT_FALSE(OpenVPNDriver::SplitPortFromHost("v.com:+1", &name, &port));
576 EXPECT_FALSE(OpenVPNDriver::SplitPortFromHost("v.com:65536", &name, &port));
577 EXPECT_TRUE(OpenVPNDriver::SplitPortFromHost("v.com:0", &name, &port));
580 EXPECT_TRUE(OpenVPNDriver::SplitPortFromHost("w.com:65535", &name, &port));
583 EXPECT_TRUE(OpenVPNDriver::SplitPortFromHost("x.com:12345", &name, &port));