Move test helper in its own namespace
This commit is contained in:
parent
fd98c5b968
commit
b9fb3c9695
|
@ -1,5 +1,7 @@
|
||||||
#include "./helper.h"
|
#include "./helper.h"
|
||||||
|
|
||||||
|
namespace TestUtilities {
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief Prints a TagTextEncoding to enable CPPUNIT_ASSERT_EQUAL for tag values.
|
* \brief Prints a TagTextEncoding to enable CPPUNIT_ASSERT_EQUAL for tag values.
|
||||||
*/
|
*/
|
||||||
|
@ -20,3 +22,5 @@ std::ostream &operator <<(std::ostream &os, const Media::TagTextEncoding &encodi
|
||||||
}
|
}
|
||||||
return os;
|
return os;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -2,9 +2,12 @@
|
||||||
#define TAGPARSER_TEST_HELPER
|
#define TAGPARSER_TEST_HELPER
|
||||||
|
|
||||||
#include "../tagvalue.h"
|
#include "../tagvalue.h"
|
||||||
|
#include "../notification.h"
|
||||||
|
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
|
|
||||||
|
namespace TestUtilities {
|
||||||
|
|
||||||
std::ostream &operator <<(std::ostream &os, const Media::TagTextEncoding &encoding);
|
std::ostream &operator <<(std::ostream &os, const Media::TagTextEncoding &encoding);
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
@ -23,5 +26,6 @@ inline std::ostream &operator <<(std::ostream &os, const Media::PositionInSet &p
|
||||||
return os << pos.toString();
|
return os << pos.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
#endif // TAGPARSER_TEST_HELPER
|
#endif // TAGPARSER_TEST_HELPER
|
||||||
|
|
|
@ -4,8 +4,9 @@
|
||||||
#include "../mediafileinfo.h"
|
#include "../mediafileinfo.h"
|
||||||
#include "../tagvalue.h"
|
#include "../tagvalue.h"
|
||||||
|
|
||||||
#include <c++utilities/tests/testutils.h>
|
|
||||||
#include <c++utilities/conversion/stringconversion.h>
|
#include <c++utilities/conversion/stringconversion.h>
|
||||||
|
#include <c++utilities/tests/testutils.h>
|
||||||
|
using namespace TestUtilities;
|
||||||
|
|
||||||
#include <cppunit/extensions/HelperMacros.h>
|
#include <cppunit/extensions/HelperMacros.h>
|
||||||
#include <cppunit/TestFixture.h>
|
#include <cppunit/TestFixture.h>
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
|
|
||||||
#include <c++utilities/conversion/conversionexception.h>
|
#include <c++utilities/conversion/conversionexception.h>
|
||||||
#include <c++utilities/chrono/format.h>
|
#include <c++utilities/chrono/format.h>
|
||||||
|
using namespace TestUtilities;
|
||||||
|
|
||||||
#include <cppunit/TestFixture.h>
|
#include <cppunit/TestFixture.h>
|
||||||
#include <cppunit/extensions/HelperMacros.h>
|
#include <cppunit/extensions/HelperMacros.h>
|
||||||
|
|
Loading…
Reference in New Issue