diff --git a/tests/test_apetag.cpp b/tests/test_apetag.cpp index fc38907f..8419d9ce 100644 --- a/tests/test_apetag.cpp +++ b/tests/test_apetag.cpp @@ -4,6 +4,7 @@ #include #include #include +#include #include #include "utils.h" @@ -39,12 +40,12 @@ public: void testDict() { APE::Tag tag; - TagDict dict = tag.toDict(); + PropertyMap dict = tag.properties(); CPPUNIT_ASSERT(dict.isEmpty()); dict["ARTIST"] = String("artist 1"); dict["ARTIST"].append("artist 2"); dict["TRACKNUMBER"].append("17"); - tag.fromDict(dict); + tag.setProperties(dict); CPPUNIT_ASSERT_EQUAL(String("17"), tag.itemListMap()["TRACK"].values()[0]); CPPUNIT_ASSERT_EQUAL(2u, tag.itemListMap()["ARTIST"].values().size()); CPPUNIT_ASSERT_EQUAL(String("artist 1"), tag.artist()); diff --git a/tests/test_flac.cpp b/tests/test_flac.cpp index f9a0afa4..1bf6015a 100644 --- a/tests/test_flac.cpp +++ b/tests/test_flac.cpp @@ -4,6 +4,7 @@ #include #include #include +#include #include #include #include "utils.h" @@ -216,15 +217,15 @@ public: string newname = copy.fileName(); FLAC::File *f = new FLAC::File(newname.c_str()); - TagDict dict; + PropertyMap dict; dict["ARTIST"].append("artøst 1"); dict["ARTIST"].append("artöst 2"); - f->fromDict(dict); + f->setProperties(dict); f->save(); delete f; f = new FLAC::File(newname.c_str()); - dict = f->toDict(); + dict = f->properties(); CPPUNIT_ASSERT_EQUAL(TagLib::uint(2), dict["ARTIST"].size()); CPPUNIT_ASSERT_EQUAL(String("artøst 1"), dict["ARTIST"][0]); CPPUNIT_ASSERT_EQUAL(String("artöst 2"), dict["ARTIST"][1]); diff --git a/tests/test_id3v2.cpp b/tests/test_id3v2.cpp index 1ac1de8c..ee304fbb 100644 --- a/tests/test_id3v2.cpp +++ b/tests/test_id3v2.cpp @@ -15,6 +15,7 @@ #include #include #include +#include #include "utils.h" using namespace std; diff --git a/tests/test_ogg.cpp b/tests/test_ogg.cpp index de25d3ed..b5c6b557 100644 --- a/tests/test_ogg.cpp +++ b/tests/test_ogg.cpp @@ -4,6 +4,7 @@ #include #include #include +#include #include #include #include @@ -60,15 +61,15 @@ public: Vorbis::File *f = new Vorbis::File(newname.c_str()); - CPPUNIT_ASSERT_EQUAL(uint(0), f->tag()->toDict().size()); + CPPUNIT_ASSERT_EQUAL(uint(0), f->tag()->properties().size()); - TagDict newTags; + PropertyMap newTags; StringList values("value 1"); values.append("value 2"); newTags["ARTIST"] = values; - f->tag()->fromDict(newTags); + f->tag()->setProperties(newTags); - TagDict map = f->tag()->toDict(); + PropertyMap map = f->tag()->properties(); CPPUNIT_ASSERT_EQUAL(uint(1), map.size()); CPPUNIT_ASSERT_EQUAL(uint(2), map["ARTIST"].size()); CPPUNIT_ASSERT_EQUAL(String("value 1"), map["ARTIST"][0]); @@ -82,7 +83,7 @@ public: string newname = copy.fileName(); Vorbis::File *f = new Vorbis::File(newname.c_str()); - TagDict tags = f->tag()->toDict(); + PropertyMap tags = f->tag()->properties(); CPPUNIT_ASSERT_EQUAL(uint(2), tags["UNUSUALTAG"].size()); CPPUNIT_ASSERT_EQUAL(String("usual value"), tags["UNUSUALTAG"][0]); @@ -91,9 +92,9 @@ public: tags["UNICODETAG"][0] = L"νεω ναλυε"; tags.erase("UNUSUALTAG"); - f->tag()->fromDict(tags); - CPPUNIT_ASSERT_EQUAL(String(L"νεω ναλυε"), f->tag()->toDict()["UNICODETAG"][0]); - CPPUNIT_ASSERT_EQUAL(false, f->tag()->toDict().contains("UNUSUALTAG")); + f->tag()->setProperties(tags); + CPPUNIT_ASSERT_EQUAL(String(L"νεω ναλυε"), f->tag()->properties()["UNICODETAG"][0]); + CPPUNIT_ASSERT_EQUAL(false, f->tag()->properties().contains("UNUSUALTAG")); delete f; }