Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
eb9c52ce
Commit
eb9c52ce
authored
2 years ago
by
Sébastien Blin
Browse files
Options
Downloads
Patches
Plain Diff
test: remove testSmartools (as deprecated)
Change-Id: Ia46604d00ab749d76ccc0d795a3024f6838b7a1b
parent
2cf59a3c
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/unitTest/Makefile.am
+0
-6
0 additions, 6 deletions
test/unitTest/Makefile.am
test/unitTest/smartools/testSmartools.cpp
+0
-100
0 additions, 100 deletions
test/unitTest/smartools/testSmartools.cpp
with
0 additions
and
106 deletions
test/unitTest/Makefile.am
+
0
−
6
View file @
eb9c52ce
...
@@ -61,12 +61,6 @@ ut_map_utils_SOURCES = map_utils/testMap_utils.cpp common.cpp
...
@@ -61,12 +61,6 @@ ut_map_utils_SOURCES = map_utils/testMap_utils.cpp common.cpp
check_PROGRAMS
+=
ut_fileutils
check_PROGRAMS
+=
ut_fileutils
ut_fileutils_SOURCES
=
fileutils/testFileutils.cpp common.cpp
ut_fileutils_SOURCES
=
fileutils/testFileutils.cpp common.cpp
#
# smartools
#
check_PROGRAMS
+=
ut_smartools
ut_smartools_SOURCES
=
smartools/testSmartools.cpp common.cpp
#
#
# utf8_utils
# utf8_utils
#
#
...
...
This diff is collapsed.
Click to expand it.
test/unitTest/smartools/testSmartools.cpp
deleted
100644 → 0
+
0
−
100
View file @
2cf59a3c
/*
* Copyright (C) 2004-2022 Savoir-faire Linux Inc.
* Author: Olivier Gregoire <olivier.gregoire@savoirfairelinux.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include
<cppunit/TestAssert.h>
#include
<cppunit/TestFixture.h>
#include
<cppunit/extensions/HelperMacros.h>
#define TESTING
#include
"smartools.h"
#include
"../../test_runner.h"
namespace
jami
{
class
SmartoolsTest
:
public
CppUnit
::
TestFixture
{
public:
static
std
::
string
name
()
{
return
"smartools"
;
}
private
:
void
testSetLocalInformation
();
void
testSetRemoteInformation
();
CPPUNIT_TEST_SUITE
(
SmartoolsTest
);
CPPUNIT_TEST
(
testSetLocalInformation
);
CPPUNIT_TEST
(
testSetRemoteInformation
);
CPPUNIT_TEST_SUITE_END
();
};
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION
(
SmartoolsTest
,
SmartoolsTest
::
name
());
template
<
typename
Map
>
bool
map_compare
(
Map
const
&
lhs
,
Map
const
&
rhs
)
{
return
std
::
equal
(
lhs
.
begin
(),
lhs
.
end
(),
rhs
.
begin
());
}
void
SmartoolsTest
::
testSetLocalInformation
()
{
std
::
map
<
std
::
string
,
std
::
string
>
localInformation
;
// initialisation localInformation
localInformation
[
"local FPS"
]
=
"32"
;
localInformation
[
"local width"
]
=
"326"
;
localInformation
[
"local height"
]
=
"532"
;
localInformation
[
"remote audio codec"
]
=
"remoteAudioCodec"
;
localInformation
[
"local audio codec"
]
=
"localAudioCodec"
;
localInformation
[
"local video codec"
]
=
"localVideoCodec"
;
Smartools
::
getInstance
().
setFrameRate
(
"local"
,
"32"
);
Smartools
::
getInstance
().
setResolution
(
"local"
,
326
,
532
);
Smartools
::
getInstance
().
setRemoteAudioCodec
(
"remoteAudioCodec"
);
Smartools
::
getInstance
().
setLocalAudioCodec
(
"localAudioCodec"
);
Smartools
::
getInstance
().
setLocalVideoCodec
(
"localVideoCodec"
);
CPPUNIT_ASSERT
(
map_compare
(
localInformation
,
Smartools
::
getInstance
().
information_
));
// Clear information_
Smartools
::
getInstance
().
sendInfo
();
CPPUNIT_ASSERT
(
Smartools
::
getInstance
().
information_
.
empty
());
}
void
SmartoolsTest
::
testSetRemoteInformation
()
{
std
::
map
<
std
::
string
,
std
::
string
>
remoteInformation
;
// initialisation remoteInformation
remoteInformation
[
"remote FPS"
]
=
"42"
;
remoteInformation
[
"remote width"
]
=
"874"
;
remoteInformation
[
"remote height"
]
=
"253"
;
Smartools
::
getInstance
().
setFrameRate
(
"remote"
,
"42"
);
Smartools
::
getInstance
().
setResolution
(
"remote"
,
874
,
253
);
CPPUNIT_ASSERT
(
map_compare
(
remoteInformation
,
Smartools
::
getInstance
().
information_
));
// Clear information_
Smartools
::
getInstance
().
sendInfo
();
CPPUNIT_ASSERT
(
Smartools
::
getInstance
().
information_
.
empty
());
}
}
// namespace jami
RING_TEST_RUNNER
(
jami
::
SmartoolsTest
::
name
())
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment