Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
faa04966
Commit
faa04966
authored
Feb 01, 2020
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test/test_pcm_*: use `using` instead of `typedef`
parent
302eff0a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
test_pcm_export.cxx
test/test_pcm_export.cxx
+2
-2
test_pcm_interleave.cxx
test/test_pcm_interleave.cxx
+1
-1
test_pcm_volume.cxx
test/test_pcm_volume.cxx
+2
-2
No files found.
test/test_pcm_export.cxx
View file @
faa04966
...
...
@@ -373,7 +373,7 @@ template<SampleFormat F, class Traits=SampleTraits<F>>
static
void
TestAlsaChannelOrder51
()
{
typedef
typename
Traits
::
value_type
value_type
;
using
value_type
=
typename
Traits
::
value_type
;
static
constexpr
value_type
src
[]
=
{
0
,
1
,
2
,
3
,
4
,
5
,
...
...
@@ -403,7 +403,7 @@ template<SampleFormat F, class Traits=SampleTraits<F>>
static
void
TestAlsaChannelOrder71
()
{
typedef
typename
Traits
::
value_type
value_type
;
using
value_type
=
typename
Traits
::
value_type
;
static
constexpr
value_type
src
[]
=
{
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
...
...
test/test_pcm_interleave.cxx
View file @
faa04966
...
...
@@ -68,7 +68,7 @@ TEST(PcmTest, Interleave16)
TEST
(
PcmTest
,
Interleave24
)
{
typedef
uint8_t
T
;
using
T
=
uint8_t
;
static
constexpr
T
src1
[]
=
{
1
,
2
,
3
,
4
,
5
,
6
};
static
constexpr
T
src2
[]
=
{
7
,
8
,
9
,
10
,
11
,
12
};
static
constexpr
T
src3
[]
=
{
13
,
14
,
15
,
16
,
17
,
18
};
...
...
test/test_pcm_volume.cxx
View file @
faa04966
...
...
@@ -33,7 +33,7 @@ template<SampleFormat F, class Traits=SampleTraits<F>,
static
void
TestVolume
(
G
g
=
G
())
{
typedef
typename
Traits
::
value_type
value_type
;
using
value_type
=
typename
Traits
::
value_type
;
PcmVolume
pv
;
EXPECT_EQ
(
pv
.
Open
(
F
,
false
),
F
);
...
...
@@ -80,7 +80,7 @@ TEST(PcmTest, Volume16)
TEST
(
PcmTest
,
Volume16to32
)
{
constexpr
SampleFormat
F
=
SampleFormat
::
S16
;
typedef
int16_t
value_type
;
using
value_type
=
int16_t
;
RandomInt
<
value_type
>
g
;
PcmVolume
pv
;
...
...
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