[Multimedia][TCSACR-337] Add new audio/video mimetypes 13/239013/2
authorHaesu Gwon <haesu.gwon@samsung.com>
Tue, 21 Jul 2020 05:36:48 +0000 (14:36 +0900)
committerHaesu Gwon <haesu.gwon@samsung.com>
Tue, 21 Jul 2020 07:06:14 +0000 (16:06 +0900)
Change-Id: Ie8a418169c8feac5b11cd12404714726b2094081

tct-suite-vs/Tizen.Multimedia.Tests/testcase/MediaTool/TSAudioMediaFormat.cs
tct-suite-vs/Tizen.Multimedia.Tests/testcase/MediaTool/TSVideoMediaFormat.cs

index 4c9a646..694160a 100644 (file)
@@ -33,19 +33,20 @@ namespace Tizen.Multimedia.Tests
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "PDV")]
         [Property("COVPARAM", "MediaFormatAudioMimeType, int, int, int, int")]
-        [Property("AUTHOR", "JungHo Kim, jhyo.kim@samsung.com")]
+        [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
         public void AudioMediaFormat_PROPERTIES_ARE_SET_BY_CONSTRUCTOR()
         {
-            const MediaFormatAudioMimeType mimeType = MediaFormatAudioMimeType.Aac;
-
-            var audioFormat = new AudioMediaFormat(mimeType, VALID_AUDIO_CHANNEL,
+            foreach(MediaFormatAudioMimeType mimeType in Enum.GetValues(typeof(MediaFormatAudioMimeType)))
+            {
+                var audioFormat = new AudioMediaFormat(mimeType, VALID_AUDIO_CHANNEL,
                 VALID_AUDIO_SAMPLE_RATE, VALID_AUDIO_BIT, VALID_AUDIO_BIT_RATE);
 
-            Assert.AreEqual(mimeType, audioFormat.MimeType);
-            Assert.AreEqual(VALID_AUDIO_CHANNEL, audioFormat.Channel);
-            Assert.AreEqual(VALID_AUDIO_SAMPLE_RATE, audioFormat.SampleRate);
-            Assert.AreEqual(VALID_AUDIO_BIT, audioFormat.Bit);
-            Assert.AreEqual(VALID_AUDIO_BIT_RATE, audioFormat.BitRate);
+                Assert.AreEqual(mimeType, audioFormat.MimeType);
+                Assert.AreEqual(VALID_AUDIO_CHANNEL, audioFormat.Channel);
+                Assert.AreEqual(VALID_AUDIO_SAMPLE_RATE, audioFormat.SampleRate);
+                Assert.AreEqual(VALID_AUDIO_BIT, audioFormat.Bit);
+                Assert.AreEqual(VALID_AUDIO_BIT_RATE, audioFormat.BitRate);
+            }
         }
 
         [Test]
index 12f17fa..10b4d64 100644 (file)
@@ -26,19 +26,20 @@ namespace Tizen.Multimedia.Tests
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "CONSTR")]
         [Property("COVPARAM", "MediaFormatVideoMimeType, int, int, int, int")]
-        [Property("AUTHOR", "JungHo Kim, jhyo.kim@samsung.com")]
+        [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
         public void VideoMediaFormat_PROPERTIES_ARE_SET_BY_CONSTRUCTOR()
         {
-            const MediaFormatVideoMimeType mimeType = MediaFormatVideoMimeType.Argb;
-
-            var videoFormat = new VideoMediaFormat(mimeType, VALID_VIDEO_WIDTH,
+            foreach (MediaFormatVideoMimeType mimeType in Enum.GetValues(typeof(MediaFormatVideoMimeType)))
+            {
+                var videoFormat = new VideoMediaFormat(mimeType, VALID_VIDEO_WIDTH,
                 VALID_VIDEO_HEIGHT, VALID_VIDEO_FRAME_RATE, VALID_VIDEO_BIT_RATE);
 
-            Assert.AreEqual(mimeType, videoFormat.MimeType);
-            Assert.AreEqual(VALID_VIDEO_WIDTH, videoFormat.Size.Width);
-            Assert.AreEqual(VALID_VIDEO_HEIGHT, videoFormat.Size.Height);
-            Assert.AreEqual(VALID_VIDEO_FRAME_RATE, videoFormat.FrameRate);
-            Assert.AreEqual(VALID_VIDEO_BIT_RATE, videoFormat.BitRate);
+                Assert.AreEqual(mimeType, videoFormat.MimeType);
+                Assert.AreEqual(VALID_VIDEO_WIDTH, videoFormat.Size.Width);
+                Assert.AreEqual(VALID_VIDEO_HEIGHT, videoFormat.Size.Height);
+                Assert.AreEqual(VALID_VIDEO_FRAME_RATE, videoFormat.FrameRate);
+                Assert.AreEqual(VALID_VIDEO_BIT_RATE, videoFormat.BitRate);
+            }
         }
 
         [Test]