PM: Move Variable content testing logic into a common unittest module.
Testing the content of variables is done frequently when testing various
providers. This results in plenty of boilerplate code, as well as
numerous friend declarations in the different FooVariable class
definitions.
This CL introduces a PmTestUtils helper class providing common Variable
testing methods that test fixtures can use.
BUG=chromium:366259
TEST=Unit tests.
Change-Id: I7bb1cea080c3b79c203607550259f4c277e84f3b
Reviewed-on: https://chromium-review.googlesource.com/196529
Tested-by: Gilad Arnold <garnold@chromium.org>
Reviewed-by: Alex Deymo <deymo@chromium.org>
Commit-Queue: Gilad Arnold <garnold@chromium.org>
diff --git a/SConstruct b/SConstruct
index 62527f9..86ff836 100644
--- a/SConstruct
+++ b/SConstruct
@@ -300,6 +300,7 @@
policy_manager/event_loop_unittest.cc
policy_manager/fake_state.cc
policy_manager/generic_variables_unittest.cc
+ policy_manager/pmtest_utils.cc
policy_manager/policy_manager_unittest.cc
policy_manager/real_config_provider_unittest.cc
policy_manager/real_device_policy_provider_unittest.cc