Check temperature and cooling device name not empty

Bug: 116540200
Test: atest VtsHalThermalV2_0TargetTest
Change-Id: I61bfb32ed6115d711dfcc82c2c3ff6eb29951ef2
diff --git a/thermal/2.0/vts/functional/VtsHalThermalV2_0TargetTest.cpp b/thermal/2.0/vts/functional/VtsHalThermalV2_0TargetTest.cpp
index cc2f3df..d0f2e84 100644
--- a/thermal/2.0/vts/functional/VtsHalThermalV2_0TargetTest.cpp
+++ b/thermal/2.0/vts/functional/VtsHalThermalV2_0TargetTest.cpp
@@ -192,6 +192,9 @@
                                          } 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) {
@@ -204,6 +207,7 @@
                 }
                 for (int i = 0; i < temperatures.size(); ++i) {
                     EXPECT_EQ(type, temperatures[i].type);
+                    EXPECT_LT(0u, temperatures[i].name.size());
                 }
             });
     }
@@ -246,6 +250,9 @@
             } 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);
@@ -258,6 +265,7 @@
                 }
                 for (int i = 0; i < cooling_devices.size(); ++i) {
                     EXPECT_EQ(type, cooling_devices[i].type);
+                    EXPECT_LT(0u, cooling_devices[i].name.size());
                 }
             });
     }