summaryrefslogtreecommitdiff
path: root/AudioManagerCore/test/MockIAmRoutingSend.h
diff options
context:
space:
mode:
authorMartin Koch <martin.koch@ese.de>2020-06-30 16:16:45 +0200
committerMartin Koch <martin.koch@ese.de>2020-07-01 14:37:33 +0200
commite592ea695ace7c5dc9dfac835c144b6b54ab8eb5 (patch)
tree0437080c9704975273b2578af6f1417f24e5f687 /AudioManagerCore/test/MockIAmRoutingSend.h
parent4712a61710ae5fbadcde3d6901ad2e0acdf2b73c (diff)
downloadaudiomanager-e592ea695ace7c5dc9dfac835c144b6b54ab8eb5.tar.gz
AM-Test: add test cases for registerEarlyConnection() and transferConnection()
Signed-off-by: Martin Koch <martin.koch@ese.de>
Diffstat (limited to 'AudioManagerCore/test/MockIAmRoutingSend.h')
-rw-r--r--AudioManagerCore/test/MockIAmRoutingSend.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/AudioManagerCore/test/MockIAmRoutingSend.h b/AudioManagerCore/test/MockIAmRoutingSend.h
index 748e64e..21ea8f1 100644
--- a/AudioManagerCore/test/MockIAmRoutingSend.h
+++ b/AudioManagerCore/test/MockIAmRoutingSend.h
@@ -45,6 +45,12 @@ class MockIAmRoutingSend : public IAmRoutingSend {
am_Error_e(const am_Handle_s handle, const am_connectionID_t connectionID, const am_sourceID_t sourceID, const am_sinkID_t sinkID, const am_CustomAvailabilityReason_t connectionFormat));
MOCK_METHOD2(asyncDisconnect,
am_Error_e(const am_Handle_s handle, const am_connectionID_t connectionID));
+ MOCK_METHOD4(asyncTransferConnection,
+ am_Error_e(const am_Handle_s handle, am_domainID_t domainID, const std::vector<std::pair<std::string, std::string>> &route, am_ConnectionState_e state));
+ am_Error_e defaultAsyncTransferConnection(const am_Handle_s handle, am_domainID_t domainID
+ , const std::vector<std::pair<std::string, std::string>> &route
+ , am_ConnectionState_e state) // allow usage of default implementation from IAmRoutingSend
+ { return IAmRoutingSend::asyncTransferConnection(handle, domainID, route, state); }
MOCK_METHOD5(asyncSetSinkVolume,
am_Error_e(const am_Handle_s handle, const am_sinkID_t sinkID, const am_volume_t volume, const am_CustomRampType_t ramp, const am_time_t time));
MOCK_METHOD5(asyncSetSourceVolume,