- 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/TestAppIntro.h
Normal file
32
test/functional/Test1/TestAppIntro.h
Normal file
|
@ -0,0 +1,32 @@
|
|||
#ifndef TEST_APP_INTRO_H
|
||||
#define TEST_APP_INTRO_H
|
||||
|
||||
#include "TestAppIntroPrivate.h"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
class TestAppIntro :
|
||||
public DBusCpp::Test::Com::Intro_proxy,
|
||||
public DBus::IntrospectableProxy,
|
||||
public DBus::ObjectProxy
|
||||
{
|
||||
public:
|
||||
TestAppIntro (DBus::Connection& connection, pthread_cond_t &condition, bool &testResult) :
|
||||
DBus::ObjectProxy (connection, "/DBusCpp/Test/Com/Intro", "DBusCpp.Test.Com.Intro"),
|
||||
mCondition (condition),
|
||||
mTestResult (testResult)
|
||||
{}
|
||||
|
||||
void test1Result ()
|
||||
{
|
||||
std::cout << "Test1Result" << std::endl;
|
||||
mTestResult = true;
|
||||
pthread_cond_signal (&mCondition);
|
||||
}
|
||||
|
||||
private:
|
||||
pthread_cond_t &mCondition;
|
||||
bool &mTestResult;
|
||||
};
|
||||
|
||||
#endif // TEST_COM_INTRO_H
|
Loading…
Add table
Add a link
Reference in a new issue