Initial ui test.
This commit is contained in:
parent
7fcc8e43ae
commit
36515556b8
15 changed files with 178 additions and 28 deletions
|
@ -13,8 +13,20 @@ set(GRAPHICS_UNIT_TEST_FILES
|
|||
${PLATFORM_UNIT_TEST_FILES}
|
||||
PARENT_SCOPE
|
||||
)
|
||||
|
||||
if(WIN32)
|
||||
set(GRAPHICS_UI_TEST_FILES
|
||||
graphics/TestDirectXRendering.cpp
|
||||
PARENT_SCOPE
|
||||
)
|
||||
endif()
|
||||
|
||||
set(GRAPHICS_UNIT_TEST_DEPENDENCIES
|
||||
graphics client
|
||||
PARENT_SCOPE
|
||||
PARENT_SCOPE
|
||||
)
|
||||
|
||||
set(GRAPHICS_UI_TEST_DEPENDENCIES
|
||||
graphics client
|
||||
PARENT_SCOPE
|
||||
)
|
18
test/graphics/TestDirectXRendering.cpp
Normal file
18
test/graphics/TestDirectXRendering.cpp
Normal file
|
@ -0,0 +1,18 @@
|
|||
#include "TestCase.h"
|
||||
#include "TestCaseRunner.h"
|
||||
|
||||
#include "MainApplication.h"
|
||||
#include "GuiApplication.h"
|
||||
|
||||
#include "TestFramework.h"
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
||||
TEST_CASE(TestDirectXRendering, "graphics")
|
||||
{
|
||||
auto gui_app = TestCaseRunner::getInstance().getTestApplication();
|
||||
|
||||
gui_app->run();
|
||||
};
|
|
@ -1,6 +1,7 @@
|
|||
#include "TestCase.h"
|
||||
#include "TestCaseRunner.h"
|
||||
|
||||
#include "MainApplication.h"
|
||||
#include "GuiApplication.h"
|
||||
|
||||
#include "TestFramework.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue