Lines Matching refs:policy
16 BootstrapSandboxPolicy policy; in TEST() local
17 policy.rules["allow"] = Rule(POLICY_ALLOW); in TEST()
18 policy.rules["deny_error"] = Rule(POLICY_DENY_ERROR); in TEST()
19 policy.rules["deny_dummy"] = Rule(POLICY_DENY_DUMMY_PORT); in TEST()
20 policy.rules["substitue"] = Rule(mach_task_self()); in TEST()
21 EXPECT_TRUE(IsPolicyValid(policy)); in TEST()
26 BootstrapSandboxPolicy policy; in TEST() local
27 policy.rules["test"] = rule; in TEST()
28 EXPECT_FALSE(IsPolicyValid(policy)); in TEST()
33 BootstrapSandboxPolicy policy; in TEST() local
34 policy.rules["test"] = rule; in TEST()
35 EXPECT_FALSE(IsPolicyValid(policy)); in TEST()
41 BootstrapSandboxPolicy policy; in TEST() local
42 policy.rules["allow"] = rule; in TEST()
43 EXPECT_FALSE(IsPolicyValid(policy)); in TEST()
49 BootstrapSandboxPolicy policy; in TEST() local
50 policy.rules["deny_error"] = rule; in TEST()
51 EXPECT_FALSE(IsPolicyValid(policy)); in TEST()
57 BootstrapSandboxPolicy policy; in TEST() local
58 policy.rules["deny_dummy"] = rule; in TEST()
59 EXPECT_FALSE(IsPolicyValid(policy)); in TEST()
63 BootstrapSandboxPolicy policy; in TEST() local
64 policy.default_rule = Rule(); in TEST()
65 EXPECT_FALSE(IsPolicyValid(policy)); in TEST()
69 BootstrapSandboxPolicy policy; in TEST() local
70 policy.default_rule = Rule(POLICY_SUBSTITUTE_PORT); in TEST()
71 EXPECT_FALSE(IsPolicyValid(policy)); in TEST()
77 BootstrapSandboxPolicy policy; in TEST() local
78 policy.default_rule = rule; in TEST()
79 EXPECT_FALSE(IsPolicyValid(policy)); in TEST()
85 BootstrapSandboxPolicy policy; in TEST() local
86 policy.default_rule = rule; in TEST()
87 EXPECT_FALSE(IsPolicyValid(policy)); in TEST()
93 BootstrapSandboxPolicy policy; in TEST() local
94 policy.default_rule = rule; in TEST()
95 EXPECT_FALSE(IsPolicyValid(policy)); in TEST()