AU/PM: Some refactoring
* Introduced a Provider base class, used for defining interface and
shared logic (e.g. initialization semantics).
* Eliminated the Finalize() method in providers; release of resources is
done in destructors (safer, less boilerplate).
* Revised CamelCase capitalization: PMFooTest -> PmFooTest, plus various
cosmetics.
BUG=None
TEST=Builds and passes unit tests.
Change-Id: Ib959dfd2522e00928d735202b1448c9436cbb00b
Reviewed-on: https://chromium-review.googlesource.com/184352
Tested-by: Gilad Arnold <garnold@chromium.org>
Reviewed-by: Alex Deymo <deymo@chromium.org>
Commit-Queue: Gilad Arnold <garnold@chromium.org>
diff --git a/policy_manager/variable.h b/policy_manager/variable.h
index 6acd31f..79953ed 100644
--- a/policy_manager/variable.h
+++ b/policy_manager/variable.h
@@ -19,8 +19,8 @@
virtual ~Variable() {}
protected:
- friend class PMRandomProviderTest;
- FRIEND_TEST(PMRandomProviderTest, GetRandomValues);
+ friend class PmRandomProviderTest;
+ FRIEND_TEST(PmRandomProviderTest, GetRandomValues);
// Gets the current value of the variable. The current value is copied to a
// new object and returned. The caller of this method owns the object and