summaryrefslogtreecommitdiff
path: root/common/fake_hardware.h
diff options
context:
space:
mode:
authornebrassy <nebras30@gmail.com>2019-08-13 10:50:09 +0300
committernebrassy <nebras30@gmail.com>2019-08-13 10:50:09 +0300
commitfc6a0002c491230cf83b75c529adc4a8413d2e44 (patch)
tree5a1320dd21c4afc3001900f6734cd4627845ee7c /common/fake_hardware.h
parent0eab72816722576cf4fbc3e7b67f24991ed60b31 (diff)
fix update_engine build error caused by IsTWRPp9.0
Change-Id: I083a252f176780e7461a3abf624f576c6a432319
Diffstat (limited to 'common/fake_hardware.h')
-rw-r--r--common/fake_hardware.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/fake_hardware.h b/common/fake_hardware.h
index f2b2c9d1..d165af8a 100644
--- a/common/fake_hardware.h
+++ b/common/fake_hardware.h
@@ -53,6 +53,9 @@ class FakeHardware : public HardwareInterface {
return is_oobe_complete_;
}
+ bool IsTWRP() const override { return is_twrp_; }
+
+
std::string GetHardwareClass() const override { return hardware_class_; }
std::string GetFirmwareVersion() const override { return firmware_version_; }
@@ -104,6 +107,11 @@ class FakeHardware : public HardwareInterface {
are_dev_features_enabled_ = are_dev_features_enabled;
}
+ void SetIsTWRP(bool is_twrp) {
+ is_twrp_ = is_twrp;
+ }
+
+
// Sets the SetIsOOBEEnabled to |is_oobe_enabled|.
void SetIsOOBEEnabled(bool is_oobe_enabled) {
is_oobe_enabled_ = is_oobe_enabled;
@@ -145,6 +153,7 @@ class FakeHardware : public HardwareInterface {
bool are_dev_features_enabled_{false};
bool is_oobe_enabled_{true};
bool is_oobe_complete_{true};
+ bool is_twrp_{true};
base::Time oobe_timestamp_{base::Time::FromTimeT(1169280000)}; // Jan 20, 2007
std::string hardware_class_{"Fake HWID BLAH-1234"};
std::string firmware_version_{"Fake Firmware v1.0.1"};