Browse Source

Removed header files from tests.

Following decisions made in Magnum itself.
pull/34/head
Vladimír Vondruš 13 years ago
parent
commit
220ac9e1ca
  1. 21
      src/Plugins/TgaImporter/Test/TgaImporterTest.cpp
  2. 37
      src/Plugins/TgaImporter/Test/TgaImporterTest.h

21
src/Plugins/TgaImporter/Test/TgaImporterTest.cpp

@ -13,10 +13,8 @@
GNU Lesser General Public License version 3 for more details.
*/
#include "TgaImporterTest.h"
#include <sstream>
#include <Utility/Debug.h>
#include <TestSuite/Tester.h>
#include <Math/Vector2.h>
#include <Trade/ImageData.h>
@ -24,10 +22,21 @@
using namespace Corrade::Utility;
CORRADE_TEST_MAIN(Magnum::Trade::TgaImporter::Test::TgaImporterTest)
namespace Magnum { namespace Trade { namespace TgaImporter { namespace Test {
class TgaImporterTest: public Corrade::TestSuite::Tester {
public:
TgaImporterTest();
void openInexistent();
void openShort();
void paletted();
void nonRgb();
void bits16();
void bits24();
void bits32();
};
TgaImporterTest::TgaImporterTest() {
addTests(&TgaImporterTest::openInexistent,
&TgaImporterTest::openShort,
@ -150,3 +159,5 @@ void TgaImporterTest::bits32() {
}
}}}}
CORRADE_TEST_MAIN(Magnum::Trade::TgaImporter::Test::TgaImporterTest)

37
src/Plugins/TgaImporter/Test/TgaImporterTest.h

@ -1,37 +0,0 @@
#ifndef Magnum_Trade_TgaImporter_Test_TgaImporterTest_h
#define Magnum_Trade_TgaImporter_Test_TgaImporterTest_h
/*
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz>
This file is part of Magnum.
Magnum is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License version 3
only, as published by the Free Software Foundation.
Magnum is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License version 3 for more details.
*/
#include <TestSuite/Tester.h>
namespace Magnum { namespace Trade { namespace TgaImporter { namespace Test {
class TgaImporterTest: public Corrade::TestSuite::Tester {
public:
TgaImporterTest();
void openInexistent();
void openShort();
void paletted();
void nonRgb();
void bits16();
void bits24();
void bits32();
};
}}}}
#endif
Loading…
Cancel
Save