Home
last modified time | relevance | path

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

/ohos5.0/foundation/communication/netmanager_base/test/netmanagernative/unittest/firewall_manager_test/
H A Dfirewall_manager_class_test.cpp70 FirewallType fwType = g_firewallManager->FetchChainType(chain);
71 EXPECT_EQ((fwType == FirewallType::TYPE_ALLOWED_LIST), true);
75 EXPECT_EQ((fwType == FirewallType::TYPE_DENIDE_LIST), true);
79 EXPECT_EQ((fwType == FirewallType::TYPE_ALLOWED_LIST), true);
172 FirewallType type = g_firewallManager->FetchChainType(ChainType::CHAIN_OHFW_DOZABLE);
173 EXPECT_EQ(type, FirewallType::TYPE_ALLOWED_LIST);
184 EXPECT_EQ(type, FirewallType::TYPE_ALLOWED_LIST);
194 FirewallType type = g_firewallManager->FetchChainType(ChainType::CHAIN_OHFW_UNDOZABLE);
195 EXPECT_EQ(type, FirewallType::TYPE_DENIDE_LIST);
205 FirewallType type = g_firewallManager->FetchChainType(ChainType::CHAIN_OHBW_DATA_SAVER);
[all …]
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/src/manager/
H A Dfirewall_manager.cpp51 FirewallManager::FirewallManager() : chainInitFlag_(false), firewallType_(FirewallType::TYPE_ALLOWE… in FirewallManager()
56 status.type = FirewallType::TYPE_ALLOWED_LIST; in FirewallManager()
143 FirewallType FirewallManager::FetchChainType(ChainType chain) in FetchChainType()
145 FirewallType firewallType; in FetchChainType()
148 firewallType = FirewallType::TYPE_ALLOWED_LIST; in FetchChainType()
151 firewallType = FirewallType::TYPE_ALLOWED_LIST; in FetchChainType()
154 firewallType = FirewallType::TYPE_DENIDE_LIST; in FetchChainType()
157 firewallType = FirewallType::TYPE_ALLOWED_LIST; in FetchChainType()
415 FirewallType firewallType = FetchChainType(chain); in SetUidRule()
416 if (firewallType == FirewallType::TYPE_DENIDE_LIST) { in SetUidRule()
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/include/manager/
H A Dfirewall_manager.h30 NetManagerStandard::FirewallType type;
87 NetManagerStandard::FirewallType FetchChainType(NetManagerStandard::ChainType chain);
103 NetManagerStandard::FirewallType firewallType_;
/ohos5.0/foundation/communication/netmanager_base/interfaces/innerkits/netmanagernative/include/
H A Diptables_type.h26 enum FirewallType { enum