diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2014-05-30 10:54:44 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2014-05-30 10:54:44 +0200 |
commit | 44fb055cf47a3a54cce0d746af23955753284422 (patch) | |
tree | 63c91a02937b094fb122caa59399e7f1e95a8ae5 /test/test_raw.cc | |
parent | 7fc1b8f300b2ce2e7f8bd573f02b8650213c2be9 (diff) |
Modify unit tests to match API change.
Diffstat (limited to 'test/test_raw.cc')
-rw-r--r-- | test/test_raw.cc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/test/test_raw.cc b/test/test_raw.cc index e219ffa..ffadabb 100644 --- a/test/test_raw.cc +++ b/test/test_raw.cc @@ -55,7 +55,9 @@ public: unsigned int csrc = 42; { // 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_RAW, csrc, OPTION_RAW_PKG_SIZE, pkg_size, @@ -72,7 +74,8 @@ public: for(size_t i = 0; i < sizeof(frame); i++) frame[i] = num++; int ret = 0; - ret = lrtp_enqueue_frame(lrtp, csrc, frame, sizeof(frame), ts); + ret = lrtp_enqueue_frame(lrtp, csrc, frame, sizeof(frame), ts, + LRTP_COPY); while( (ret = lrtp_pack(lrtp, packet, sizeof(packet))) != 0) { std::string p; p.append(packet, ret); @@ -87,7 +90,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_RAW, csrc, OPTION_RAW_PKG_SIZE, pkg_size, |