aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-12-03 12:12:30 +0100
committerMax Kellermann <max@duempel.org>2013-12-03 13:15:42 +0100
commit8a5209ad93f860572b3545d56bc6f170449be1dc (patch)
treeb018be9ca1d4d7d137c356502ba3d416d988c30e /test
parent308fdf6e9a7229f2a2f5bb51d9528c39d595e73d (diff)
downloadmpd-8a5209ad93f860572b3545d56bc6f170449be1dc.tar.gz
mpd-8a5209ad93f860572b3545d56bc6f170449be1dc.tar.xz
mpd-8a5209ad93f860572b3545d56bc6f170449be1dc.zip
Tag: remove method AddItem()
Use class TagBuilder instead.
Diffstat (limited to 'test')
-rw-r--r--test/test_vorbis_encoder.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/test_vorbis_encoder.cxx b/test/test_vorbis_encoder.cxx
index 1d95f6deb..bb8731c2f 100644
--- a/test/test_vorbis_encoder.cxx
+++ b/test/test_vorbis_encoder.cxx
@@ -24,6 +24,7 @@
#include "ConfigData.hxx"
#include "stdbin.h"
#include "tag/Tag.hxx"
+#include "tag/TagBuilder.hxx"
#include "util/Error.hxx"
#include <stddef.h>
@@ -81,8 +82,13 @@ main(gcc_unused int argc, gcc_unused char **argv)
encoder_to_stdout(*encoder);
Tag tag;
- tag.AddItem(TAG_ARTIST, "Foo");
- tag.AddItem(TAG_TITLE, "Bar");
+
+ {
+ TagBuilder tag_builder;
+ tag_builder.AddItem(TAG_ARTIST, "Foo");
+ tag_builder.AddItem(TAG_TITLE, "Bar");
+ tag_builder.Commit(tag);
+ }
success = encoder_tag(encoder, &tag, IgnoreError());
assert(success);