PolicyManager: Add a Variable "Mode" property.

There are three kinds of Variables: Const, Poll and Async; that
reflect how the value on the variable changes. Const variables don't
change its value, Poll variables can change the value without notice
and Async variables can change the value but notify the observers
with those changes.

This patch adds the Mode property to the BaseVariable class. This
property can be used by the EvaluationContext to determine how to
treat a given variable.

BUG=chromium:341209
TEST=unit test added and passing.

Change-Id: Ifd4ebcfb84cdb9c6cca1ccbb34004cbac0ea2d2f
Reviewed-on: https://chromium-review.googlesource.com/187240
Reviewed-by: Alex Deymo <deymo@chromium.org>
Commit-Queue: Alex Deymo <deymo@chromium.org>
Tested-by: Alex Deymo <deymo@chromium.org>
diff --git a/policy_manager/evaluation_context_unittest.cc b/policy_manager/evaluation_context_unittest.cc
index 9c50446..f73171c 100644
--- a/policy_manager/evaluation_context_unittest.cc
+++ b/policy_manager/evaluation_context_unittest.cc
@@ -17,7 +17,7 @@
 
 class PmEvaluationContextTest : public ::testing::Test {
  public:
-  PmEvaluationContextTest() : fake_int_var_("fake_int") {}
+  PmEvaluationContextTest() : fake_int_var_("fake_int", kVariableModePoll) {}
 
  protected:
   virtual void SetUp() {
@@ -75,7 +75,7 @@
 }
 
 TEST_F(PmEvaluationContextTest, GetValueMixedTypes) {
-  FakeVariable<string> fake_string_var_("fake_string");
+  FakeVariable<string> fake_string_var_("fake_string", kVariableModePoll);
   const int* p_fake_int;
   const string* p_fake_string;