| Index: sandbox/win/src/policy_target_test.cc
|
| diff --git a/sandbox/win/src/policy_target_test.cc b/sandbox/win/src/policy_target_test.cc
|
| index e6a8ff3ed0e95d74bc5fdb1c0d44c6fb8a016100..61964f8197e3c1e50b1fe01aca95b6d4b76de5e3 100644
|
| --- a/sandbox/win/src/policy_target_test.cc
|
| +++ b/sandbox/win/src/policy_target_test.cc
|
| @@ -214,6 +214,15 @@ TEST(PolicyTargetTest, OpenProcess) {
|
| "Opens a process";
|
| }
|
|
|
| +TEST(PolicyTargetTest, PolicyBaseNoJobLifetime) {
|
| + TestRunner runner(JOB_NONE, USER_RESTRICTED_SAME_ACCESS, USER_LOCKDOWN);
|
| + runner.SetReleasePolicyInRun(true);
|
| + // TargetPolicy and its SharedMemIPCServer should continue to exist until
|
| + // the child process dies.
|
| + EXPECT_EQ(SBOX_TEST_SUCCEEDED, runner.RunTest(L"PolicyTargetTest_thread"))
|
| + << "Opens the current thread";
|
| +}
|
| +
|
| // Launches the app in the sandbox and ask it to wait in an
|
| // infinite loop. Waits for 2 seconds and then check if the
|
| // desktop associated with the app thread is not the same as the
|
|
|