Skip to content

Commit

Permalink
removed noop test from backend_source
Browse files Browse the repository at this point in the history
  • Loading branch information
Hrick87 committed Feb 26, 2024
1 parent 127636f commit 58b62e0
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions src/tests/roc_sndio/test_backend_source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,36 +82,6 @@ TEST_GROUP(backend_source) {
}
};

TEST(backend_source, noop) {
for (size_t n_backend = 0; n_backend < BackendMap::instance().num_backends();
n_backend++) {
core::TempFile file("test.wav");
IBackend& backend = BackendMap::instance().nth_backend(n_backend);

if (!supports_wav(backend)) {
continue;
}
{
test::MockSource mock_source;
IDevice* backend_device = backend.open_device(
DeviceType_Sink, DriverType_File, NULL, file.path(), sink_config, arena);
CHECK(backend_device != NULL);
core::ScopedPtr<ISink> backend_sink(backend_device->to_sink(), arena);
CHECK(backend_sink != NULL);

Pump pump(buffer_factory, mock_source, NULL, *backend_sink, FrameDuration,
SampleSpecs, Pump::ModeOneshot);
CHECK(pump.is_valid());
CHECK(pump.run());
}
IDevice* backend_device = backend.open_device(
DeviceType_Source, DriverType_File, NULL, file.path(), source_config, arena);
CHECK(backend_device != NULL);
core::ScopedPtr<ISource> backend_source(backend_device->to_source(), arena);
CHECK(backend_source != NULL);
}
}

TEST(backend_source, error) {
for (size_t n_backend = 0; n_backend < BackendMap::instance().num_backends();
n_backend++) {
Expand Down

0 comments on commit 58b62e0

Please sign in to comment.