Fix unit tests
[pulseview.git] / test / view / ruler.cpp
index 400f845e52e3aeba85e2fd07ea8aabbf4f089372..37b8d3826cbdc4ad845b8b7c1c7632019bf269cc 100644 (file)
 #include "pv/view/ruler.hpp"
 #include "test/test.hpp"
 
-using namespace pv::view;
+using namespace pv::views::TraceView;
 
 namespace {
        QString format(const pv::util::Timestamp& t)
        {
-               return pv::util::format_si_value(t, "s", pv::util::SIPrefix::none, 6);
+               return pv::util::format_time_si(t, pv::util::SIPrefix::none, 6);
        }
 
        const double e = 0.0001;