#include #include #include #include "../bookmarkstreemodel.hpp" // clazy:excludeall=non-pod-global-static namespace { TEST(bookmarks, QStandardPaths) { const auto file = QStandardPaths::locate(QStandardPaths::AppLocalDataLocation, QString::fromLatin1("bookmarks.xbel")); EXPECT_TRUE(file.isEmpty()) << qUtf8Printable(file); } TEST(bookmarks, BookmarksTreeModel) { BookmarksTreeModel model; QFile f("bookmarks.xbel"); ASSERT_TRUE(f.open(QIODevice::ReadOnly | QIODevice::Text)); EXPECT_TRUE(model.load(&f).isEmpty()); f.close(); } } // namespace