- create stucture for functional test
- implementation of first test
This commit is contained in:
parent
2185408cfa
commit
9be39fb628
12 changed files with 269 additions and 13 deletions
32
test/functional/Test1/TestAppIntroProvider.h
Normal file
32
test/functional/Test1/TestAppIntroProvider.h
Normal file
|
@ -0,0 +1,32 @@
|
|||
#ifndef TEST_APP_INTRO_PROVIDER_H
|
||||
#define TEST_APP_INTRO_PROVIDER_H
|
||||
|
||||
#include "TestAppIntroProviderPrivate.h"
|
||||
|
||||
#include "TestAppIntro.h"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
class TestAppIntroProvider :
|
||||
public DBusCpp::Test::Com::Intro_adaptor,
|
||||
public DBus::IntrospectableAdaptor,
|
||||
public DBus::ObjectAdaptor
|
||||
{
|
||||
public:
|
||||
TestAppIntroProvider (DBus::Connection& connection, TestAppIntro *testComIntro) :
|
||||
DBus::ObjectAdaptor(connection, "/DBusCpp/Test/Com/Intro"),
|
||||
mTestAppIntro (testComIntro)
|
||||
{}
|
||||
|
||||
void test1 ()
|
||||
{
|
||||
std::cout << "Test1" << std::endl;
|
||||
mTestAppIntro->test1Result ();
|
||||
}
|
||||
|
||||
private:
|
||||
TestAppIntro *mTestAppIntro;
|
||||
};
|
||||
|
||||
#endif // TEST_COM_INTRO_PROVIDER_H
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue