Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Education
Artikulate
Commits
54978947
Commit
54978947
authored
Jul 07, 2019
by
Andreas Cord-Landwehr
Browse files
Adapt signal spy to changed signal signatures
parent
00931d4a
Changes
2
Hide whitespace changes
Inline
Side-by-side
autotests/integrationtests/iresourcerepository_integration/test_iresourcerepository.cpp
View file @
54978947
...
...
@@ -58,7 +58,7 @@ void TestIResourceRepository::performInterfaceTests(IResourceRepository *interfa
QCOMPARE
(
interface
->
courses
().
count
(),
0
);
// load courses only on demand
// test adding
QSignalSpy
spyAboutToBeAdded
(
dynamic_cast
<
QObject
*>
(
interface
),
SIGNAL
(
courseAboutToBeAdded
(
ICourse
*
,
int
)));
QSignalSpy
spyAboutToBeAdded
(
dynamic_cast
<
QObject
*>
(
interface
),
SIGNAL
(
courseAboutToBeAdded
(
std
::
shared_ptr
<
ICourse
>
,
int
)));
QSignalSpy
spyAdded
(
dynamic_cast
<
QObject
*>
(
interface
),
SIGNAL
(
courseAdded
()));
QCOMPARE
(
spyAboutToBeAdded
.
count
(),
0
);
QCOMPARE
(
spyAdded
.
count
(),
0
);
...
...
autotests/unittests/resourcerepository/test_resourcerepository.cpp
View file @
54978947
...
...
@@ -55,7 +55,7 @@ void TestResourceRepository::iResourceRepositoryCompatability()
QCOMPARE
(
interface
->
courses
().
count
(),
0
);
// test adding
QSignalSpy
spyAboutToBeAdded
(
dynamic_cast
<
QObject
*>
(
interface
),
SIGNAL
(
courseAboutToBeAdded
(
ICourse
*
,
int
)));
QSignalSpy
spyAboutToBeAdded
(
dynamic_cast
<
QObject
*>
(
interface
),
SIGNAL
(
courseAboutToBeAdded
(
std
::
shared_ptr
<
ICourse
>
,
int
)));
QSignalSpy
spyAdded
(
dynamic_cast
<
QObject
*>
(
interface
),
SIGNAL
(
courseAdded
()));
QCOMPARE
(
spyAboutToBeAdded
.
count
(),
0
);
QCOMPARE
(
spyAdded
.
count
(),
0
);
...
...
Write
Preview
Supports
Markdown
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