-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
42 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
cmake_minimum_required(VERSION 3.9) | ||
|
||
list_declare_library(ebu_list_srt) | ||
|
||
target_link_libraries(${PROJECT_NAME} ebu_list_core ebu_list_net ebu_list_analysis ebu_list_st2110) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() | ||
#include "catch2/catch.hpp" |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#include "utils.h" | ||
|
||
using namespace ebu_list; | ||
using namespace ebu_list::srt; | ||
using namespace ebu_list::st2110; | ||
|
||
//------------------------------------------------------------------------------ | ||
|
||
detector::status_description test::run_srt_format_detector(srt_format_detector& srt_d, udp_source& s) | ||
{ | ||
for(;;) | ||
{ | ||
auto packet = s.next(); | ||
if(!packet) | ||
return detector::status_description{/*.state*/ detector::state::invalid, | ||
/*.error_code*/ "UNIT_TESTING"}; | ||
|
||
const auto result = srt_d.handle_data(std::move(packet.value())); | ||
if(result.state == detector::state::valid || result.state == detector::state::invalid) return result; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#pragma once | ||
|
||
#include "ebu/list/st2110/format_detector.h" | ||
#include "ebu/list/srt/srt_format_detector.h" | ||
#include "udp_source.h" | ||
|
||
namespace ebu_list::test | ||
{ | ||
st2110::detector::status_description run_srt_format_detector(srt::srt_format_detector& srt_d, udp_source& s); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
#pragma once | ||
|
||
#include "ebu/list/st2110/format_detector.h" | ||
#include "ebu/list/srt/srt_format_detector.h" | ||
#include "rtp_source.h" | ||
#include "udp_source.h" | ||
|
||
namespace ebu_list::test | ||
{ | ||
st2110::detector::status_description run_detector(st2110::detector& d, rtp_source& s); | ||
st2110::detector::status_description run_srt_format_detector(srt::srt_format_detector& srt_d, udp_source& s); | ||
} |