public void OneTimeSetup()
{
Information.TryGetValue<bool>("tizen.org/feature/microphone", out _isMicrophoneAvail);
- Tizen.Log.Info(LogTag, "Microphone available : " + _isMicrophoneAvail);
+ Log.Info(LogTag, "Microphone available : " + _isMicrophoneAvail);
}
[SetUp]
[Test]
[Category("P1")]
- [Description("AsyncAudioCapture test")]
+ [Description("Create AsyncAudioCapture object with Mono channel")]
[Property("SPEC", "Tizen.Multimedia.AsyncAudioCapture.AsyncAudioCapture C")]
[Property("SPEC_URL", "-")]
- [Property("CRITERIA", "EVL")]
- public void AsyncAudioCapture_CHECK()
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
+ public void AsyncAudioCapture_CREATE_MONO_CHANNEL()
{
if (_isMicrophoneAvail == false)
return;
+ Assert.DoesNotThrow(() => new AsyncAudioCapture(44100, AudioChannel.Mono, AudioSampleType.U8));
Assert.DoesNotThrow(() => new AsyncAudioCapture(44100, AudioChannel.Mono, AudioSampleType.S16Le));
+ Assert.DoesNotThrow(() => new AsyncAudioCapture(44100, AudioChannel.Mono, AudioSampleType.S24Le));
+ Assert.DoesNotThrow(() => new AsyncAudioCapture(44100, AudioChannel.Mono, AudioSampleType.S24LePacked));
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Create AsyncAudioCapture object with Stereo channel")]
+ [Property("SPEC", "Tizen.Multimedia.AsyncAudioCapture.AsyncAudioCapture C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
+ public void AsyncAudioCapture_CREATE_STEREO_CHANNEL()
+ {
+ if (_isMicrophoneAvail == false)
+ return;
+
+ Assert.DoesNotThrow(() => new AsyncAudioCapture(44100, AudioChannel.Stereo, AudioSampleType.U8));
+ Assert.DoesNotThrow(() => new AsyncAudioCapture(44100, AudioChannel.Stereo, AudioSampleType.S16Le));
+ Assert.DoesNotThrow(() => new AsyncAudioCapture(44100, AudioChannel.Stereo, AudioSampleType.S24Le));
+ Assert.DoesNotThrow(() => new AsyncAudioCapture(44100, AudioChannel.Stereo, AudioSampleType.S24LePacked));
+ }
+
+ [Test]
+ [Category("P2")]
+ [Description("AsyncAudioCapture constructor throws ArgumentOutOfRangeException when invalid sample rate is given.")]
+ [Property("SPEC", "Tizen.Multimedia.AsyncAudioCapture.AsyncAudioCapture C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTX")]
+ [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
+ public void AsyncAudioCapture_THROWS_IF_SAMPLE_RATE_INVALID()
+ {
+ if (_isMicrophoneAvail == false)
+ return;
+
+ Assert.DoesNotThrow(() =>
+ new AsyncAudioCapture(AudioCaptureBase.MinSampleRate, AudioChannel.Stereo, AudioSampleType.S16Le));
+
+ Assert.DoesNotThrow(() =>
+ new AsyncAudioCapture(AudioCaptureBase.MaxSampleRate, AudioChannel.Stereo, AudioSampleType.S16Le));
+
+ Assert.Throws<ArgumentOutOfRangeException>(() =>
+ new AsyncAudioCapture(AudioCaptureBase.MinSampleRate - 1, AudioChannel.Stereo, AudioSampleType.S16Le));
+
+ Assert.Throws<ArgumentOutOfRangeException>(() =>
+ new AsyncAudioCapture(AudioCaptureBase.MaxSampleRate + 1, AudioChannel.Stereo, AudioSampleType.S16Le));
+ }
+
+ [Test]
+ [Category("P2")]
+ [Description("AsyncAudioCapture constructor throws ArgumentException when invalid channel is given.")]
+ [Property("SPEC", "Tizen.Multimedia.AsyncAudioCapture.AsyncAudioCapture C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTX")]
+ [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
+ public void AsyncAudioCapture_THROWS_IF_CHANNEL_INVALID()
+ {
+ if (_isMicrophoneAvail == false)
+ return;
+
+ Assert.Throws<ArgumentException>(() =>
+ new AsyncAudioCapture(AudioCaptureBase.MinSampleRate, AudioChannel.Mono - 1, AudioSampleType.U8));
+
+ Assert.Throws<ArgumentException>(() =>
+ new AsyncAudioCapture(AudioCaptureBase.MaxSampleRate, AudioChannel.Stereo + 1, AudioSampleType.S16Le));
+ }
+
+ [Test]
+ [Category("P2")]
+ [Description("AsyncAudioCapture constructor throws ArgumentException when invalid sample type is given.")]
+ [Property("SPEC", "Tizen.Multimedia.AsyncAudioCapture.AsyncAudioCapture C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTX")]
+ [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
+ public void AsyncAudioCapture_THROWS_IF_SAMPLE_TYPE_INVALID()
+ {
+ if (_isMicrophoneAvail == false)
+ return;
+
+ Assert.Throws<ArgumentException>(() =>
+ new AsyncAudioCapture(AudioCaptureBase.MinSampleRate, AudioChannel.Mono, AudioSampleType.U8 - 1));
+
+ Assert.Throws<ArgumentException>(() =>
+ new AsyncAudioCapture(AudioCaptureBase.MaxSampleRate, AudioChannel.Stereo, AudioSampleType.S24LePacked + 1));
}
[Test]
public void OneTimeSetup()
{
Information.TryGetValue<bool>("tizen.org/feature/microphone", out _isMicrophoneAvail);
- Tizen.Log.Info(LogTag, "Microphone available : " + _isMicrophoneAvail);
+ Log.Info(LogTag, "Microphone available : " + _isMicrophoneAvail);
}
[SetUp]
[Test]
[Category("P1")]
+ [Description("Create AudioCapture object with Mono and S24Le value and verify")]
+ [Property("SPEC", "Tizen.Multimedia.AudioCapture.AudioCapture C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
+ public void AudioCapture_CREATE_MONO_S24Le()
+ {
+ if (_isMicrophoneAvail == false)
+ return;
+
+ Assert.DoesNotThrow(() => new AudioCapture(44100, AudioChannel.Mono, AudioSampleType.S24Le));
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Create AudioCapture object with Mono and S24LePacked value and verify")]
+ [Property("SPEC", "Tizen.Multimedia.AudioCapture.AudioCapture C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
+ public void AudioCapture_CREATE_MONO_S24LePacked()
+ {
+ if (_isMicrophoneAvail == false)
+ return;
+
+ Assert.DoesNotThrow(() => new AudioCapture(44100, AudioChannel.Mono, AudioSampleType.S24LePacked));
+ }
+
+ [Test]
+ [Category("P1")]
[Description("Create AudioCapture object with Stereo and U8 value and verify")]
[Property("SPEC", "Tizen.Multimedia.AudioCapture.AudioCapture C")]
[Property("SPEC_URL", "-")]
}
[Test]
+ [Category("P1")]
+ [Description("Create AudioCapture object with Stereo and S24Le value and verify")]
+ [Property("SPEC", "Tizen.Multimedia.AudioCapture.AudioCapture C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
+ public void AudioCapture_CREATE_STEREO_S24Le()
+ {
+ if (_isMicrophoneAvail == false)
+ return;
+
+ Assert.DoesNotThrow(() => new AudioCapture(44100, AudioChannel.Stereo, AudioSampleType.S24Le));
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Create AudioCapture object with Stereo and S24LePacked value and verify")]
+ [Property("SPEC", "Tizen.Multimedia.AudioCapture.AudioCapture C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
+ public void AudioCapture_CREATE_STEREO_S24LePacked()
+ {
+ if (_isMicrophoneAvail == false)
+ return;
+
+ Assert.DoesNotThrow(() => new AudioCapture(44100, AudioChannel.Stereo, AudioSampleType.S24LePacked));
+ }
+
+ [Test]
[Category("P2")]
[Description("AudioCapture constructor throws ArgumentOutOfRangeException when invalid sample rate is given.")]
[Property("SPEC", "Tizen.Multimedia.AudioCapture.AudioCapture C")]
[Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MEX")]
+ [Property("CRITERIA", "CONSTX")]
[Property("AUTHOR", "Sangchul Lee, sc11.lee@samsung.com")]
public void AudioCapture_THROWS_IF_SAMPLE_RATE_INVALID()
{
[Description("AudioCapture constructor throws ArgumentException when invalid channel is given.")]
[Property("SPEC", "Tizen.Multimedia.AudioCapture.AudioCapture C")]
[Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MEX")]
+ [Property("CRITERIA", "CONSTX")]
[Property("AUTHOR", "Seungbae Shin, seungbae.shin@samsung.com")]
public void AudioCapture_THROWS_IF_CHANNEL_INVALID()
{
[Description("AudioCapture constructor throws ArgumentException when invalid sample type is given.")]
[Property("SPEC", "Tizen.Multimedia.AudioCapture.AudioCapture C")]
[Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MEX")]
+ [Property("CRITERIA", "CONSTX")]
[Property("AUTHOR", "Seungbae Shin, seungbae.shin@samsung.com")]
public void AudioCapture_THROWS_IF_SAMPLE_TYPE_INVALID()
{
new AudioCapture(AudioCaptureBase.MinSampleRate, AudioChannel.Mono, AudioSampleType.U8 - 1));
Assert.Throws<ArgumentException>(() =>
- new AudioCapture(AudioCaptureBase.MaxSampleRate, AudioChannel.Stereo, AudioSampleType.S16Le + 1));
+ new AudioCapture(AudioCaptureBase.MaxSampleRate, AudioChannel.Stereo, AudioSampleType.S24LePacked + 1));
}
[Test]
public void OneTimeSetup()
{
Information.TryGetValue("tizen.org/feature/microphone", out _isMicrophoneAvail);
- Tizen.Log.Info(LogTag, "Microphone available : " + _isMicrophoneAvail);
+ Log.Info(LogTag, "Microphone available : " + _isMicrophoneAvail);
}
[SetUp]
[Test]
[Category("P1")]
+ [Description("Create AudioPlayback object with Mono and S24Le value and verify")]
+ [Property("SPEC", "Tizen.Multimedia.AudioPlayback.AudioPlayback C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
+ public void AudioPlayback_CREATE_MONO_S24Le()
+ {
+ Assert.DoesNotThrow(() => new AudioPlayback(44100, AudioChannel.Mono, AudioSampleType.S24Le));
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Create AudioPlayback object with Mono and S24LePacked value and verify")]
+ [Property("SPEC", "Tizen.Multimedia.AudioPlayback.AudioPlayback C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
+ public void AudioPlayback_CREATE_MONO_S24LePacked()
+ {
+ Assert.DoesNotThrow(() => new AudioPlayback(44100, AudioChannel.Mono, AudioSampleType.S24LePacked));
+ }
+
+ [Test]
+ [Category("P1")]
[Description("Create AudioPlayback object with Stereo and U8 value and verify")]
[Property("SPEC", "Tizen.Multimedia.AudioPlayback.AudioPlayback C")]
[Property("SPEC_URL", "-")]
}
[Test]
+ [Category("P1")]
+ [Description("Create AudioPlayback object with Stereo and S24Le value and verify")]
+ [Property("SPEC", "Tizen.Multimedia.AudioPlayback.AudioPlayback C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
+ public void AudioPlayback_CREATE_STEREO_S24Le()
+ {
+ Assert.DoesNotThrow(() => new AudioPlayback(44100, AudioChannel.Stereo, AudioSampleType.S24Le));
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Create AudioPlayback object with Stereo and S24LePacked value and verify")]
+ [Property("SPEC", "Tizen.Multimedia.AudioPlayback.AudioPlayback C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
+ public void AudioPlayback_CREATE_STEREO_S24LePacked()
+ {
+ Assert.DoesNotThrow(() => new AudioPlayback(44100, AudioChannel.Stereo, AudioSampleType.S24LePacked));
+ }
+
+ [Test]
[Category("P2")]
[Description("AudioPlayback constructor throws ArgumentOutOfRangeException when invalid sample rate is given.")]
[Property("SPEC", "Tizen.Multimedia.AudioPlayback.AudioPlayback C")]
[Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MEX")]
+ [Property("CRITERIA", "CONSTX")]
[Property("AUTHOR", "Sangchul Lee, sc11.lee@samsung.com")]
public void AudioPlayback_THROWS_IF_SAMPLE_RATE_INVALID()
{
[Description("AudioPlayback constructor throws ArgumentOutOfRangeException when invalid channel is given")]
[Property("SPEC", "Tizen.Multimedia.AudioPlayback.AudioPlayback C")]
[Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MEX")]
+ [Property("CRITERIA", "CONSTX")]
[Property("AUTHOR", "Seungbae Shin, seungbae.shin@samsung.com")]
public void AudioPlayback_THROWS_IF_CHANNEL_INVALID()
{
[Description("AudioPlayback constructor throws ArgumentOutOfRangeException when invalid sample type is given")]
[Property("SPEC", "Tizen.Multimedia.AudioPlayback.AudioPlayback C")]
[Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MEX")]
+ [Property("CRITERIA", "CONSTX")]
[Property("AUTHOR", "Seungbae Shin, seungbae.shin@samsung.com")]
public void AudioPlayback_THROWS_IF_SAMPLE_TYPE_INVALID()
{
new AudioPlayback(AudioPlayback.MinSampleRate, AudioChannel.Mono, AudioSampleType.U8 - 1));
Assert.Throws<ArgumentException>(() =>
- new AudioPlayback(AudioPlayback.MaxSampleRate, AudioChannel.Stereo, AudioSampleType.S16Le + 1));
+ new AudioPlayback(AudioPlayback.MaxSampleRate, AudioChannel.Stereo, AudioSampleType.S24LePacked + 1));
}
[Test]