From 9910d38aa76c26b4de9b86f3626eb01bb3a6b24b Mon Sep 17 00:00:00 2001 From: Dan Shi Date: Mon, 3 Feb 2020 16:14:59 -0800 Subject: [PATCH] Remove reference of VtsHalHidlTargetTestBase Bug: 147894326 Test: m -j VtsHalWifiHostapdV1_0TargetTestUtil \ VtsHalSensorsTargetTestUtils Change-Id: If11f23db93333ddd702ce5ebf7c5c0b9583c57fa --- sensors/2.0/vts/functional/VtsHalSensorsV2_0TargetTest.cpp | 2 +- .../vts/utils/include/sensors-vts-utils/SensorsHidlTestBase.h | 3 +-- wifi/hostapd/1.0/vts/functional/hostapd_hidl_call_util.h | 2 -- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/sensors/2.0/vts/functional/VtsHalSensorsV2_0TargetTest.cpp b/sensors/2.0/vts/functional/VtsHalSensorsV2_0TargetTest.cpp index c5eb442cc4..540529d8eb 100644 --- a/sensors/2.0/vts/functional/VtsHalSensorsV2_0TargetTest.cpp +++ b/sensors/2.0/vts/functional/VtsHalSensorsV2_0TargetTest.cpp @@ -303,7 +303,7 @@ int32_t SensorsHidlTest::getInvalidSensorHandle() { // Find a sensor handle that does not exist in the sensor list int32_t maxHandle = 0; for (const SensorInfo& sensor : getSensorsList()) { - maxHandle = max(maxHandle, sensor.sensorHandle); + maxHandle = std::max(maxHandle, sensor.sensorHandle); } return maxHandle + 1; } diff --git a/sensors/common/vts/utils/include/sensors-vts-utils/SensorsHidlTestBase.h b/sensors/common/vts/utils/include/sensors-vts-utils/SensorsHidlTestBase.h index 5fb6c5cc94..54e899b900 100644 --- a/sensors/common/vts/utils/include/sensors-vts-utils/SensorsHidlTestBase.h +++ b/sensors/common/vts/utils/include/sensors-vts-utils/SensorsHidlTestBase.h @@ -20,7 +20,6 @@ #include "sensors-vts-utils/SensorEventsChecker.h" #include "sensors-vts-utils/SensorsHidlEnvironmentBase.h" -#include #include #include #include @@ -130,4 +129,4 @@ class SensorsHidlTestBase : public testing::TestWithParam { std::unordered_set mDirectChannelHandles; }; -#endif // ANDROID_SENSORS_HIDL_TEST_BASE_H \ No newline at end of file +#endif // ANDROID_SENSORS_HIDL_TEST_BASE_H diff --git a/wifi/hostapd/1.0/vts/functional/hostapd_hidl_call_util.h b/wifi/hostapd/1.0/vts/functional/hostapd_hidl_call_util.h index 2f71ccba65..ec7ebeeb46 100644 --- a/wifi/hostapd/1.0/vts/functional/hostapd_hidl_call_util.h +++ b/wifi/hostapd/1.0/vts/functional/hostapd_hidl_call_util.h @@ -25,8 +25,6 @@ #include #include -#include - namespace { namespace detail { template