buffet: Read config/state paths from commandline
This allows us to use custom paths and configurations in test without
altering normal system operation.
BUG=brillo:172
TEST=unittests
Change-Id: I1a969093683205d5f600ff88ebba8b22c05368b4
Reviewed-on: https://chromium-review.googlesource.com/247504
Tested-by: Christopher Wiley <wiley@chromium.org>
Reviewed-by: Alex Vakulenko <avakulenko@chromium.org>
Commit-Queue: Christopher Wiley <wiley@chromium.org>
diff --git a/buffet/manager.h b/buffet/manager.h
index ab5171f..c0086ed 100644
--- a/buffet/manager.h
+++ b/buffet/manager.h
@@ -9,6 +9,7 @@
#include <memory>
#include <string>
+#include <base/files/file_path.h>
#include <base/macros.h>
#include <base/memory/weak_ptr.h>
#include <base/values.h>
@@ -47,6 +48,8 @@
~Manager();
void RegisterAsync(
+ const base::FilePath& config_path,
+ const base::FilePath& state_path,
const chromeos::dbus_utils::AsyncEventSequencer::CompletionAction& cb);
private: