Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Technical Acoustics (ITA)
ITASimulationScheduler
Commits
d36c01e4
Commit
d36c01e4
authored
May 07, 2020
by
Pascal Palenda
Browse files
Add tests for audibiliy filter interface - WIP
parent
33c5ab04
Changes
2
Show whitespace changes
Inline
Side-by-side
tests/all_tests/CMakeLists.txt
View file @
d36c01e4
...
@@ -20,6 +20,7 @@ set( ProjectSources "all_tests.cpp"
...
@@ -20,6 +20,7 @@ set( ProjectSources "all_tests.cpp"
"test_classes.hpp"
"test_classes.hpp"
"replacement_filter_test.cpp"
"replacement_filter_test.cpp"
"worker_interface_test.cpp"
"worker_interface_test.cpp"
"audibility_filter_interface_test.cpp"
)
)
add_executable
(
all_tests
${
ProjectSources
}
)
add_executable
(
all_tests
${
ProjectSources
}
)
...
...
tests/all_tests/audibility_filter_interface_test.cpp
0 → 100644
View file @
d36c01e4
#include <ITA/simulation_scheduler/audibility_filter/audibility_filter_interface.h>
#include "mocks.hpp"
// GTest
#include "gtest/gtest.h"
using
namespace
ITA
::
simulation_scheduler
;
using
namespace
audibility_filter
;
TEST
(
FilterFactoryTest
,
addNewFilterType
)
{
CAudibilityFilterFactory
::
registerFilter
(
"MockFilter"
,
MockAudibilityFilter
::
createFilter
);
IAudibilityFilter
::
AudibilityFilterConfig
config
;
config
.
SetValueInSubList
(
"Audible"
,
"Mock"
,
true
);
const
auto
filter
=
CAudibilityFilterFactory
::
createFilter
(
config
);
ASSERT_NE
(
filter
,
nullptr
);
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment