Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
6ca4d234
Commit
6ca4d234
authored
Dec 12, 2013
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix AutoTest build breaks
parent
5a50e9c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
UASUnitTest.cc
src/qgcunittest/UASUnitTest.cc
+4
-4
No files found.
src/qgcunittest/UASUnitTest.cc
View file @
6ca4d234
...
@@ -199,7 +199,7 @@ void UASUnitTest::setAirframe_test()
...
@@ -199,7 +199,7 @@ void UASUnitTest::setAirframe_test()
void
UASUnitTest
::
getWaypointList_test
()
void
UASUnitTest
::
getWaypointList_test
()
{
{
Q
Vector
<
Waypoint
*>
kk
=
uas
->
getWaypointManager
()
->
getWaypointEditableList
();
Q
List
<
Waypoint
*>
kk
=
uas
->
getWaypointManager
()
->
getWaypointEditableList
();
QCOMPARE
(
kk
.
count
(),
0
);
QCOMPARE
(
kk
.
count
(),
0
);
Waypoint
*
wp
=
new
Waypoint
(
0
,
0.0
,
0.0
,
0.0
,
0.0
,
0.0
,
0.0
,
0.0
,
false
,
false
,
MAV_FRAME_GLOBAL
,
MAV_CMD_MISSION_START
,
"blah"
);
Waypoint
*
wp
=
new
Waypoint
(
0
,
0.0
,
0.0
,
0.0
,
0.0
,
0.0
,
0.0
,
0.0
,
false
,
false
,
MAV_FRAME_GLOBAL
,
MAV_CMD_MISSION_START
,
"blah"
);
...
@@ -232,7 +232,7 @@ void UASUnitTest::getWaypoint_test()
...
@@ -232,7 +232,7 @@ void UASUnitTest::getWaypoint_test()
uas
->
getWaypointManager
()
->
addWaypointEditable
(
wp
,
true
);
uas
->
getWaypointManager
()
->
addWaypointEditable
(
wp
,
true
);
Q
Vector
<
Waypoint
*>
wpList
=
uas
->
getWaypointManager
()
->
getWaypointEditableList
();
Q
List
<
Waypoint
*>
wpList
=
uas
->
getWaypointManager
()
->
getWaypointEditableList
();
QCOMPARE
(
wpList
.
count
(),
1
);
QCOMPARE
(
wpList
.
count
(),
1
);
QCOMPARE
(
static_cast
<
quint16
>
(
0
),
static_cast
<
Waypoint
*>
(
wpList
.
at
(
0
))
->
getId
());
QCOMPARE
(
static_cast
<
quint16
>
(
0
),
static_cast
<
Waypoint
*>
(
wpList
.
at
(
0
))
->
getId
());
...
@@ -281,7 +281,7 @@ void UASUnitTest::signalWayPoint_test()
...
@@ -281,7 +281,7 @@ void UASUnitTest::signalWayPoint_test()
QCOMPARE
(
spy2
.
count
(),
1
);
QCOMPARE
(
spy2
.
count
(),
1
);
uas
->
getWaypointManager
()
->
clearWaypointList
();
uas
->
getWaypointManager
()
->
clearWaypointList
();
Q
Vector
<
Waypoint
*>
wpList
=
uas
->
getWaypointManager
()
->
getWaypointEditableList
();
Q
List
<
Waypoint
*>
wpList
=
uas
->
getWaypointManager
()
->
getWaypointEditableList
();
QCOMPARE
(
wpList
.
count
(),
1
);
QCOMPARE
(
wpList
.
count
(),
1
);
delete
uas
;
delete
uas
;
uas
=
NULL
;
uas
=
NULL
;
...
@@ -292,7 +292,7 @@ void UASUnitTest::signalUASLink_test()
...
@@ -292,7 +292,7 @@ void UASUnitTest::signalUASLink_test()
{
{
QSignalSpy
spy
(
uas
,
SIGNAL
(
modeChanged
(
int
,
QString
,
QString
)));
QSignalSpy
spy
(
uas
,
SIGNAL
(
modeChanged
(
int
,
QString
,
QString
)));
uas
->
setMode
(
2
);
uas
->
setMode
(
2
,
0
);
QCOMPARE
(
spy
.
count
(),
0
);
// not solve for UAS not receiving message from UAS
QCOMPARE
(
spy
.
count
(),
0
);
// not solve for UAS not receiving message from UAS
QSignalSpy
spyS
(
LinkManager
::
instance
(),
SIGNAL
(
newLink
(
LinkInterface
*
)));
QSignalSpy
spyS
(
LinkManager
::
instance
(),
SIGNAL
(
newLink
(
LinkInterface
*
)));
...
...
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