From 8735a7d93559eb23ba1ddf103ee9d46223d52d17 Mon Sep 17 00:00:00 2001 From: sqian Date: Mon, 9 Oct 2017 17:16:12 -0700 Subject: [PATCH] Refactor radio folder for 1.0 and 1.1 Remove unused environment variable. Test: run vts Bug: 63760809 Change-Id: Iff7919980d7bbe0e9f8a73a3679d37426faec679 Merged-In: Iff7919980d7bbe0e9f8a73a3679d37426faec679 --- radio/1.0/vts/functional/VtsHalRadioV1_0TargetTest.cpp | 1 - radio/1.0/vts/functional/VtsHalSapV1_0TargetTest.cpp | 2 -- radio/1.0/vts/functional/radio_hidl_hal_utils_v1_0.h | 7 ------- radio/1.0/vts/functional/sap_hidl_hal_utils.h | 9 +-------- radio/1.1/vts/functional/VtsHalRadioV1_1TargetTest.cpp | 1 - radio/1.1/vts/functional/radio_hidl_hal_utils_v1_1.h | 9 +-------- 6 files changed, 2 insertions(+), 27 deletions(-) diff --git a/radio/1.0/vts/functional/VtsHalRadioV1_0TargetTest.cpp b/radio/1.0/vts/functional/VtsHalRadioV1_0TargetTest.cpp index 3448494ffd..a3eb54cf18 100644 --- a/radio/1.0/vts/functional/VtsHalRadioV1_0TargetTest.cpp +++ b/radio/1.0/vts/functional/VtsHalRadioV1_0TargetTest.cpp @@ -17,7 +17,6 @@ #include int main(int argc, char** argv) { - ::testing::AddGlobalTestEnvironment(new RadioHidlEnvironment); ::testing::InitGoogleTest(&argc, argv); // setup seed for rand function diff --git a/radio/1.0/vts/functional/VtsHalSapV1_0TargetTest.cpp b/radio/1.0/vts/functional/VtsHalSapV1_0TargetTest.cpp index 5e5c50c7ad..84b67c9453 100644 --- a/radio/1.0/vts/functional/VtsHalSapV1_0TargetTest.cpp +++ b/radio/1.0/vts/functional/VtsHalSapV1_0TargetTest.cpp @@ -17,8 +17,6 @@ #include int main(int argc, char** argv) { - // Add Sim-access Profile Hidl Environment - ::testing::AddGlobalTestEnvironment(new SapHidlEnvironment); ::testing::InitGoogleTest(&argc, argv); // setup seed for rand function diff --git a/radio/1.0/vts/functional/radio_hidl_hal_utils_v1_0.h b/radio/1.0/vts/functional/radio_hidl_hal_utils_v1_0.h index b0d67dad94..b60887c74b 100644 --- a/radio/1.0/vts/functional/radio_hidl_hal_utils_v1_0.h +++ b/radio/1.0/vts/functional/radio_hidl_hal_utils_v1_0.h @@ -538,11 +538,4 @@ class RadioHidlTest : public ::testing::VtsHalHidlTargetTestBase { sp radio; sp radioRsp; sp radioInd; -}; - -// A class for test environment setup -class RadioHidlEnvironment : public ::testing::Environment { - public: - virtual void SetUp() {} - virtual void TearDown() {} }; \ No newline at end of file diff --git a/radio/1.0/vts/functional/sap_hidl_hal_utils.h b/radio/1.0/vts/functional/sap_hidl_hal_utils.h index 7126b06e03..fb142b796f 100644 --- a/radio/1.0/vts/functional/sap_hidl_hal_utils.h +++ b/radio/1.0/vts/functional/sap_hidl_hal_utils.h @@ -102,11 +102,4 @@ class SapHidlTest : public ::testing::VtsHalHidlTargetTestBase { /* Sap Callback object */ sp sapCb; -}; - -// A class for test environment setup -class SapHidlEnvironment : public ::testing::Environment { - public: - virtual void SetUp() {} - virtual void TearDown() {} -}; +}; \ No newline at end of file diff --git a/radio/1.1/vts/functional/VtsHalRadioV1_1TargetTest.cpp b/radio/1.1/vts/functional/VtsHalRadioV1_1TargetTest.cpp index 09351c850a..107a9e0d4c 100644 --- a/radio/1.1/vts/functional/VtsHalRadioV1_1TargetTest.cpp +++ b/radio/1.1/vts/functional/VtsHalRadioV1_1TargetTest.cpp @@ -17,7 +17,6 @@ #include int main(int argc, char** argv) { - ::testing::AddGlobalTestEnvironment(new RadioHidlEnvironment); ::testing::InitGoogleTest(&argc, argv); int status = RUN_ALL_TESTS(); diff --git a/radio/1.1/vts/functional/radio_hidl_hal_utils_v1_1.h b/radio/1.1/vts/functional/radio_hidl_hal_utils_v1_1.h index c797e352bd..3e31459169 100644 --- a/radio/1.1/vts/functional/radio_hidl_hal_utils_v1_1.h +++ b/radio/1.1/vts/functional/radio_hidl_hal_utils_v1_1.h @@ -561,11 +561,4 @@ class RadioHidlTest_v1_1 : public ::testing::VtsHalHidlTargetTestBase { sp<::android::hardware::radio::V1_1::IRadio> radio_v1_1; sp radioRsp_v1_1; sp radioInd_v1_1; -}; - -// A class for test environment setup -class RadioHidlEnvironment : public ::testing::Environment { - public: - virtual void SetUp() {} - virtual void TearDown() {} -}; +}; \ No newline at end of file