File: test_mimoprocessor.cpp

package info (click to toggle)
soundscaperenderer 0.5.0~dfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 9,916 kB
  • sloc: cpp: 32,247; makefile: 898; sh: 333; python: 35
file content (37 lines) | stat: -rw-r--r-- 901 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#include "apf/mimoprocessor.h"

#include "catch/catch.hpp"

#include "apf/pointer_policy.h"
#include "apf/dummy_thread_policy.h"

struct DummyProcessor : public apf::MimoProcessor<DummyProcessor
                        , apf::pointer_policy<float*>
                        , apf::dummy_thread_policy>
{
  DummyProcessor(const apf::parameter_map& p)
    : apf::MimoProcessor<DummyProcessor, apf::pointer_policy<float*>
      , apf::dummy_thread_policy>(p)
  {}

  void process() {}
};

TEST_CASE("MimoProcessor", "Test MimoProcessor")
{

SECTION("compilation", "does it compile?")
{
  apf::parameter_map p;
  // some strange values:
  p.set("sample_rate", 1000);
  p.set("block_size", 33);
  DummyProcessor dummy(p);
}

// TODO: more tests!

} // TEST_CASE MimoProcessor

// Settings for Vim (http://www.vim.org/), please do not remove:
// vim:softtabstop=2:shiftwidth=2:expandtab:textwidth=80:cindent