summaryrefslogtreecommitdiffstats
path: root/power/1.0/vts
diff options
context:
space:
mode:
authorConnor O'Brien <connoro@google.com>2016-12-20 13:44:53 -0800
committerConnor O'Brien <connoro@google.com>2016-12-20 13:44:53 -0800
commita6e34f36c04d31dacc2e3783fec29b8e4ec697cc (patch)
tree0bb57112581cb8f208a2ce7f68ae855df0af603c /power/1.0/vts
parentff40e1f5e8b191aa3c7287fa5e5de2ba0ccbe9af (diff)
downloadplatform_hardware_interfaces-a6e34f36c04d31dacc2e3783fec29b8e4ec697cc.tar.gz
platform_hardware_interfaces-a6e34f36c04d31dacc2e3783fec29b8e4ec697cc.tar.bz2
platform_hardware_interfaces-a6e34f36c04d31dacc2e3783fec29b8e4ec697cc.zip
Fix Power VTS test setup code
Bug: 33757678 Test: make vts; vts-tradefed run vts -m HalPowerHidlTargetTest Change-Id: Ia6d5073d7df858a5799270f364f989d7fc26690b Signed-off-by: Connor O'Brien <connoro@google.com>
Diffstat (limited to 'power/1.0/vts')
-rw-r--r--power/1.0/vts/functional/power_hidl_hal_test.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/power/1.0/vts/functional/power_hidl_hal_test.cpp b/power/1.0/vts/functional/power_hidl_hal_test.cpp
index 8833c04cea..045a34b1ff 100644
--- a/power/1.0/vts/functional/power_hidl_hal_test.cpp
+++ b/power/1.0/vts/functional/power_hidl_hal_test.cpp
@@ -35,18 +35,8 @@ using ::android::sp;
class PowerHidlTest : public ::testing::Test {
public:
virtual void SetUp() override {
- // TODO(b/33385836) Delete copied code
- bool getStub = false;
- char getSubProperty[PROPERTY_VALUE_MAX];
- if (property_get("vts.hidl.get_stub", getSubProperty, "") > 0) {
- if (!strcmp(getSubProperty, "true") || !strcmp(getSubProperty, "True") ||
- !strcmp(getSubProperty, "1")) {
- getStub = true;
- }
- }
- power = IPower::getService("power", getStub);
+ power = IPower::getService("power");
ASSERT_NE(power, nullptr);
- ASSERT_EQ(!getStub, power->isRemote());
}
virtual void TearDown() override {}