mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-26 09:19:27 +00:00
Don't create she::System on file_tests and gif_tests
This commit is contained in:
parent
a2b3822730
commit
86fe6a316b
@ -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);
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user