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

Commit 68e950ae authored by Ken Chen's avatar Ken Chen Committed by android-build-merger
Browse files

Fix false positive on res_stats checking in cache unit test am: 8cfe5567

am: 7880ca4d

Change-Id: I87f5eb0cbed623798b5616099f70291466f02451
parents 02288f69 7880ca4d
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -215,6 +215,11 @@ class ResolvCacheTest : public ::testing::Test {
        EXPECT_TRUE(params == expected.setup.params) << msg;
        EXPECT_TRUE(params == expected.setup.params) << msg;


        // res_stats checking.
        // res_stats checking.
        if (expected.stats.size() == 0) {
            for (int ns = 0; ns < nscount; ns++) {
                EXPECT_EQ(0U, stats[ns].sample_count) << msg;
            }
        }
        for (size_t i = 0; i < expected.stats.size(); i++) {
        for (size_t i = 0; i < expected.stats.size(); i++) {
            EXPECT_TRUE(stats[i] == expected.stats[i]) << msg;
            EXPECT_TRUE(stats[i] == expected.stats[i]) << msg;
        }
        }