Home
last modified time | relevance | path

Searched refs:ParsePortRange (Results 1 – 4 of 4) sorted by relevance

/external/chromium_org/remoting/protocol/
Dnetwork_settings_unittest.cc12 TEST(ParsePortRange, Basic) { in TEST() argument
16 EXPECT_TRUE(NetworkSettings::ParsePortRange("1-65535", &min, &max)); in TEST()
20 EXPECT_TRUE(NetworkSettings::ParsePortRange(" 1 - 65535 ", &min, &max)); in TEST()
24 EXPECT_TRUE(NetworkSettings::ParsePortRange("12400-12400", &min, &max)); in TEST()
29 EXPECT_FALSE(NetworkSettings::ParsePortRange("", &min, &max)); in TEST()
30 EXPECT_FALSE(NetworkSettings::ParsePortRange("-65535", &min, &max)); in TEST()
31 EXPECT_FALSE(NetworkSettings::ParsePortRange("1-", &min, &max)); in TEST()
32 EXPECT_FALSE(NetworkSettings::ParsePortRange("-", &min, &max)); in TEST()
33 EXPECT_FALSE(NetworkSettings::ParsePortRange("-1-65535", &min, &max)); in TEST()
34 EXPECT_FALSE(NetworkSettings::ParsePortRange("1--65535", &min, &max)); in TEST()
[all …]
Dnetwork_settings.h61 static bool ParsePortRange(const std::string& port_range,
Dnetwork_settings.cc17 bool NetworkSettings::ParsePortRange(const std::string& port_range, in ParsePortRange() function in remoting::protocol::NetworkSettings
/external/chromium_org/remoting/host/
Dremoting_me2me_host.cc1072 !NetworkSettings::ParsePortRange(udp_port_range, &min_udp_port, in OnUdpPortPolicyUpdate()