57 lines
937 B
C++
Executable File
57 lines
937 B
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* AvaComm
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Christian Fröbel, SLSE, 2017-06-20
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <QTest>
|
|
#include <memory>
|
|
|
|
namespace AudioVideoManagement
|
|
{
|
|
|
|
class AvaComm;
|
|
class AvaTestServer;
|
|
|
|
}
|
|
|
|
/**
|
|
* @author Christian Fröbel
|
|
*/
|
|
class AvaCommTest : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
AvaCommTest();
|
|
~AvaCommTest();
|
|
|
|
private slots:
|
|
void initTestCase();
|
|
void cleanupTestCase();
|
|
void init();
|
|
void cleanup();
|
|
|
|
void testSwitchContext();
|
|
void testSetUserProfile();
|
|
void testSetVideoDialogProfile();
|
|
void testGetStreamList();
|
|
void testChooseStream();
|
|
void testQueryTimeline();
|
|
void testGetElokaList();
|
|
|
|
private:
|
|
void login();
|
|
|
|
class SignalSpy;
|
|
|
|
std::unique_ptr<AudioVideoManagement::AvaTestServer> m_fakeAvaServer;
|
|
std::unique_ptr<AudioVideoManagement::AvaComm> m_avaComm;
|
|
std::unique_ptr<SignalSpy> m_spy;
|
|
};
|