[MediaCodec][Non-ACR][Add NotSupported message] 26/173826/1
authorHaesu Gwon <haesu.gwon@samsung.com>
Mon, 19 Mar 2018 03:08:43 +0000 (12:08 +0900)
committerHaesu Gwon <haesu.gwon@samsung.com>
Mon, 26 Mar 2018 06:39:28 +0000 (06:39 +0000)
Change-Id: Ib475d2caf54cc1bfac09e610dc4ee31a3547ea65
Signed-off-by: Haesu Gwon <haesu.gwon@samsung.com>
(cherry picked from commit eafcadbbf093898fbdde901e2eb25276f0e5f8b7)

tct-suite-vs/Tizen.MediaCodec.Tests/testcase/TSBufferStatusChangedEventArgs.cs [changed mode: 0755->0644]
tct-suite-vs/Tizen.MediaCodec.Tests/testcase/TSInputProcessedEventArgs.cs [changed mode: 0755->0644]
tct-suite-vs/Tizen.MediaCodec.Tests/testcase/TSMediaCodecErrorOccurredEventArgs.cs [changed mode: 0755->0644]
tct-suite-vs/Tizen.MediaCodec.Tests/testcase/TSOutputAvailableEventArgs.cs [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 1b1cddc..2383b14
@@ -18,7 +18,7 @@ namespace Tizen.Multimedia.MediaCodec.Tests
         {
             if (FeatureChecker.IsSupported(Constants.Feature) == false)
             {
-                return;
+                Assert.Pass("The MediaCodec is not supported.");
             }
 
             Assert.That(() => new BufferStatusChangedEventArgs(MediaCodecStatus.EnoughData),
@@ -36,7 +36,7 @@ namespace Tizen.Multimedia.MediaCodec.Tests
         {
             if (FeatureChecker.IsSupported(Constants.Feature))
             {
-                return;
+                Assert.Pass("The MediaCodec is supported. This TC can be tested only if MediaCodec is not supported.");
             }
 
             Assert.That(() => new BufferStatusChangedEventArgs(MediaCodecStatus.EnoughData),
@@ -58,6 +58,10 @@ namespace Tizen.Multimedia.MediaCodec.Tests
 
                 Assert.That(new BufferStatusChangedEventArgs(status).Status, Is.EqualTo(status));
             }
+            else
+            {
+                Assert.Pass("The MediaCodec is not supported.");
+            }
         }
     }
 }
old mode 100755 (executable)
new mode 100644 (file)
index 6f66670..3219f83
@@ -16,6 +16,11 @@ namespace Tizen.Multimedia.MediaCodec.Tests
         [Property("AUTHOR", "JungHo Kim, jhyo.kim@samsung.com")]
         public static void Packet_CHECK()
         {
+            if (FeatureChecker.IsSupported(Constants.Feature) == false)
+            {
+                Assert.Pass("The MediaCodec is not supported.");
+            }
+
             AssertHelper.PropertyReadOnly<InputProcessedEventArgs>(nameof(InputProcessedEventArgs.Packet));
         }
 
old mode 100755 (executable)
new mode 100644 (file)
index c129c76..c5c31af
@@ -18,7 +18,7 @@ namespace Tizen.Multimedia.MediaCodec.Tests
         {
             if (FeatureChecker.IsSupported(Constants.Feature) == false)
             {
-                return;
+                Assert.Pass("The MediaCodec is not supported.");
             }
 
             Assert.That(() => new MediaCodecErrorOccurredEventArgs(MediaCodecError.InternalError),
@@ -36,7 +36,7 @@ namespace Tizen.Multimedia.MediaCodec.Tests
         {
             if (FeatureChecker.IsSupported(Constants.Feature))
             {
-                return;
+                Assert.Pass("The MediaCodec is supported. This TC can be tested only if MediaCodec is not supported.");
             }
 
             Assert.That(() => new MediaCodecErrorOccurredEventArgs(MediaCodecError.InternalError),
@@ -58,6 +58,10 @@ namespace Tizen.Multimedia.MediaCodec.Tests
 
                 Assert.That(new MediaCodecErrorOccurredEventArgs(error).Error, Is.EqualTo(error));
             }
+            else
+            {
+                Assert.Pass("The MediaCodec is not supported.");
+            }
         }
     }
 }
old mode 100755 (executable)
new mode 100644 (file)
index f82acb8..27ac4a2
@@ -16,6 +16,11 @@ namespace Tizen.Multimedia.MediaCodec.Tests
         [Property("AUTHOR", "JungHo Kim, jhyo.kim@samsung.com")]
         public static void Packet_READONLY()
         {
+            if (FeatureChecker.IsSupported(Constants.Feature) == false)
+            {
+                Assert.Pass("The MediaCodec is not supported.");
+            }
+
             AssertHelper.PropertyReadOnly<OutputAvailableEventArgs>(nameof(OutputAvailableEventArgs.Packet));
         }