Inject sysfile dependency when creating BinaryStore
Make the factory take sysFile rather than raw fd. Test code would take
a FakeSysFile for testing file operations.
Change-Id: Id7a02203893936e4eddb2e73267b45343c6c6f08
Signed-off-by: Kun Yi <kunyi@google.com>
diff --git a/Makefile.am b/Makefile.am
index 6d0e426..2ad19a0 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -9,9 +9,11 @@
libbinarystoredir = ${libdir}/ipmid-providers
libbinarystore_LTLIBRARIES = libbinarystore.la
libbinarystore_la_SOURCES = main.cpp \
- handler.cpp \
binaryblob.pb.cc \
- binarystore.cpp
+ binarystore.cpp \
+ sys.cpp \
+ sys_file.cpp \
+ handler.cpp
libbinarystore_la_LDFLAGS = $(PHOSPHOR_LOGGING_LIBS) \
-version-info 0:0:0 -shared \