File: EchoSCU.cpp

package info (click to toggle)
odil 0.13.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,476 kB
  • sloc: cpp: 55,982; python: 3,947; javascript: 460; xml: 182; makefile: 99; sh: 36
file content (28 lines) | stat: -rw-r--r-- 577 bytes parent folder | download | duplicates (4)
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
#define BOOST_TEST_MODULE EchoSCU
#include <boost/test/unit_test.hpp>

#include "odil/EchoSCU.h"
#include "odil/registry.h"

#include "../PeerFixtureBase.h"

struct Fixture: public PeerFixtureBase
{
    Fixture()
    : PeerFixtureBase({
        {
            1, odil::registry::Verification,
            {odil::registry::ImplicitVRLittleEndian}, 
            odil::AssociationParameters::PresentationContext::Role::SCU
        }
    })
    {
        // Nothing else
    }
};

BOOST_FIXTURE_TEST_CASE(Echo, Fixture)
{
    odil::EchoSCU scu(this->association);
    scu.echo();
}