aboutsummaryrefslogtreecommitdiff
path: root/test/opml.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/opml.cpp')
-rw-r--r--test/opml.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/opml.cpp b/test/opml.cpp
index bcf6fd8c..e85a0e8e 100644
--- a/test/opml.cpp
+++ b/test/opml.cpp
@@ -54,16 +54,16 @@ TEST_CASE("opml::generate creates an XML document with feed URLs in OPML format"
SECTION("A few feeds") {
ConfigContainer cfg;
- Cache rsscache(":memory:", cfg);
+ auto rsscache = Cache::in_memory(cfg);
FeedContainer feeds;
std::shared_ptr<RssFeed> feed =
- std::make_shared<RssFeed>(&rsscache, "https://example.com/feed1.xml");
+ std::make_shared<RssFeed>(rsscache.get(), "https://example.com/feed1.xml");
feed->set_title("Feed 1");
feed->set_link("https://example.com/feed1/");
feeds.add_feed(std::move(feed));
- feed = std::make_shared<RssFeed>(&rsscache, "https://example.com/feed2.xml");
+ feed = std::make_shared<RssFeed>(rsscache.get(), "https://example.com/feed2.xml");
feed->set_title("Feed 2");
feed->set_link("https://example.com/feed2/");
feed->set_tags({"tag", "tag,with,commas", "tag/with/slashes", "tag with spaces"});