Lines Matching refs:props
171 KeyValueStore props;
174 store.GetKeyValueStoreProperty(kProviderProperty, &props, &error));
175 return props;
550 IPConfig::Properties props;
551 OpenVPNDriver::SetRoutes(routes, &props);
552 ASSERT_EQ(2, props.routes.size());
553 EXPECT_EQ(kGateway1, props.routes[0].gateway);
554 EXPECT_EQ(kNetmask1, props.routes[0].netmask);
555 EXPECT_EQ(kNetwork1, props.routes[0].host);
556 EXPECT_EQ(kGateway2, props.routes[1].gateway);
557 EXPECT_EQ(kNetmask2, props.routes[1].netmask);
558 EXPECT_EQ(kNetwork2, props.routes[1].host);
561 OpenVPNDriver::SetRoutes(OpenVPNDriver::RouteOptions(), &props);
562 EXPECT_EQ(2, props.routes.size());
591 IPConfig::Properties props;
616 IPConfig::Properties props;
617 OpenVPNDriver::ParseForeignOptions(options, &props);
618 ASSERT_EQ(5, props.domain_search.size());
619 EXPECT_EQ("two.com", props.domain_search[0]);
620 EXPECT_EQ("four.com", props.domain_search[1]);
621 EXPECT_EQ("five.com", props.domain_search[2]);
622 EXPECT_EQ("seven.com", props.domain_search[3]);
623 EXPECT_EQ("eight.com", props.domain_search[4]);
624 ASSERT_EQ(1, props.dns_servers.size());
625 EXPECT_EQ("1.2.3.4", props.dns_servers[0]);
629 OpenVPNDriver::ParseForeignOptions(map<int, string>(), &props);
630 EXPECT_EQ(5, props.domain_search.size());
631 ASSERT_EQ(1, props.dns_servers.size());
636 IPConfig::Properties props;
638 driver_->ParseIPConfiguration(config, &props);
639 EXPECT_EQ(IPAddress::kFamilyIPv4, props.address_family);
640 EXPECT_EQ(32, props.subnet_prefix);
642 props.subnet_prefix = 18;
643 driver_->ParseIPConfiguration(config, &props);
644 EXPECT_EQ(18, props.subnet_prefix);
649 driver_->ParseIPConfiguration(config, &props);
650 EXPECT_EQ(16, props.subnet_prefix);
651 EXPECT_EQ("", props.peer_address);
670 driver_->ParseIPConfiguration(config, &props);
671 EXPECT_EQ(IPAddress::kFamilyIPv4, props.address_family);
672 EXPECT_EQ("4.5.6.7", props.address);
673 EXPECT_EQ("1.2.255.255", props.broadcast_address);
674 EXPECT_EQ(24, props.subnet_prefix);
675 EXPECT_EQ("33.44.55.66", props.peer_address);
676 EXPECT_EQ("192.168.1.1", props.gateway);
677 EXPECT_EQ("99.88.77.66/32", props.exclusion_list[0]);
678 EXPECT_EQ(1, props.exclusion_list.size());
679 EXPECT_EQ(1000, props.mtu);
680 ASSERT_EQ(3, props.dns_servers.size());
681 EXPECT_EQ("1.1.1.1", props.dns_servers[0]);
682 EXPECT_EQ("4.4.4.4", props.dns_servers[1]);
683 EXPECT_EQ("2.2.2.2", props.dns_servers[2]);
684 ASSERT_EQ(2, props.routes.size());
685 EXPECT_EQ(kGateway1, props.routes[0].gateway);
686 EXPECT_EQ(kNetmask1, props.routes[0].netmask);
687 EXPECT_EQ(kNetwork1, props.routes[0].host);
688 EXPECT_EQ(kGateway2, props.routes[1].gateway);
689 EXPECT_EQ(kNetmask2, props.routes[1].netmask);
690 EXPECT_EQ(kNetwork2, props.routes[1].host);
691 EXPECT_FALSE(props.blackhole_ipv6);
1341 KeyValueStore props = GetProviderProperties(store);
1342 EXPECT_TRUE(props.LookupBool(kPassphraseRequiredProperty, false));
1345 props = GetProviderProperties(store);
1346 EXPECT_FALSE(props.LookupBool(kPassphraseRequiredProperty, true));
1348 EXPECT_FALSE(props.ContainsString(kOpenVPNPasswordProperty));
1351 props = GetProviderProperties(store);
1352 EXPECT_TRUE(props.LookupBool(kPassphraseRequiredProperty, false));
1355 props = GetProviderProperties(store);
1356 EXPECT_FALSE(props.LookupBool(kPassphraseRequiredProperty, true));
1358 EXPECT_FALSE(props.ContainsString(kOpenVPNTokenProperty));