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
791aad2e
Commit
791aad2e
authored
Jun 03, 2020
by
Pascal Palenda
Browse files
Adapt unit test
parent
2c2067b0
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/all_tests/raven_worker_interface_test.cpp
View file @
791aad2e
...
...
@@ -16,16 +16,10 @@ struct RavenWorkerInterfaceTest : testing::Test
{
std
::
unique_ptr
<
TestRavenWorkerInterface
>
interface
;
FieldOfDuty
FOD
;
RavenWorkerInterfaceTest
(
)
{
auto
config
=
CWorkerThread
::
WorkerThreadConfig
::
getDefaultWorkerThreadConfig
(
);
FOD
=
FieldOfDuty
::
diffuseDecay
;
config
.
SetValueInSubList
(
"FieldOfDuty"
,
"RavenWorkerThread"
,
as_integer
(
FOD
)
);
interface
=
std
::
make_unique
<
TestRavenWorkerInterface
>
(
config
,
nullptr
);
}
};
...
...
@@ -47,10 +41,12 @@ TEST_F ( RavenWorkerInterfaceTest, update2Task )
EXPECT_EQ
(
updateCopy
.
getID
(
),
task
->
uiID
);
EXPECT_EQ
(
updateCopy
.
getReferenceID
(
),
task
->
uiReferenceID
);
EXPECT_EQ
(
F
OD
,
task
->
eSimulationType
);
EXPECT_EQ
(
F
ieldOfDuty
::
directSound
,
task
->
eSimulationType
);
auto
defaultConfig
=
CRavenConfig
(
);
defaultConfig
.
setDefaults
(
);
defaultConfig
.
oImageSource
.
iOrderPrimarySource
=
0
;
defaultConfig
.
oImageSource
.
iOrderSecondarySource
=
0
;
const
auto
difference
=
defaultConfig
.
compare
(
task
->
oConfig
);
EXPECT_EQ
(
CRavenConfig
::
DifferenceFlags
::
none
,
difference
);
...
...
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