Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(146)

Unified Diff: sandbox/win/tests/common/controller.h

Issue 2513163002: Add unittest that sandbox::PolicyBase outlives child process. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sandbox/win/src/policy_target_test.cc ('k') | sandbox/win/tests/common/controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/win/tests/common/controller.h
diff --git a/sandbox/win/tests/common/controller.h b/sandbox/win/tests/common/controller.h
index 7c1c78f66d110842860b50e5d02f50dfec86dca3..319666b822d2ca5b9082e170e6494c4f60fcb320 100644
--- a/sandbox/win/tests/common/controller.h
+++ b/sandbox/win/tests/common/controller.h
@@ -116,6 +116,10 @@ class TestRunner {
// destroyed.
void SetKillOnDestruction(bool value) { kill_on_destruction_ = value; }
+ // Sets whether the TargetPolicy should be released after the child process
+ // is launched while the test is running.
+ void SetReleasePolicyInRun(bool value) { release_policy_in_run_ = value; }
+
// Returns the pointers to the policy object. It can be used to modify
// the policy manually.
TargetPolicy* GetPolicy();
@@ -147,6 +151,7 @@ class TestRunner {
bool no_sandbox_;
bool disable_csrss_;
bool kill_on_destruction_;
+ bool release_policy_in_run_ = false;
base::win::ScopedHandle target_process_;
DWORD target_process_id_;
};
« no previous file with comments | « sandbox/win/src/policy_target_test.cc ('k') | sandbox/win/tests/common/controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698