Add more tests for verifying the behavior of CAudioManager class 66/264566/1
authorJi-hoon Lee <dalton.lee@samsung.com>
Fri, 24 Sep 2021 10:36:13 +0000 (19:36 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Fri, 24 Sep 2021 10:40:59 +0000 (19:40 +0900)
commitabda03c6e4e8d492e77c92614da1f8b357744fc8
treeba64e0a1ae43a116412323106823cf8d1761545f
parentf9f610c3cb6be372ddd3221bc9aa5baf485d7faf
Add more tests for verifying the behavior of CAudioManager class

Previously, only a single test was available for CAudioManager class,
which definitely is not an adequate number to verify its behavior.
For this reason, added more tests to verify the current implementation
of CAudioManager class and also to guarantee the future modification
will not cause any unexpected results.

[==========] Running 11 tests from 1 test suite.
[----------] Global test environment set-up.
[----------] 11 tests from DefaultFixture
[ RUN      ] DefaultFixture.StreamsAllDataFed
[       OK ] DefaultFixture.StreamsAllDataFed (1 ms)
[ RUN      ] DefaultFixture.StreamsAllDataFedAfterClear
[       OK ] DefaultFixture.StreamsAllDataFedAfterClear (0 ms)
[ RUN      ] DefaultFixture.OnRecordingAudioDataCallbackProperlyCalled
[       OK ] DefaultFixture.OnRecordingAudioDataCallbackProperlyCalled (1 ms)
[ RUN      ] DefaultFixture.OnRecordingAudioDataCallbackProperlyCalledAfterFinalizing
[       OK ] DefaultFixture.OnRecordingAudioDataCallbackProperlyCalledAfterFinalizing (0 ms)
[ RUN      ] DefaultFixture.RecordingStartsWhenRequestedWithSoundFocus
[       OK ] DefaultFixture.RecordingStartsWhenRequestedWithSoundFocus (0 ms)
[ RUN      ] DefaultFixture.RecordingDoesNotStartWhenRequestedWithSoundFocus
[       OK ] DefaultFixture.RecordingDoesNotStartWhenRequestedWithSoundFocus (0 ms)
[ RUN      ] DefaultFixture.RecordingStopsWhenRequested
[       OK ] DefaultFixture.RecordingStopsWhenRequested (0 ms)
[ RUN      ] DefaultFixture.RecordingStopsWhenSoundFocusLost
[       OK ] DefaultFixture.RecordingStopsWhenSoundFocusLost (0 ms)
[ RUN      ] DefaultFixture.RecordingStartsWhenSoundFocusAcquiredAgain
[       OK ] DefaultFixture.RecordingStartsWhenSoundFocusAcquiredAgain (0 ms)
[ RUN      ] DefaultFixture.RecordingStartsWhenSoundFocusAcquiredLater
[       OK ] DefaultFixture.RecordingStartsWhenSoundFocusAcquiredLater (0 ms)
[ RUN      ] DefaultFixture.RecordingDoesNotStartWhenSoundFocusAcquiredAgainIfStopped
[       OK ] DefaultFixture.RecordingDoesNotStartWhenSoundFocusAcquiredAgainIfStopped (0 ms)
[----------] 11 tests from DefaultFixture (2 ms total)

[----------] Global test environment tear-down
[==========] 11 tests from 1 test suite ran. (2 ms total)
[  PASSED  ] 11 tests.

Change-Id: I50939d259e0b4f1072c6f7e1e2948ea1856eae38
tests/utc/audio-manager/CMakeLists.txt
tests/utc/audio-manager/test_audio_manager.cpp
tests/utc/audio-manager/ttpo.xml [new file with mode: 0644]