summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2020-02-01 13:38:55 +0100
committerMax Kellermann <max@musicpd.org>2020-02-01 13:38:55 +0100
commitfaa04966affb4a29780f4ede882d33b663e0a91b (patch)
tree4c881edc59386d7429b6c3015252640af04a30de /test
parent302eff0a59b849ce10cd88d2c4a4d8cd8b56822d (diff)
test/test_pcm_*: use `using` instead of `typedef`
Diffstat (limited to 'test')
-rw-r--r--test/test_pcm_export.cxx4
-rw-r--r--test/test_pcm_interleave.cxx2
-rw-r--r--test/test_pcm_volume.cxx4
3 files changed, 5 insertions, 5 deletions
diff --git a/test/test_pcm_export.cxx b/test/test_pcm_export.cxx
index 9d01dd7e6..f69882737 100644
--- a/test/test_pcm_export.cxx
+++ b/test/test_pcm_export.cxx
@@ -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,
diff --git a/test/test_pcm_interleave.cxx b/test/test_pcm_interleave.cxx
index 92290d820..246dc6eb0 100644
--- a/test/test_pcm_interleave.cxx
+++ b/test/test_pcm_interleave.cxx
@@ -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 };
diff --git a/test/test_pcm_volume.cxx b/test/test_pcm_volume.cxx
index b99b7b33f..7771b851c 100644
--- a/test/test_pcm_volume.cxx
+++ b/test/test_pcm_volume.cxx
@@ -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;