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

Commit 1d6fc8ff authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add sleep to ShouldReportStats Test in libinput_tests"

parents eefafb43 6740e66b
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -18,6 +18,7 @@
#include <input/LatencyStatistics.h>
#include <input/LatencyStatistics.h>
#include <cmath>
#include <cmath>
#include <limits>
#include <limits>
#include <thread>


namespace android {
namespace android {
namespace test {
namespace test {
@@ -65,6 +66,8 @@ TEST(LatencyStatisticsTest, ShouldReportStats) {
    LatencyStatistics stats{0min};
    LatencyStatistics stats{0min};
    stats.addValue(5.0);
    stats.addValue(5.0);


    std::this_thread::sleep_for(1us);

    ASSERT_EQ(stats.shouldReport(), true);
    ASSERT_EQ(stats.shouldReport(), true);
}
}