• Home
  • Raw
  • Download

Lines Matching refs:manager

293   BasicNetworkManager manager;  in TEST_F()  local
294 NetworkManager::NetworkList result = GetNetworks(manager, true); in TEST_F()
328 BasicNetworkManager manager; in TEST_F() local
329 manager.SignalNetworksChanged.connect(static_cast<NetworkTest*>(this), in TEST_F()
332 manager.enumeration_permission()); in TEST_F()
333 manager.StartUpdating(); in TEST_F()
339 manager.StartUpdating(); in TEST_F()
340 EXPECT_TRUE(manager.started()); in TEST_F()
343 manager.StopUpdating(); in TEST_F()
344 EXPECT_TRUE(manager.started()); in TEST_F()
345 manager.StopUpdating(); in TEST_F()
347 manager.enumeration_permission()); in TEST_F()
348 EXPECT_FALSE(manager.started()); in TEST_F()
349 manager.StopUpdating(); in TEST_F()
350 EXPECT_FALSE(manager.started()); in TEST_F()
354 manager.StartUpdating(); in TEST_F()
367 BasicNetworkManager manager; in TEST_F() local
373 NetworkManager::Stats stats = MergeNetworkList(manager, list, &changed); in TEST_F()
379 manager.GetNetworks(&list); in TEST_F()
389 stats = MergeNetworkList(manager, list, &changed); in TEST_F()
395 manager.GetNetworks(&list); in TEST_F()
407 stats = MergeNetworkList(manager, list, &changed); in TEST_F()
414 manager.GetNetworks(&list); in TEST_F()
426 stats = MergeNetworkList(manager, list, &changed); in TEST_F()
433 manager.GetNetworks(&list); in TEST_F()
476 BasicNetworkManager manager; in TEST_F() local
477 manager.SignalNetworksChanged.connect(static_cast<NetworkTest*>(this), in TEST_F()
483 MergeNetworkList(manager, original_list, &changed); in TEST_F()
488 manager.GetNetworks(&list); in TEST_F()
497 BasicNetworkManager manager; in TEST_F() local
498 manager.SignalNetworksChanged.connect(static_cast<NetworkTest*>(this), in TEST_F()
503 MergeNetworkList(manager, original_list, &changed); in TEST_F()
509 MergeNetworkList(manager, second_list, &changed); in TEST_F()
512 manager.GetNetworks(&resulting_list); in TEST_F()
525 BasicNetworkManager manager; in TEST_F() local
526 manager.SignalNetworksChanged.connect(static_cast<NetworkTest*>(this), in TEST_F()
543 MergeNetworkList(manager, original_list, &changed); in TEST_F()
548 MergeNetworkList(manager, second_list, &changed); in TEST_F()
551 manager.GetNetworks(&list); in TEST_F()
561 BasicNetworkManager manager; in TEST_F() local
562 manager.SignalNetworksChanged.connect(static_cast<NetworkTest*>(this), in TEST_F()
567 MergeNetworkList(manager, original_list, &changed); in TEST_F()
582 MergeNetworkList(manager, original_list, &changed); in TEST_F()
586 manager.GetNetworks(&list); in TEST_F()
610 BasicNetworkManager manager; in TEST_F() local
611 manager.SignalNetworksChanged.connect(static_cast<NetworkTest*>(this), in TEST_F()
616 MergeNetworkList(manager, original_list, &changed); in TEST_F()
628 MergeNetworkList(manager, original_list, &changed); in TEST_F()
632 manager.GetNetworks(&list); in TEST_F()
651 BasicNetworkManager manager; in TEST_F() local
652 NetworkManager::NetworkList list = GetNetworks(manager, true); in TEST_F()
654 MergeNetworkList(manager, list, &changed); in TEST_F()
655 manager.DumpNetworks(); in TEST_F()
659 BasicNetworkManager manager; in TEST_F() local
662 list = GetNetworks(manager, true); in TEST_F()
680 BasicNetworkManager manager; in TEST_F() local
700 MergeNetworkList(manager, list, &changed); in TEST_F()
709 BasicNetworkManager manager; in TEST_F() local
723 MergeNetworkList(manager, list, &changed); in TEST_F()
755 BasicNetworkManager manager; in TEST_F() local
756 CallConvertIfAddrs(manager, &list, true, &result); in TEST_F()
770 BasicNetworkManager manager; in TEST_F() local
771 CallConvertIfAddrs(manager, list, true, &result); in TEST_F()
775 MergeNetworkList(manager, result, &changed); in TEST_F()
789 BasicNetworkManager manager; in TEST_F() local
790 CallConvertIfAddrs(manager, &list, true, &result); in TEST_F()
801 BasicNetworkManager manager; in TEST_F() local
805 InstallIpv6Network(if_name1, ipv6_address1, ipv6_mask, manager); in TEST_F()
806 EXPECT_EQ(ADAPTER_TYPE_UNKNOWN, GetAdapterType(manager)); in TEST_F()
816 manager.StartUpdating(); in TEST_F()
819 addr_list = InstallIpv6Network(if_name1, ipv6_address1, ipv6_mask, manager); in TEST_F()
820 EXPECT_EQ(ADAPTER_TYPE_WIFI, GetAdapterType(manager)); in TEST_F()
822 ClearNetworks(manager); in TEST_F()
826 addr_list = InstallIpv6Network(if_name2, ipv6_address2, ipv6_mask, manager); in TEST_F()
827 EXPECT_EQ(ADAPTER_TYPE_CELLULAR, GetAdapterType(manager)); in TEST_F()
829 ClearNetworks(manager); in TEST_F()
841 BasicNetworkManager manager; in TEST_F() local
846 InstallIpv6Network(if_name, ipv6_address1, ipv6_mask, manager); in TEST_F()
847 EXPECT_EQ(ADAPTER_TYPE_VPN, GetAdapterType(manager)); in TEST_F()
848 ClearNetworks(manager); in TEST_F()
852 addr_list = InstallIpv6Network(if_name, ipv6_address1, ipv6_mask, manager); in TEST_F()
853 EXPECT_EQ(ADAPTER_TYPE_LOOPBACK, GetAdapterType(manager)); in TEST_F()
854 ClearNetworks(manager); in TEST_F()
858 addr_list = InstallIpv4Network(if_name, ipv4_address1, ipv4_mask, manager); in TEST_F()
859 EXPECT_EQ(ADAPTER_TYPE_ETHERNET, GetAdapterType(manager)); in TEST_F()
860 ClearNetworks(manager); in TEST_F()
864 addr_list = InstallIpv6Network(if_name, ipv6_address1, ipv6_mask, manager); in TEST_F()
865 EXPECT_EQ(ADAPTER_TYPE_WIFI, GetAdapterType(manager)); in TEST_F()
866 ClearNetworks(manager); in TEST_F()
871 addr_list = InstallIpv6Network(if_name, ipv6_address1, ipv6_mask, manager); in TEST_F()
872 EXPECT_EQ(ADAPTER_TYPE_CELLULAR, GetAdapterType(manager)); in TEST_F()
873 ClearNetworks(manager); in TEST_F()
877 addr_list = InstallIpv6Network(if_name, ipv6_address1, ipv6_mask, manager); in TEST_F()
878 EXPECT_EQ(ADAPTER_TYPE_WIFI, GetAdapterType(manager)); in TEST_F()
879 ClearNetworks(manager); in TEST_F()
884 addr_list = InstallIpv6Network(if_name, ipv6_address1, ipv6_mask, manager); in TEST_F()
885 EXPECT_EQ(ADAPTER_TYPE_CELLULAR, GetAdapterType(manager)); in TEST_F()
886 ClearNetworks(manager); in TEST_F()
890 addr_list = InstallIpv6Network(if_name, ipv6_address2, ipv6_mask, manager); in TEST_F()
891 EXPECT_EQ(ADAPTER_TYPE_CELLULAR, GetAdapterType(manager)); in TEST_F()
892 ClearNetworks(manager); in TEST_F()
896 addr_list = InstallIpv4Network(if_name, ipv4_address1, ipv4_mask, manager); in TEST_F()
897 EXPECT_EQ(ADAPTER_TYPE_CELLULAR, GetAdapterType(manager)); in TEST_F()
898 ClearNetworks(manager); in TEST_F()
907 BasicNetworkManager manager; in TEST_F() local
926 MergeNetworkList(manager, list, &changed); in TEST_F()
930 manager.GetNetworks(&list2); in TEST_F()
943 BasicNetworkManager manager; in TEST_F() local
954 MergeNetworkList(manager, list, &changed); in TEST_F()
957 manager.GetNetworks(&list); in TEST_F()
964 MergeNetworkList(manager, list, &changed); in TEST_F()
967 manager.GetNetworks(&list); in TEST_F()
974 MergeNetworkList(manager, list, &changed); in TEST_F()
977 manager.GetNetworks(&list); in TEST_F()
1025 BasicNetworkManager manager; in TEST_F() local
1026 manager.SignalNetworksChanged.connect(static_cast<NetworkTest*>(this), in TEST_F()
1030 manager.StartUpdating(); in TEST_F()
1031 FakeNetworkMonitor* network_monitor = GetNetworkMonitor(manager); in TEST_F()
1037 ClearNetworks(manager); in TEST_F()
1044 manager.StopUpdating(); in TEST_F()
1045 EXPECT_FALSE(GetNetworkMonitor(manager)->started()); in TEST_F()
1058 TestBasicNetworkManager manager; in TEST_F() local
1059 manager.SignalNetworksChanged.connect(static_cast<NetworkTest*>(this), in TEST_F()
1063 manager.StartUpdating(); in TEST_F()
1069 manager.GetNetworks(&networks); in TEST_F()
1073 EXPECT_TRUE(manager.QueryDefaultLocalAddress(AF_INET) != IPAddress()); in TEST_F()
1078 EXPECT_TRUE(manager.QueryDefaultLocalAddress(AF_INET6) != IPAddress()); in TEST_F()
1083 manager.set_default_local_addresses(GetLoopbackIP(AF_INET), in TEST_F()
1085 EXPECT_TRUE(manager.GetDefaultLocalAddress(AF_INET, &ip)); in TEST_F()
1087 EXPECT_TRUE(manager.GetDefaultLocalAddress(AF_INET6, &ip)); in TEST_F()
1104 MergeNetworkList(manager, list, &changed); in TEST_F()
1109 manager.set_default_local_addresses(GetLoopbackIP(AF_INET), ip3); in TEST_F()
1110 EXPECT_TRUE(manager.GetDefaultLocalAddress(AF_INET6, &ip)); in TEST_F()
1114 manager.set_default_local_addresses(GetLoopbackIP(AF_INET), ip2); in TEST_F()
1115 EXPECT_TRUE(manager.GetDefaultLocalAddress(AF_INET6, &ip)); in TEST_F()
1118 manager.StopUpdating(); in TEST_F()
1124 BasicNetworkManager manager; in TEST_F() local
1136 MergeNetworkList(manager, list, &changed); in TEST_F()
1139 manager.GetNetworks(&list2); in TEST_F()
1152 MergeNetworkList(manager, list, &changed); in TEST_F()
1158 manager.GetNetworks(&list2); in TEST_F()
1171 MergeNetworkList(manager, list, &changed); in TEST_F()
1176 manager.GetNetworks(&list2); in TEST_F()