test/test_pcm_*: use using instead of typedef
				
					
				
			This commit is contained in:
		@@ -373,7 +373,7 @@ template<SampleFormat F, class Traits=SampleTraits<F>>
 | 
				
			|||||||
static void
 | 
					static void
 | 
				
			||||||
TestAlsaChannelOrder51()
 | 
					TestAlsaChannelOrder51()
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	typedef typename Traits::value_type value_type;
 | 
						using value_type = typename Traits::value_type;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	static constexpr value_type src[] = {
 | 
						static constexpr value_type src[] = {
 | 
				
			||||||
		0, 1, 2, 3, 4, 5,
 | 
							0, 1, 2, 3, 4, 5,
 | 
				
			||||||
@@ -403,7 +403,7 @@ template<SampleFormat F, class Traits=SampleTraits<F>>
 | 
				
			|||||||
static void
 | 
					static void
 | 
				
			||||||
TestAlsaChannelOrder71()
 | 
					TestAlsaChannelOrder71()
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	typedef typename Traits::value_type value_type;
 | 
						using value_type = typename Traits::value_type;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	static constexpr value_type src[] = {
 | 
						static constexpr value_type src[] = {
 | 
				
			||||||
		0, 1, 2, 3, 4, 5, 6, 7,
 | 
							0, 1, 2, 3, 4, 5, 6, 7,
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -68,7 +68,7 @@ TEST(PcmTest, Interleave16)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
TEST(PcmTest, Interleave24)
 | 
					TEST(PcmTest, Interleave24)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	typedef uint8_t T;
 | 
						using T = uint8_t;
 | 
				
			||||||
	static constexpr T src1[] = { 1, 2, 3, 4, 5, 6 };
 | 
						static constexpr T src1[] = { 1, 2, 3, 4, 5, 6 };
 | 
				
			||||||
	static constexpr T src2[] = { 7, 8, 9, 10, 11, 12 };
 | 
						static constexpr T src2[] = { 7, 8, 9, 10, 11, 12 };
 | 
				
			||||||
	static constexpr T src3[] = { 13, 14, 15, 16, 17, 18 };
 | 
						static constexpr T src3[] = { 13, 14, 15, 16, 17, 18 };
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -33,7 +33,7 @@ template<SampleFormat F, class Traits=SampleTraits<F>,
 | 
				
			|||||||
static void
 | 
					static void
 | 
				
			||||||
TestVolume(G g=G())
 | 
					TestVolume(G g=G())
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	typedef typename Traits::value_type value_type;
 | 
						using value_type = typename Traits::value_type;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	PcmVolume pv;
 | 
						PcmVolume pv;
 | 
				
			||||||
	EXPECT_EQ(pv.Open(F, false), F);
 | 
						EXPECT_EQ(pv.Open(F, false), F);
 | 
				
			||||||
@@ -80,7 +80,7 @@ TEST(PcmTest, Volume16)
 | 
				
			|||||||
TEST(PcmTest, Volume16to32)
 | 
					TEST(PcmTest, Volume16to32)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	constexpr SampleFormat F = SampleFormat::S16;
 | 
						constexpr SampleFormat F = SampleFormat::S16;
 | 
				
			||||||
	typedef int16_t value_type;
 | 
						using value_type = int16_t;
 | 
				
			||||||
	RandomInt<value_type> g;
 | 
						RandomInt<value_type> g;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	PcmVolume pv;
 | 
						PcmVolume pv;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user