Add tests to RuntimeInfo fetch flags.

Test: libvintf_test
Test: vintf_object_test

Bug: 66960848

Change-Id: I7736760a2cfbd7aa4ebdc030ccf0ae9b2024bccb
diff --git a/utils.h b/utils.h
index 9208b6a..973c524 100644
--- a/utils.h
+++ b/utils.h
@@ -24,6 +24,7 @@
 #include <android-base/logging.h>
 #include <utils/Errors.h>
 
+#include "RuntimeInfo.h"
 #include "parse_xml.h"
 
 namespace android {
@@ -91,6 +92,14 @@
     return OK;
 }
 
+template <typename T>
+class ObjectFactory {
+   public:
+    virtual ~ObjectFactory() = default;
+    virtual std::shared_ptr<T> make_shared() const { return std::make_shared<T>(); }
+};
+extern ObjectFactory<RuntimeInfo>* gRuntimeInfoFactory;
+
 }  // namespace details
 }  // namespace vintf
 }  // namespace android