test/test_pcm_*: use `using` instead of `typedef`
This commit is contained in:
parent
302eff0a59
commit
faa04966af
|
@ -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,
|
||||
|
|
|
@ -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 };
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue