Move IsOfficialBuild() and IsNormalBootMode() into HardwareInterface.
This makes the implementation of the two methods part of the
HardwareInterface, so that unit tests won't end up with meaningless
(and unpredictable) calls to the real functions.
BUG=None
TEST=unit tests
Change-Id: Ia23932634124987c1d6ff0683acb15cf4819bc5e
Reviewed-on: https://chromium-review.googlesource.com/175024
Reviewed-by: Chris Sosa <sosa@chromium.org>
Commit-Queue: Richard Barnette <jrbarnette@chromium.org>
Tested-by: Richard Barnette <jrbarnette@chromium.org>
diff --git a/hardware.h b/hardware.h
index 7f895c9..5ab1fca 100644
--- a/hardware.h
+++ b/hardware.h
@@ -18,6 +18,8 @@
// HardwareInterface methods.
virtual const std::string BootDevice();
+ virtual bool IsOfficialBuild();
+ virtual bool IsNormalBootMode();
virtual std::string GetHardwareClass();
virtual std::string GetFirmwareVersion();
virtual std::string GetECVersion();