diff options
author | Piotr Dziwinski <piotrdz@gmail.com> | 2013-03-24 00:03:37 +0100 |
---|---|---|
committer | Piotr Dziwinski <piotrdz@gmail.com> | 2013-03-24 12:00:12 +0100 |
commit | 195d6cded05f7ef5bde695ee047b341a0265eab3 (patch) | |
tree | af6ffa3622ae9bf7f2f5f065e269e86a019af854 /test/unit/graphics | |
parent | c211b001d2a4c9b36034a812650f1a2ac693ee54 (diff) | |
download | colobot-195d6cded05f7ef5bde695ee047b341a0265eab3.tar.gz colobot-195d6cded05f7ef5bde695ee047b341a0265eab3.tar.bz2 colobot-195d6cded05f7ef5bde695ee047b341a0265eab3.zip |
Fixed timer functions on win32
* changed win32 implementation to QueryPerformaceTimer system function
* refactored system utils code
* proper tests for time utils and update event creation in application
* should fix issue #134
Diffstat (limited to 'test/unit/graphics')
-rw-r--r-- | test/unit/graphics/engine/lightman_test.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/unit/graphics/engine/lightman_test.cpp b/test/unit/graphics/engine/lightman_test.cpp index c955f0a..e2dc785 100644 --- a/test/unit/graphics/engine/lightman_test.cpp +++ b/test/unit/graphics/engine/lightman_test.cpp @@ -1,5 +1,7 @@ #include "graphics/engine/lightman.h" +#include "app/system_mock.h" + #include "graphics/core/device_mock.h" #include "graphics/engine/engine_mock.h" @@ -15,7 +17,8 @@ class LightManagerUT : public testing::Test { protected: LightManagerUT() - : lightManager(&engine) + : systemUtils(true) + , lightManager(&engine) {} void PrepareLightTesting(int maxLights, Math::Vector eyePos); @@ -25,6 +28,7 @@ protected: Math::Vector pos, EngineObjectType includeType, EngineObjectType excludeType); + CSystemUtilsMock systemUtils; CLightManager lightManager; CEngineMock engine; CDeviceMock device; |