Don't create she::System on file_tests and gif_tests

This commit is contained in:
David Capello 2015-06-09 10:40:39 -03:00
parent a2b3822730
commit 86fe6a316b
2 changed files with 1 additions and 6 deletions

View File

@ -13,7 +13,6 @@
#include "app/file/file.h"
#include "app/file/file_formats_manager.h"
#include "doc/doc.h"
#include "she/she.h"
#include <cstdio>
#include <cstdlib>
@ -23,7 +22,6 @@ using namespace app;
TEST(File, SeveralSizes)
{
she::ScopedHandle<she::System> system(she::create_system());
// Register all possible image formats.
FileFormatsManager::instance()->registerAllFormats();
std::vector<char> fn(256);

View File

@ -14,20 +14,17 @@
#include "app/file/gif_options.h"
#include "doc/doc.h"
#include "doc/test_context.h"
#include "she/scoped_handle.h"
#include "she/system.h"
using namespace app;
class GifFormat : public ::testing::Test {
public:
GifFormat() : m_system(she::create_system()) {
GifFormat() {
FileFormatsManager::instance()->registerAllFormats();
}
protected:
doc::TestContextT<app::Context> m_ctx;
she::ScopedHandle<she::System> m_system;
};
TEST_F(GifFormat, Dimensions)