PolicyManager: New EvaluationContext class.
The EvaluationContext class handles the life of a policy request
evaluation caching all the results and tracking the variables used
by a the policy implementation.
This patch adds the first part of the EvaluationContex class with
its public interface and minimal support.
BUG=chromium:338590
TEST=Unit test added and passing.
Change-Id: I70e04e7e10ea30ddfb887b494b2b40557565b2da
Reviewed-on: https://chromium-review.googlesource.com/185106
Reviewed-by: Alex Deymo <deymo@chromium.org>
Commit-Queue: Alex Deymo <deymo@chromium.org>
Tested-by: Alex Deymo <deymo@chromium.org>
diff --git a/SConstruct b/SConstruct
index d4057c7..4bfc425 100644
--- a/SConstruct
+++ b/SConstruct
@@ -239,6 +239,7 @@
payload_signer.cc
payload_state.cc
policy_manager/real_random_provider.cc
+ policy_manager/evaluation_context.cc
postinstall_runner_action.cc
prefs.cc
proxy_resolver.cc
@@ -288,6 +289,8 @@
p2p_manager_unittest.cc
payload_signer_unittest.cc
payload_state_unittest.cc
+ policy_manager/boxed_value_unittest.cc
+ policy_manager/evaluation_context_unittest.cc
policy_manager/generic_variables_unittest.cc
policy_manager/real_random_provider_unittest.cc
policy_manager/variable_unittest.cc