Lines Matching refs:ipv4VerifyIpAndGetBitcount

42 TEST(ipv4VerifyIpAndGetBitcount, PositiveTests)  in TEST()  argument
44 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("192.168.1.1", nullptr)); in TEST()
47 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("128.0.0.0", &bits)); in TEST()
49 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("192.0.0.0", &bits)); in TEST()
51 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("224.0.0.0", &bits)); in TEST()
53 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("240.0.0.0", &bits)); in TEST()
55 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("248.0.0.0", &bits)); in TEST()
57 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("252.0.0.0", &bits)); in TEST()
59 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("254.0.0.0", &bits)); in TEST()
61 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("255.0.0.0", &bits)); in TEST()
63 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("255.128.0.0", &bits)); in TEST()
65 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("255.192.0.0", &bits)); in TEST()
67 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("255.224.0.0", &bits)); in TEST()
69 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("255.240.0.0", &bits)); in TEST()
71 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("255.248.0.0", &bits)); in TEST()
73 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("255.252.0.0", &bits)); in TEST()
75 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("255.254.0.0", &bits)); in TEST()
77 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("255.255.0.0", &bits)); in TEST()
79 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("255.255.128.0", &bits)); in TEST()
81 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("255.255.192.0", &bits)); in TEST()
83 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("255.255.224.0", &bits)); in TEST()
85 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("255.255.240.0", &bits)); in TEST()
87 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("255.255.248.0", &bits)); in TEST()
89 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("255.255.252.0", &bits)); in TEST()
91 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("255.255.254.0", &bits)); in TEST()
93 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("255.255.255.0", &bits)); in TEST()
95 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("255.255.255.128", &bits)); in TEST()
97 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("255.255.255.192", &bits)); in TEST()
99 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("255.255.255.224", &bits)); in TEST()
101 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("255.255.255.240", &bits)); in TEST()
103 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("255.255.255.248", &bits)); in TEST()
105 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("255.255.255.252", &bits)); in TEST()
109 TEST(ipv4VerifyIpAndGetBitcount, NegativeTests) in TEST() argument
113 EXPECT_FALSE(ipv4VerifyIpAndGetBitcount("256.0.0.0", &bits)); in TEST()
114 EXPECT_FALSE(ipv4VerifyIpAndGetBitcount("1.256.0.0", &bits)); in TEST()
115 EXPECT_FALSE(ipv4VerifyIpAndGetBitcount("1.1.256.0", &bits)); in TEST()
116 EXPECT_FALSE(ipv4VerifyIpAndGetBitcount("1.1.1.256", &bits)); in TEST()
119 EXPECT_FALSE(ipv4VerifyIpAndGetBitcount("255.0.255.0", &bits)); in TEST()
122 EXPECT_FALSE(ipv4VerifyIpAndGetBitcount("1.1.1.1.1", &bits)); in TEST()
124 EXPECT_FALSE(ipv4VerifyIpAndGetBitcount("1.1.1", &bits)); in TEST()
127 EXPECT_FALSE(ipv4VerifyIpAndGetBitcount("", &bits)); in TEST()