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
be2a388b
Commit
be2a388b
authored
Jul 18, 2012
by
Jessica
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a setAirframe test. Took the code from getAirframe test and made another test.
parent
67e14c3d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
UASUnitTest.cc
qgcunittest/UASUnitTest.cc
+3
-1
UASUnitTest.h
qgcunittest/UASUnitTest.h
+1
-0
No files found.
qgcunittest/UASUnitTest.cc
View file @
be2a388b
...
...
@@ -175,11 +175,13 @@ void UASUnitTest::getAirframe_test()
{
//when uas is constructed, airframe is set to QGC_AIRFRAME_GENERIC which is 0
QCOMPARE
(
uas
->
getAirframe
(),
0
);
}
void
UASUnitTest
::
setAirframe_test
()
{
uas
->
setAirframe
(
25
);
QVERIFY
(
uas
->
getAirframe
()
==
25
);
}
void
UASUnitTest
::
getWaypointList_test
()
{
QVector
<
Waypoint
*>
kk
=
uas
->
getWaypointManager
()
->
getWaypointEditableList
();
...
...
qgcunittest/UASUnitTest.h
View file @
be2a388b
...
...
@@ -49,6 +49,7 @@ private slots:
void
getSelected_test
();
void
getSystemType_test
();
void
getAirframe_test
();
void
setAirframe_test
();
void
getWaypointList_test
();
void
signalWayPoint_test
();
void
getWaypoint_test
();
...
...
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