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

Commit 967a68dc authored by Polina Bondarenko's avatar Polina Bondarenko Committed by android-build-merger
Browse files

thermal: fix VTS test for default implementation

am: 3e4a4ce3

Change-Id: If7827eef5f5cc0f5a3ba36341bad93a93d26f349
parents 630eb2d3 3e4a4ce3
Loading
Loading
Loading
Loading
+9 −8
Original line number Diff line number Diff line
@@ -68,9 +68,11 @@ class ThermalHidlTest : public ::testing::VtsHalHidlTargetTestBase {
      if (i < baseSize_) {
        EXPECT_EQ(names_[i], temperatures[i].name.c_str());
      } else {
        // Names must be unique.
          // Names must be unique only for known temperature types.
          if (temperatures[i].type != TemperatureType::UNKNOWN) {
              EXPECT_EQ(names_.end(), std::find(names_.begin(), names_.end(),
                                                temperatures[i].name.c_str()));
          }
          names_.push_back(temperatures[i].name);
      }
    }
@@ -88,9 +90,8 @@ class ThermalHidlTest : public ::testing::VtsHalHidlTargetTestBase {
      if (i < baseSize_) {
        EXPECT_EQ(names_[i], cpuUsages[i].name.c_str());
      } else {
        // Names must be unique.
        EXPECT_EQ(names_.end(), std::find(names_.begin(), names_.end(),
                                          cpuUsages[i].name.c_str()));
          // Names are not guaranteed to be unique because of the current
          // default Thermal HAL implementation.
          names_.push_back(cpuUsages[i].name);
      }
    }