- Refactor on platform implementation. See comment in interface/platform.h for more info
This commit is contained in:
@@ -18,23 +18,21 @@
|
||||
|
||||
#ifndef FENNEC_TEST_PLATFORM_H
|
||||
#define FENNEC_TEST_PLATFORM_H
|
||||
#include "../test.h"
|
||||
#include <fennec/platform/interface/platform.h>
|
||||
|
||||
#if FENNEC_PLATFORM_LINUX
|
||||
#include "./platform/test_linux.h"
|
||||
#endif
|
||||
|
||||
namespace fennec::test
|
||||
{
|
||||
|
||||
inline void fennec_test_platform() {
|
||||
#if FENNEC_PLATFORM_LINUX
|
||||
fennec_test_subheader("linux");
|
||||
fennec_test_spacer(2);
|
||||
fennec_test_platform_linux();
|
||||
fennec_test_spacer(3);
|
||||
#endif
|
||||
}
|
||||
inline void fennec_test_platform() {
|
||||
|
||||
platform* instance = platform::instance();
|
||||
instance->initialize();
|
||||
|
||||
fennec_test_run(instance->get_display() != nullptr, true);
|
||||
|
||||
instance->shutdown();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user