use the device's default binder/passthrough mode in vts tests

Test: mma
Change-Id: I3f2775873f5b6c091f70413adbdf7b7ae298ff44
This commit is contained in:
Keun Soo Yim 2017-01-24 18:04:07 -08:00
parent c91e7fb95e
commit b21bdc8b9f
6 changed files with 6 additions and 8 deletions

View file

@ -38,8 +38,7 @@ using ::android::sp;
class AudioEffectHidlTest : public ::testing::Test {
public:
virtual void SetUp() override {
// currently test passthrough mode only
effectsFactory = IEffectsFactory::getService("audio_effects_factory", true);
effectsFactory = IEffectsFactory::getService("audio_effects_factory");
ASSERT_NE(effectsFactory, nullptr);
}

View file

@ -95,7 +95,7 @@ private:
void CameraHidlEnvironment::SetUp() {
// TODO: test the binderized mode
mProvider = ICameraProvider::getService(CAMERA_PASSTHROUGH_SERVICE_NAME, true);
mProvider = ICameraProvider::getService(CAMERA_PASSTHROUGH_SERVICE_NAME);
// TODO: handle the device doesn't have any camera case
ALOGI_IF(mProvider, "provider is not nullptr, %p", mProvider.get());
ASSERT_NE(mProvider, nullptr);

View file

@ -187,7 +187,7 @@ class GatekeeperHidlTest : public ::testing::Test {
GatekeeperHidlTest() : uid_(0) {}
virtual void SetUp() override {
GatekeeperResponse rsp;
gatekeeper_ = IGatekeeper::getService("gatekeeper", false);
gatekeeper_ = IGatekeeper::getService("gatekeeper");
ASSERT_NE(nullptr, gatekeeper_.get());
doDeleteAllUsers(rsp);
}

View file

@ -50,7 +50,7 @@ using ::android::sp;
class ThermalHidlTest : public ::testing::Test {
public:
virtual void SetUp() override {
thermal_ = IThermal::getService(THERMAL_SERVICE_NAME, false);
thermal_ = IThermal::getService(THERMAL_SERVICE_NAME);
ASSERT_NE(thermal_, nullptr);
baseSize_ = 0;
names_.clear();

View file

@ -32,7 +32,7 @@ using ::android::sp;
class VibratorHidlTest : public ::testing::Test {
public:
virtual void SetUp() override {
vibrator = IVibrator::getService(false);
vibrator = IVibrator::getService();
ASSERT_NE(vibrator, nullptr);
}

View file

@ -32,8 +32,7 @@ using ::android::sp;
class VrHidlTest : public ::testing::Test {
public:
void SetUp() override {
// currently test passthrough mode only
vr = IVr::getService(VR_SERVICE_NAME, true);
vr = IVr::getService(VR_SERVICE_NAME);
ASSERT_NE(vr, nullptr);
ASSERT_TRUE(!vr->isRemote());
}