/* * Copyright (c) 2010 Remko Tronçon * Licensed under the GNU General Public License v3. * See Documentation/Licenses/GPLv3.txt for more information. */ #include #include #include "Swiften/Base/ByteArray.h" using namespace Swift; class ByteArrayTest : public CppUnit::TestFixture { CPPUNIT_TEST_SUITE(ByteArrayTest); CPPUNIT_TEST(testGetData_NoData); CPPUNIT_TEST_SUITE_END(); public: void testGetData_NoData() { ByteArray testling; CPPUNIT_ASSERT_EQUAL(reinterpret_cast(NULL), reinterpret_cast(testling.getData())); } }; CPPUNIT_TEST_SUITE_REGISTRATION(ByteArrayTest);