Loading thermal/2.0/vts/functional/VtsHalThermalV2_0TargetTest.cpp +8 −0 Original line number Diff line number Diff line Loading @@ -192,6 +192,9 @@ TEST_F(ThermalHidlTest, TemperatureTest) { } else { EXPECT_NE(ThermalStatusCode::SUCCESS, status.code); } for (int i = 0; i < temperatures.size(); ++i) { EXPECT_LT(0u, temperatures[i].name.size()); } }); auto types = hidl_enum_range<TemperatureType>(); for (const auto& type : types) { Loading @@ -204,6 +207,7 @@ TEST_F(ThermalHidlTest, TemperatureTest) { } for (int i = 0; i < temperatures.size(); ++i) { EXPECT_EQ(type, temperatures[i].type); EXPECT_LT(0u, temperatures[i].name.size()); } }); } Loading Loading @@ -246,6 +250,9 @@ TEST_F(ThermalHidlTest, CoolingDeviceTest) { } else { EXPECT_NE(ThermalStatusCode::SUCCESS, status.code); } for (int i = 0; i < cooling_devices.size(); ++i) { EXPECT_LT(0u, cooling_devices[i].name.size()); } }); for (int i = 0; i <= static_cast<int>(CoolingType::COMPONENT); ++i) { auto type = static_cast<CoolingType>(i); Loading @@ -258,6 +265,7 @@ TEST_F(ThermalHidlTest, CoolingDeviceTest) { } for (int i = 0; i < cooling_devices.size(); ++i) { EXPECT_EQ(type, cooling_devices[i].type); EXPECT_LT(0u, cooling_devices[i].name.size()); } }); } Loading Loading
thermal/2.0/vts/functional/VtsHalThermalV2_0TargetTest.cpp +8 −0 Original line number Diff line number Diff line Loading @@ -192,6 +192,9 @@ TEST_F(ThermalHidlTest, TemperatureTest) { } else { EXPECT_NE(ThermalStatusCode::SUCCESS, status.code); } for (int i = 0; i < temperatures.size(); ++i) { EXPECT_LT(0u, temperatures[i].name.size()); } }); auto types = hidl_enum_range<TemperatureType>(); for (const auto& type : types) { Loading @@ -204,6 +207,7 @@ TEST_F(ThermalHidlTest, TemperatureTest) { } for (int i = 0; i < temperatures.size(); ++i) { EXPECT_EQ(type, temperatures[i].type); EXPECT_LT(0u, temperatures[i].name.size()); } }); } Loading Loading @@ -246,6 +250,9 @@ TEST_F(ThermalHidlTest, CoolingDeviceTest) { } else { EXPECT_NE(ThermalStatusCode::SUCCESS, status.code); } for (int i = 0; i < cooling_devices.size(); ++i) { EXPECT_LT(0u, cooling_devices[i].name.size()); } }); for (int i = 0; i <= static_cast<int>(CoolingType::COMPONENT); ++i) { auto type = static_cast<CoolingType>(i); Loading @@ -258,6 +265,7 @@ TEST_F(ThermalHidlTest, CoolingDeviceTest) { } for (int i = 0; i < cooling_devices.size(); ++i) { EXPECT_EQ(type, cooling_devices[i].type); EXPECT_LT(0u, cooling_devices[i].name.size()); } }); } Loading