From 44fb055cf47a3a54cce0d746af23955753284422 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 30 May 2014 10:54:44 +0200 Subject: Modify unit tests to match API change. --- test/test_opus.cc | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'test/test_opus.cc') diff --git a/test/test_opus.cc b/test/test_opus.cc index 380e7b9..582ea02 100644 --- a/test/test_opus.cc +++ b/test/test_opus.cc @@ -1,7 +1,7 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set et sw=2 ts=2: */ /*************************************************************************** - * test_init.cc + * test_opus.cc * * Mon Sep 2 14:02:16 CEST 2013 * Copyright 2013 Bent Bisballe Nyeng @@ -86,7 +86,9 @@ public: int sent = 0; { // Encode - struct lrtp_t *lrtp = lrtp_init(KEY, SSRC); + lrtp_status_t status; + struct lrtp_t *lrtp = lrtp_init(&status, KEY, SSRC); + CPPUNIT_ASSERT_EQUAL(status, LRTP_OK); int x = lrtp_create_profile(lrtp, PROFILE_OPUS, csrc, OPTION_END); @@ -137,7 +139,8 @@ public: printf("Opus error: %s\n", opus_strerror(framesize)); } - int ret = lrtp_enqueue_frame(lrtp, csrc, frame, framesize, timestamp); + int ret = lrtp_enqueue_frame(lrtp, csrc, frame, framesize, timestamp, + LRTP_COPY); while( (ret = lrtp_pack(lrtp, packet, sizeof(packet))) != 0) { std::string p; p.append(packet, ret); @@ -153,7 +156,9 @@ public: } { // Decode - struct lrtp_t *lrtp = lrtp_init(KEY, SSRC); + lrtp_status_t status; + struct lrtp_t *lrtp = lrtp_init(&status, KEY, SSRC); + CPPUNIT_ASSERT_EQUAL(status, LRTP_OK); int x = lrtp_create_profile(lrtp, PROFILE_OPUS, csrc, OPTION_END); -- cgit v1.2.3