Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4f4fdaf6 authored by Yuexi Ma's avatar Yuexi Ma Committed by Gerrit Code Review
Browse files

Merge "Change vts target base test class name"

parents 66a4ca3c 6b872011
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -28,7 +28,7 @@ cc_test {
        "libutils",
        "libutils",
        "android.hardware.bluetooth@1.0",
        "android.hardware.bluetooth@1.0",
    ],
    ],
    static_libs: ["VtsHalHidlTargetBaseTest"],
    static_libs: ["VtsHalHidlTargetTestBase"],
    cflags: [
    cflags: [
        "-O0",
        "-O0",
        "-g",
        "-g",
+3 −3
Original line number Original line Diff line number Diff line
@@ -23,7 +23,7 @@
#include <hardware/bluetooth.h>
#include <hardware/bluetooth.h>
#include <utils/Log.h>
#include <utils/Log.h>


#include <VtsHalHidlTargetBaseTest.h>
#include <VtsHalHidlTargetTestBase.h>
#include <condition_variable>
#include <condition_variable>
#include <mutex>
#include <mutex>
#include <queue>
#include <queue>
@@ -117,11 +117,11 @@ class ThroughputLogger {
};
};


// The main test class for Bluetooth HIDL HAL.
// The main test class for Bluetooth HIDL HAL.
class BluetoothHidlTest : public ::testing::VtsHalHidlTargetBaseTest {
class BluetoothHidlTest : public ::testing::VtsHalHidlTargetTestBase {
 public:
 public:
  virtual void SetUp() override {
  virtual void SetUp() override {
    // currently test passthrough mode only
    // currently test passthrough mode only
    bluetooth = ::testing::VtsHalHidlTargetBaseTest::getService<IBluetoothHci>();
    bluetooth = ::testing::VtsHalHidlTargetTestBase::getService<IBluetoothHci>();
    ASSERT_NE(bluetooth, nullptr);
    ASSERT_NE(bluetooth, nullptr);
    ALOGI("%s: getService() for bluetooth is %s", __func__,
    ALOGI("%s: getService() for bluetooth is %s", __func__,
          bluetooth->isRemote() ? "remote" : "local");
          bluetooth->isRemote() ? "remote" : "local");
+1 −1
Original line number Original line Diff line number Diff line
@@ -27,7 +27,7 @@ cc_test {
        "libutils",
        "libutils",
        "android.hardware.ir@1.0",
        "android.hardware.ir@1.0",
    ],
    ],
    static_libs: ["VtsHalHidlTargetBaseTest"],
    static_libs: ["VtsHalHidlTargetTestBase"],
    cflags: [
    cflags: [
        "-O0",
        "-O0",
        "-g",
        "-g",
+3 −3
Original line number Original line Diff line number Diff line
@@ -21,7 +21,7 @@
#include <android/hardware/ir/1.0/IConsumerIr.h>
#include <android/hardware/ir/1.0/IConsumerIr.h>
#include <android/hardware/ir/1.0/types.h>
#include <android/hardware/ir/1.0/types.h>


#include <VtsHalHidlTargetBaseTest.h>
#include <VtsHalHidlTargetTestBase.h>
#include <algorithm>
#include <algorithm>


using ::android::hardware::ir::V1_0::IConsumerIr;
using ::android::hardware::ir::V1_0::IConsumerIr;
@@ -31,10 +31,10 @@ using ::android::hardware::Return;
using ::android::sp;
using ::android::sp;


// The main test class for IR HIDL HAL.
// The main test class for IR HIDL HAL.
class ConsumerIrHidlTest : public ::testing::VtsHalHidlTargetBaseTest {
class ConsumerIrHidlTest : public ::testing::VtsHalHidlTargetTestBase {
 public:
 public:
  virtual void SetUp() override {
  virtual void SetUp() override {
    ir = ::testing::VtsHalHidlTargetBaseTest::getService<IConsumerIr>();
    ir = ::testing::VtsHalHidlTargetTestBase::getService<IConsumerIr>();
    ASSERT_NE(ir, nullptr);
    ASSERT_NE(ir, nullptr);
  }
  }


+1 −1
Original line number Original line Diff line number Diff line
@@ -28,7 +28,7 @@ cc_test {
        "libutils",
        "libutils",
        "android.hardware.nfc@1.0",
        "android.hardware.nfc@1.0",
    ],
    ],
    static_libs: ["VtsHalHidlTargetBaseTest"],
    static_libs: ["VtsHalHidlTargetTestBase"],
    cflags: [
    cflags: [
        "-O0",
        "-O0",
        "-g",
        "-g",
Loading