blob: 5bfaf6495de204df74bc04bd48bc9bf8144e6a78 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include "../bookmarkmanager.hpp"
#include <QStandardPaths>
#include <gtest/gtest.h>
// clazy:excludeall=non-pod-global-static
namespace {
TEST(BookmarkManager, QStandardPaths)
{
const auto file = QStandardPaths::locate(QStandardPaths::AppLocalDataLocation, QString::fromLatin1("bookmarks.xbel"));
EXPECT_TRUE(file.isEmpty()) << qUtf8Printable(file);
}
TEST(BookmarkManager, Manager)
{
BookmarkManager manager("bookmarks.xbel");
const auto load_errors = manager.errors();
EXPECT_EQ(load_errors.length(), 0) << qUtf8Printable(load_errors.join('\n'));
}
} // namespace
|