Change vts target base test class name

Test: make vts succeed, vts kernel tests and nfc hal tests passed
Change-Id: I95f10ad7a66f261c9030357edd411fe6d94150e8
This commit is contained in:
Yuexi Ma
2017-03-10 00:44:45 -08:00
parent 5e1e202bcc
commit ed2bb4e8f8
47 changed files with 95 additions and 95 deletions

View File

@@ -28,7 +28,7 @@ cc_test {
"libutils",
"android.hardware.audio.effect@2.0",
],
static_libs: ["VtsHalHidlTargetBaseTest"],
static_libs: ["VtsHalHidlTargetTestBase"],
cflags: [
"-O0",
"-g",

View File

@@ -21,7 +21,7 @@
#include <android/hardware/audio/effect/2.0/IEffectsFactory.h>
#include <android/hardware/audio/effect/2.0/types.h>
#include <VtsHalHidlTargetBaseTest.h>
#include <VtsHalHidlTargetTestBase.h>
using ::android::hardware::audio::common::V2_0::Uuid;
using ::android::hardware::audio::effect::V2_0::EffectDescriptor;
@@ -35,10 +35,10 @@ using ::android::hardware::hidl_vec;
using ::android::sp;
// The main test class for Audio Effect HIDL HAL.
class AudioEffectHidlTest : public ::testing::VtsHalHidlTargetBaseTest {
class AudioEffectHidlTest : public ::testing::VtsHalHidlTargetTestBase {
public:
virtual void SetUp() override {
effectsFactory = ::testing::VtsHalHidlTargetBaseTest::getService<IEffectsFactory>();
effectsFactory = ::testing::VtsHalHidlTargetTestBase::getService<IEffectsFactory>();
ASSERT_NE(effectsFactory, nullptr);
}

View File

@@ -27,7 +27,7 @@ cc_test {
"libutils",
"android.hardware.biometrics.fingerprint@2.1",
],
static_libs: ["VtsHalHidlTargetBaseTest"],
static_libs: ["VtsHalHidlTargetTestBase"],
cflags: [
"-O0",
"-g",

View File

@@ -22,7 +22,7 @@
#include <android/hardware/biometrics/fingerprint/2.1/IBiometricsFingerprintClientCallback.h>
#include <hidl/HidlSupport.h>
#include <hidl/HidlTransportSupport.h>
#include <VtsHalHidlTargetBaseTest.h>
#include <VtsHalHidlTargetTestBase.h>
using android::Condition;
using android::hardware::biometrics::fingerprint::V2_1::IBiometricsFingerprint;
@@ -35,7 +35,7 @@ using android::hardware::Return;
using android::Mutex;
using android::sp;
class FingerprintHidlTest : public ::testing::VtsHalHidlTargetBaseTest {
class FingerprintHidlTest : public ::testing::VtsHalHidlTargetTestBase {
protected:
class MyCallback : public IBiometricsFingerprintClientCallback {
@@ -123,7 +123,7 @@ public:
FingerprintHidlTest (): mCallbackCalled(false) {}
virtual void SetUp() override {
mService = ::testing::VtsHalHidlTargetBaseTest::getService<IBiometricsFingerprint>(SERVICE_NAME);
mService = ::testing::VtsHalHidlTargetTestBase::getService<IBiometricsFingerprint>(SERVICE_NAME);
ASSERT_NE(mService, nullptr);
clearErr();

View File

@@ -27,7 +27,7 @@ cc_test {
"libutils",
"android.hardware.boot@1.0",
],
static_libs: ["VtsHalHidlTargetBaseTest"],
static_libs: ["VtsHalHidlTargetTestBase"],
cflags: [
"-O0",
"-g",

View File

@@ -21,7 +21,7 @@
#include <android/hardware/boot/1.0/IBootControl.h>
#include <VtsHalHidlTargetBaseTest.h>
#include <VtsHalHidlTargetTestBase.h>
using ::android::hardware::boot::V1_0::IBootControl;
using ::android::hardware::boot::V1_0::CommandResult;
@@ -32,10 +32,10 @@ using ::android::hardware::Return;
using ::android::sp;
// The main test class for the Boot HIDL HAL.
class BootHidlTest : public ::testing::VtsHalHidlTargetBaseTest {
class BootHidlTest : public ::testing::VtsHalHidlTargetTestBase {
public:
virtual void SetUp() override {
boot = ::testing::VtsHalHidlTargetBaseTest::getService<IBootControl>();
boot = ::testing::VtsHalHidlTargetTestBase::getService<IBootControl>();
ASSERT_NE(boot, nullptr);
}

View File

@@ -28,7 +28,7 @@ cc_test {
"libutils",
"android.hardware.broadcastradio@1.0",
],
static_libs: ["VtsHalHidlTargetBaseTest"],
static_libs: ["VtsHalHidlTargetTestBase"],
cflags: [
"-O0",
"-g",

View File

@@ -15,7 +15,7 @@
*/
#define LOG_TAG "BroadcastRadioHidlHalTest"
#include <VtsHalHidlTargetBaseTest.h>
#include <VtsHalHidlTargetTestBase.h>
#include <android-base/logging.h>
#include <cutils/native_handle.h>
#include <cutils/properties.h>
@@ -51,11 +51,11 @@ using ::android::hardware::broadcastradio::V1_0::MetaData;
// The main test class for Broadcast Radio HIDL HAL.
class BroadcastRadioHidlTest : public ::testing::VtsHalHidlTargetBaseTest {
class BroadcastRadioHidlTest : public ::testing::VtsHalHidlTargetTestBase {
protected:
virtual void SetUp() override {
sp<IBroadcastRadioFactory> factory =
::testing::VtsHalHidlTargetBaseTest::getService<IBroadcastRadioFactory>();
::testing::VtsHalHidlTargetTestBase::getService<IBroadcastRadioFactory>();
if (factory != 0) {
factory->connectModule(Class::AM_FM,
[&](Result retval, const ::android::sp<IBroadcastRadio>& result) {

View File

@@ -29,7 +29,7 @@ cc_test {
"android.hardware.broadcastradio@1.0",
"android.hardware.broadcastradio@1.1",
],
static_libs: ["VtsHalHidlTargetBaseTest"],
static_libs: ["VtsHalHidlTargetTestBase"],
cflags: [
"-O0",
"-g",

View File

@@ -15,7 +15,7 @@
*/
#define LOG_TAG "BroadcastRadioHidlHalTest"
#include <VtsHalHidlTargetBaseTest.h>
#include <VtsHalHidlTargetTestBase.h>
#include <android-base/logging.h>
#include <cutils/native_handle.h>
#include <cutils/properties.h>
@@ -52,10 +52,10 @@ using ::android::hardware::broadcastradio::V1_1::Result;
// The main test class for Broadcast Radio HIDL HAL.
class BroadcastRadioHidlTest : public ::testing::VtsHalHidlTargetBaseTest {
class BroadcastRadioHidlTest : public ::testing::VtsHalHidlTargetTestBase {
protected:
virtual void SetUp() override {
auto factory = ::testing::VtsHalHidlTargetBaseTest::getService<IBroadcastRadioFactory>();
auto factory = ::testing::VtsHalHidlTargetTestBase::getService<IBroadcastRadioFactory>();
if (factory != 0) {
factory->connectModule(Class::AM_FM,
[&](Result retval, const ::android::sp<IBroadcastRadio>& result) {

View File

@@ -29,7 +29,7 @@ cc_test {
"libcamera_metadata",
"libui"
],
static_libs: ["VtsHalHidlTargetBaseTest"],
static_libs: ["VtsHalHidlTargetTestBase"],
cflags: [
"-O0",
"-g",

View File

@@ -19,7 +19,7 @@
#include <android/hardware/camera/device/3.2/ICameraDevice.h>
#include <android/log.h>
#include <ui/GraphicBuffer.h>
#include <VtsHalHidlTargetBaseTest.h>
#include <VtsHalHidlTargetTestBase.h>
#include <regex>
#include "system/camera_metadata.h"
#include <hardware/gralloc.h>
@@ -131,7 +131,7 @@ private:
void CameraHidlEnvironment::SetUp() {
// TODO: test the binderized mode
mProvider = ::testing::VtsHalHidlTargetBaseTest::getService<ICameraProvider>(CAMERA_PASSTHROUGH_SERVICE_NAME);
mProvider = ::testing::VtsHalHidlTargetTestBase::getService<ICameraProvider>(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);
@@ -142,7 +142,7 @@ void CameraHidlEnvironment::TearDown() {
}
// The main test class for camera HIDL HAL.
class CameraHidlTest : public ::testing::VtsHalHidlTargetBaseTest {
class CameraHidlTest : public ::testing::VtsHalHidlTargetTestBase {
public:
virtual void SetUp() override {}
virtual void TearDown() override {}

View File

@@ -25,7 +25,7 @@ cc_test {
"libutils",
"android.hardware.contexthub@1.0",
],
static_libs: ["VtsHalHidlTargetBaseTest"],
static_libs: ["VtsHalHidlTargetTestBase"],
cflags: [
"-O0",
"-g",

View File

@@ -21,7 +21,7 @@
#include <android/hardware/contexthub/1.0/IContexthubCallback.h>
#include <android/hardware/contexthub/1.0/types.h>
#include <android/log.h>
#include <VtsHalHidlTargetBaseTest.h>
#include <VtsHalHidlTargetTestBase.h>
#include <cinttypes>
#include <future>
@@ -78,7 +78,7 @@ std::vector<uint32_t> getHubIds() {
static std::vector<uint32_t> hubIds;
if (hubIds.size() == 0) {
sp<IContexthub> hubApi = ::testing::VtsHalHidlTargetBaseTest::getService<IContexthub>();
sp<IContexthub> hubApi = ::testing::VtsHalHidlTargetTestBase::getService<IContexthub>();
if (hubApi != nullptr) {
for (ContextHub hub : getHubsSync(hubApi)) {
@@ -93,10 +93,10 @@ std::vector<uint32_t> getHubIds() {
// Base test fixture that initializes the HAL and makes the context hub API
// handle available
class ContexthubHidlTestBase : public ::testing::VtsHalHidlTargetBaseTest {
class ContexthubHidlTestBase : public ::testing::VtsHalHidlTargetTestBase {
public:
virtual void SetUp() override {
hubApi = ::testing::VtsHalHidlTargetBaseTest::getService<IContexthub>();
hubApi = ::testing::VtsHalHidlTargetTestBase::getService<IContexthub>();
ASSERT_NE(hubApi, nullptr);
// getHubs() must be called at least once for proper initialization of the

View File

@@ -28,7 +28,7 @@ cc_test {
"libutils",
"android.hardware.gatekeeper@1.0",
],
static_libs: ["VtsHalHidlTargetBaseTest"],
static_libs: ["VtsHalHidlTargetTestBase"],
cflags: [
"-O0",
"-g",

View File

@@ -30,7 +30,7 @@
#include <android/hardware/gatekeeper/1.0/IGatekeeper.h>
#include <android/hardware/gatekeeper/1.0/types.h>
#include <VtsHalHidlTargetBaseTest.h>
#include <VtsHalHidlTargetTestBase.h>
using ::android::hardware::hidl_string;
using ::android::hardware::hidl_vec;
@@ -76,7 +76,7 @@ static const hw_auth_token_t *toAuthToken(GatekeeperResponse &rsp) {
}
// The main test class for Gatekeeper HIDL HAL.
class GatekeeperHidlTest : public ::testing::VtsHalHidlTargetBaseTest {
class GatekeeperHidlTest : public ::testing::VtsHalHidlTargetTestBase {
protected:
void setUid(uint32_t uid) { uid_ = uid; }
@@ -187,7 +187,7 @@ class GatekeeperHidlTest : public ::testing::VtsHalHidlTargetBaseTest {
GatekeeperHidlTest() : uid_(0) {}
virtual void SetUp() override {
GatekeeperResponse rsp;
gatekeeper_ = ::testing::VtsHalHidlTargetBaseTest::getService<IGatekeeper>();
gatekeeper_ = ::testing::VtsHalHidlTargetTestBase::getService<IGatekeeper>();
ASSERT_NE(nullptr, gatekeeper_.get());
doDeleteAllUsers(rsp);
}

View File

@@ -28,7 +28,7 @@ cc_test {
"libnativehelper",
"libutils",
],
static_libs: ["VtsHalHidlTargetBaseTest"],
static_libs: ["VtsHalHidlTargetTestBase"],
cflags: [
"-O0",
"-g",

View File

@@ -18,7 +18,7 @@
#include <android/hardware/gnss/1.0/IGnss.h>
#include <android/log.h>
#include <VtsHalHidlTargetBaseTest.h>
#include <VtsHalHidlTargetTestBase.h>
#include <chrono>
#include <condition_variable>
@@ -36,7 +36,7 @@ using android::sp;
#define TIMEOUT_SECONDS 5 // for basic commands/responses
// The main test class for GNSS HAL.
class GnssHalTest : public ::testing::VtsHalHidlTargetBaseTest {
class GnssHalTest : public ::testing::VtsHalHidlTargetTestBase {
public:
virtual void SetUp() override {
/* TODO(b/35678469): Setup the init.rc for VTS such that there's a
@@ -45,7 +45,7 @@ class GnssHalTest : public ::testing::VtsHalHidlTargetBaseTest {
* callbacks trigger.
*/
gnss_hal_ = ::testing::VtsHalHidlTargetBaseTest::getService<IGnss>();
gnss_hal_ = ::testing::VtsHalHidlTargetTestBase::getService<IGnss>();
ASSERT_NE(gnss_hal_, nullptr);
gnss_cb_ = new GnssCallback(*this);

View File

@@ -22,7 +22,7 @@ cc_library_static {
"android.hardware.graphics.allocator@2.0",
],
static_libs: [
"VtsHalHidlTargetBaseTest",
"VtsHalHidlTargetTestBase",
],
cflags: [
"-Wall",
@@ -50,7 +50,7 @@ cc_test {
],
static_libs: [
"libVtsHalGraphicsAllocatorTestUtils",
"VtsHalHidlTargetBaseTest",
"VtsHalHidlTargetTestBase",
],
cflags: [
"-Wall",

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
#include <VtsHalHidlTargetBaseTest.h>
#include <VtsHalHidlTargetTestBase.h>
#include "VtsHalGraphicsAllocatorTestUtils.h"
@@ -28,7 +28,7 @@ namespace tests {
Allocator::Allocator() { init(); }
void Allocator::init() {
mAllocator = ::testing::VtsHalHidlTargetBaseTest::getService<IAllocator>();
mAllocator = ::testing::VtsHalHidlTargetTestBase::getService<IAllocator>();
ASSERT_NE(nullptr, mAllocator.get()) << "failed to get allocator service";
std::vector<IAllocator::Capability> capabilities = getCapabilities();

View File

@@ -17,7 +17,7 @@
#define LOG_TAG "graphics_allocator_hidl_hal_test"
#include <android-base/logging.h>
#include <VtsHalHidlTargetBaseTest.h>
#include <VtsHalHidlTargetTestBase.h>
#include "VtsHalGraphicsAllocatorTestUtils.h"
@@ -40,7 +40,7 @@ using android::hardware::graphics::common::V1_0::PixelFormat;
} \
} while (0)
class GraphicsAllocatorHidlTest : public ::testing::VtsHalHidlTargetBaseTest {
class GraphicsAllocatorHidlTest : public ::testing::VtsHalHidlTargetTestBase {
protected:
void SetUp() override {
ASSERT_NO_FATAL_FAILURE(mAllocator = std::make_unique<Allocator>());

View File

@@ -20,7 +20,7 @@ cc_library_static {
srcs: ["VtsHalGraphicsComposerTestUtils.cpp"],
shared_libs: ["android.hardware.graphics.composer@2.1"],
static_libs: [
"VtsHalHidlTargetBaseTest",
"VtsHalHidlTargetTestBase",
],
cflags: [
"-Wall",
@@ -55,7 +55,7 @@ cc_test {
"libVtsHalGraphicsAllocatorTestUtils",
"libVtsHalGraphicsComposerTestUtils",
"libVtsHalGraphicsMapperTestUtils",
"VtsHalHidlTargetBaseTest",
"VtsHalHidlTargetTestBase",
],
cflags: [
"-Wall",

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
#include <VtsHalHidlTargetBaseTest.h>
#include <VtsHalHidlTargetTestBase.h>
#include "VtsHalGraphicsComposerTestUtils.h"
@@ -28,7 +28,7 @@ namespace tests {
Composer::Composer() { init(); }
void Composer::init() {
mComposer = ::testing::VtsHalHidlTargetBaseTest::getService<IComposer>();
mComposer = ::testing::VtsHalHidlTargetTestBase::getService<IComposer>();
ASSERT_NE(nullptr, mComposer.get()) << "failed to get composer service";
std::vector<IComposer::Capability> capabilities = getCapabilities();

View File

@@ -22,7 +22,7 @@
#include "VtsHalGraphicsComposerTestUtils.h"
#include "VtsHalGraphicsMapperTestUtils.h"
#include <VtsHalHidlTargetBaseTest.h>
#include <VtsHalHidlTargetTestBase.h>
#include <unistd.h>
#include <algorithm>
@@ -134,7 +134,7 @@ class GraphicsComposerCallback : public IComposerCallback {
int mInvalidVsyncCount = 0;
};
class GraphicsComposerHidlTest : public ::testing::VtsHalHidlTargetBaseTest {
class GraphicsComposerHidlTest : public ::testing::VtsHalHidlTargetTestBase {
protected:
void SetUp() override {
ASSERT_NO_FATAL_FAILURE(mComposer = std::make_unique<Composer>());

View File

@@ -23,7 +23,7 @@ cc_library_static {
"android.hardware.graphics.mapper@2.0",
],
static_libs: [
"VtsHalHidlTargetBaseTest",
"VtsHalHidlTargetTestBase",
"libVtsHalGraphicsAllocatorTestUtils",
],
cflags: [
@@ -56,7 +56,7 @@ cc_test {
static_libs: [
"libVtsHalGraphicsAllocatorTestUtils",
"libVtsHalGraphicsMapperTestUtils",
"VtsHalHidlTargetBaseTest",
"VtsHalHidlTargetTestBase",
],
cflags: [
"-Wall",

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
#include <VtsHalHidlTargetBaseTest.h>
#include <VtsHalHidlTargetTestBase.h>
#include "VtsHalGraphicsMapperTestUtils.h"
@@ -32,7 +32,7 @@ using android::hardware::graphics::allocator::V2_0::Error;
Mapper::Mapper() { init(); }
void Mapper::init() {
mMapper = ::testing::VtsHalHidlTargetBaseTest::getService<IMapper>();
mMapper = ::testing::VtsHalHidlTargetTestBase::getService<IMapper>();
ASSERT_NE(nullptr, mMapper.get()) << "failed to get mapper service";
ASSERT_FALSE(mMapper->isRemote()) << "mapper is not in passthrough mode";
}

View File

@@ -17,7 +17,7 @@
#define LOG_TAG "graphics_mapper_hidl_hal_test"
#include <android-base/logging.h>
#include <VtsHalHidlTargetBaseTest.h>
#include <VtsHalHidlTargetTestBase.h>
#include <sync/sync.h>
#include "VtsHalGraphicsMapperTestUtils.h"
@@ -32,7 +32,7 @@ namespace {
using namespace android::hardware::graphics::allocator::V2_0;
using namespace android::hardware::graphics::allocator::V2_0::tests;
class GraphicsMapperHidlTest : public ::testing::VtsHalHidlTargetBaseTest {
class GraphicsMapperHidlTest : public ::testing::VtsHalHidlTargetTestBase {
protected:
void SetUp() override {
ASSERT_NO_FATAL_FAILURE(mAllocator = std::make_unique<Allocator>());

View File

@@ -25,7 +25,7 @@ cc_test {
"libutils",
"android.hardware.light@2.0",
],
static_libs: ["VtsHalHidlTargetBaseTest"],
static_libs: ["VtsHalHidlTargetTestBase"],
cflags: [
"-O0",
"-g",

View File

@@ -19,7 +19,7 @@
#include <android-base/logging.h>
#include <android/hardware/light/2.0/ILight.h>
#include <android/hardware/light/2.0/types.h>
#include <VtsHalHidlTargetBaseTest.h>
#include <VtsHalHidlTargetTestBase.h>
#include <set>
#include <unistd.h>
@@ -72,10 +72,10 @@ const static std::set<Type> kAllTypes = {
Type::WIFI
};
class LightHidlTest : public ::testing::VtsHalHidlTargetBaseTest {
class LightHidlTest : public ::testing::VtsHalHidlTargetTestBase {
public:
virtual void SetUp() override {
light = ::testing::VtsHalHidlTargetBaseTest::getService<ILight>();
light = ::testing::VtsHalHidlTargetTestBase::getService<ILight>();
ASSERT_NE(light, nullptr);
LOG(INFO) << "Test is remote " << light->isRemote();

View File

@@ -27,7 +27,7 @@ cc_test {
"libutils",
"android.hardware.memtrack@1.0",
],
static_libs: ["VtsHalHidlTargetBaseTest"],
static_libs: ["VtsHalHidlTargetTestBase"],
cflags: [
"-O0",
"-g",

View File

@@ -18,7 +18,7 @@
#include <android-base/logging.h>
#include <android/hardware/memtrack/1.0/IMemtrack.h>
#include <VtsHalHidlTargetBaseTest.h>
#include <VtsHalHidlTargetTestBase.h>
#include <algorithm>
#include <vector>
@@ -34,10 +34,10 @@ using ::android::sp;
using std::vector;
using std::count_if;
class MemtrackHidlTest : public ::testing::VtsHalHidlTargetBaseTest {
class MemtrackHidlTest : public ::testing::VtsHalHidlTargetTestBase {
public:
virtual void SetUp() override {
memtrack = ::testing::VtsHalHidlTargetBaseTest::getService<IMemtrack>();
memtrack = ::testing::VtsHalHidlTargetTestBase::getService<IMemtrack>();
ASSERT_NE(memtrack, nullptr);
}

View File

@@ -28,7 +28,7 @@ cc_test {
"libutils",
"android.hardware.power@1.0",
],
static_libs: ["VtsHalHidlTargetBaseTest"],
static_libs: ["VtsHalHidlTargetTestBase"],
cflags: [
"-O0",
"-g",

View File

@@ -22,7 +22,7 @@
#include <android-base/unique_fd.h>
#include <android/hardware/power/1.0/IPower.h>
#include <VtsHalHidlTargetBaseTest.h>
#include <VtsHalHidlTargetTestBase.h>
#include <algorithm>
@@ -43,10 +43,10 @@ using std::vector;
#define AVAILABLE_GOVERNORS_PATH \
"/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors"
class PowerHidlTest : public ::testing::VtsHalHidlTargetBaseTest {
class PowerHidlTest : public ::testing::VtsHalHidlTargetTestBase {
public:
virtual void SetUp() override {
power = ::testing::VtsHalHidlTargetBaseTest::getService<IPower>();
power = ::testing::VtsHalHidlTargetTestBase::getService<IPower>();
ASSERT_NE(power, nullptr);
}

View File

@@ -25,7 +25,7 @@ cc_test {
"liblog",
"libutils",
],
static_libs: ["VtsHalHidlTargetBaseTest"],
static_libs: ["VtsHalHidlTargetTestBase"],
cflags: [
"-O0",
"-g",

View File

@@ -20,7 +20,7 @@
#include <android/hardware/sensors/1.0/types.h>
#include <android/log.h>
#include <cutils/ashmem.h>
#include <VtsHalHidlTargetBaseTest.h>
#include <VtsHalHidlTargetTestBase.h>
#include <hardware/sensors.h> // for sensor type strings
#include <algorithm>
@@ -80,7 +80,7 @@ class SensorsHidlEnvironment : public ::testing::Environment {
};
void SensorsHidlEnvironment::SetUp() {
sensors = ::testing::VtsHalHidlTargetBaseTest::getService<ISensors>();
sensors = ::testing::VtsHalHidlTargetTestBase::getService<ISensors>();
ALOGI_IF(sensors, "sensors is not nullptr, %p", sensors.get());
ASSERT_NE(sensors, nullptr);
@@ -309,7 +309,7 @@ SensorsTestSharedMemory* SensorsTestSharedMemory::create(SharedMemType type, siz
}
// The main test class for SENSORS HIDL HAL.
class SensorsHidlTest : public ::testing::VtsHalHidlTargetBaseTest {
class SensorsHidlTest : public ::testing::VtsHalHidlTargetTestBase {
public:
virtual void SetUp() override {
}

View File

@@ -28,7 +28,7 @@ cc_test {
"libutils",
"android.hardware.soundtrigger@2.0",
],
static_libs: ["VtsHalHidlTargetBaseTest"],
static_libs: ["VtsHalHidlTargetTestBase"],
cflags: [
"-O0",
"-g",

View File

@@ -28,7 +28,7 @@
#include <android/hardware/soundtrigger/2.0/ISoundTriggerHw.h>
#include <android/hardware/soundtrigger/2.0/types.h>
#include <VtsHalHidlTargetBaseTest.h>
#include <VtsHalHidlTargetTestBase.h>
#define SHORT_TIMEOUT_PERIOD (1)
@@ -86,10 +86,10 @@ class Monitor {
};
// The main test class for Sound Trigger HIDL HAL.
class SoundTriggerHidlTest : public ::testing::VtsHalHidlTargetBaseTest {
class SoundTriggerHidlTest : public ::testing::VtsHalHidlTargetTestBase {
public:
virtual void SetUp() override {
mSoundTriggerHal = ::testing::VtsHalHidlTargetBaseTest::getService<ISoundTriggerHw>("sound_trigger.primary");
mSoundTriggerHal = ::testing::VtsHalHidlTargetTestBase::getService<ISoundTriggerHw>("sound_trigger.primary");
ASSERT_NE(nullptr, mSoundTriggerHal.get());
mCallback = new SoundTriggerHwCallback(*this);
ASSERT_NE(nullptr, mCallback.get());

View File

@@ -28,7 +28,7 @@ cc_test {
"libutils",
"android.hardware.thermal@1.0",
],
static_libs: ["VtsHalHidlTargetBaseTest"],
static_libs: ["VtsHalHidlTargetTestBase"],
cflags: [
"-O0",
"-g",

View File

@@ -24,7 +24,7 @@
#include <android-base/logging.h>
#include <android/hardware/thermal/1.0/IThermal.h>
#include <android/hardware/thermal/1.0/types.h>
#include <VtsHalHidlTargetBaseTest.h>
#include <VtsHalHidlTargetTestBase.h>
#include <unistd.h>
using ::android::hardware::hidl_string;
@@ -46,10 +46,10 @@ using ::android::sp;
#define MAX_FAN_SPEED 20000
// The main test class for THERMAL HIDL HAL.
class ThermalHidlTest : public ::testing::VtsHalHidlTargetBaseTest {
class ThermalHidlTest : public ::testing::VtsHalHidlTargetTestBase {
public:
virtual void SetUp() override {
thermal_ = ::testing::VtsHalHidlTargetBaseTest::getService<IThermal>();
thermal_ = ::testing::VtsHalHidlTargetTestBase::getService<IThermal>();
ASSERT_NE(thermal_, nullptr);
baseSize_ = 0;
names_.clear();

View File

@@ -28,7 +28,7 @@ cc_test {
"libutils",
"android.hardware.tv.input@1.0",
],
static_libs: ["VtsHalHidlTargetBaseTest"],
static_libs: ["VtsHalHidlTargetTestBase"],
cflags: [
"-O0",
"-g",

View File

@@ -21,7 +21,7 @@
#include <android/hardware/tv/input/1.0/ITvInput.h>
#include <android/hardware/tv/input/1.0/ITvInputCallback.h>
#include <VtsHalHidlTargetBaseTest.h>
#include <VtsHalHidlTargetTestBase.h>
#include <utils/KeyedVector.h>
#include <mutex>
#include <vector>
@@ -43,10 +43,10 @@ using ::android::sp;
#define DEFAULT_ID INT32_MIN
/* The main test class for TV Input HIDL HAL. */
class TvInputHidlTest : public ::testing::VtsHalHidlTargetBaseTest {
class TvInputHidlTest : public ::testing::VtsHalHidlTargetTestBase {
public:
virtual void SetUp() override {
tv_input_ = ::testing::VtsHalHidlTargetBaseTest::getService<ITvInput>();
tv_input_ = ::testing::VtsHalHidlTargetTestBase::getService<ITvInput>();
ASSERT_NE(tv_input_, nullptr);
tv_input_callback_ = new TvInputCallback(*this);
ASSERT_NE(tv_input_callback_, nullptr);

View File

@@ -28,7 +28,7 @@ cc_test {
"libutils",
"android.hardware.usb@1.0",
],
static_libs: ["VtsHalHidlTargetBaseTest"],
static_libs: ["VtsHalHidlTargetTestBase"],
cflags: [
"-O0",
"-g",

View File

@@ -21,7 +21,7 @@
#include <android/hardware/usb/1.0/IUsbCallback.h>
#include <android/hardware/usb/1.0/types.h>
#include <VtsHalHidlTargetBaseTest.h>
#include <VtsHalHidlTargetTestBase.h>
#include <stdlib.h>
#include <chrono>
#include <condition_variable>
@@ -50,7 +50,7 @@ using ::android::sp;
#define USB_SERVICE_NAME "usb_hal"
// The main test class for the USB hidl HAL
class UsbHidlTest : public ::testing::VtsHalHidlTargetBaseTest {
class UsbHidlTest : public ::testing::VtsHalHidlTargetTestBase {
public:
// Callback class for the USB HIDL hal.
// Usb Hal will call this object upon role switch or port query.
@@ -97,7 +97,7 @@ class UsbHidlTest : public ::testing::VtsHalHidlTargetBaseTest {
virtual void SetUp() override {
ALOGI("Setup");
usb = ::testing::VtsHalHidlTargetBaseTest::getService<IUsb>(USB_SERVICE_NAME);
usb = ::testing::VtsHalHidlTargetTestBase::getService<IUsb>(USB_SERVICE_NAME);
ASSERT_NE(usb, nullptr);
usb_cb_2 = new UsbCallback(*this, 2);

View File

@@ -25,7 +25,7 @@ cc_test {
"libutils",
"android.hardware.vibrator@1.0",
],
static_libs: ["VtsHalHidlTargetBaseTest"],
static_libs: ["VtsHalHidlTargetTestBase"],
cflags: [
"-O0",
"-g",

View File

@@ -19,7 +19,7 @@
#include <android-base/logging.h>
#include <android/hardware/vibrator/1.0/IVibrator.h>
#include <android/hardware/vibrator/1.0/types.h>
#include <VtsHalHidlTargetBaseTest.h>
#include <VtsHalHidlTargetTestBase.h>
#include <unistd.h>
using ::android::hardware::vibrator::V1_0::IVibrator;
@@ -29,10 +29,10 @@ using ::android::hardware::Void;
using ::android::sp;
// The main test class for VIBRATOR HIDL HAL.
class VibratorHidlTest : public ::testing::VtsHalHidlTargetBaseTest {
class VibratorHidlTest : public ::testing::VtsHalHidlTargetTestBase {
public:
virtual void SetUp() override {
vibrator = ::testing::VtsHalHidlTargetBaseTest::getService<IVibrator>();
vibrator = ::testing::VtsHalHidlTargetTestBase::getService<IVibrator>();
ASSERT_NE(vibrator, nullptr);
}

View File

@@ -24,7 +24,7 @@ cc_test {
"libutils",
"android.hardware.vr@1.0",
],
static_libs: ["VtsHalHidlTargetBaseTest"],
static_libs: ["VtsHalHidlTargetTestBase"],
cflags: [
"-O0",
"-g",

View File

@@ -18,7 +18,7 @@
#include <android-base/logging.h>
#include <android/hardware/vr/1.0/IVr.h>
#include <android/log.h>
#include <VtsHalHidlTargetBaseTest.h>
#include <VtsHalHidlTargetTestBase.h>
#include <hardware/vr.h>
using ::android::hardware::vr::V1_0::IVr;
@@ -27,10 +27,10 @@ using ::android::hardware::Void;
using ::android::sp;
// The main test class for VR HIDL HAL.
class VrHidlTest : public ::testing::VtsHalHidlTargetBaseTest {
class VrHidlTest : public ::testing::VtsHalHidlTargetTestBase {
public:
void SetUp() override {
vr = ::testing::VtsHalHidlTargetBaseTest::getService<IVr>();
vr = ::testing::VtsHalHidlTargetTestBase::getService<IVr>();
ASSERT_NE(vr, nullptr);
}