Add additional libcynara-agent tests 22/37022/4
authorRadoslaw Bartosiak <r.bartosiak@samsung.com>
Fri, 30 Jan 2015 16:42:31 +0000 (17:42 +0100)
committerLukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Fri, 20 Mar 2015 12:54:26 +0000 (13:54 +0100)
commit5a38d2d13f3c3d3240eeea51e05fc80f9b39ecf7
tree60dc9a86f60fe67791a2773f36396098ea1857c1
parentaf3df1125ed6df07f91b8fb010b131e8f6e2f131
Add additional libcynara-agent tests

Add test cases for: cynara_agent_initialize(), cynara_agent_finish(),
cynara_agent_get_request(), cynara_agent_put_response()

*) tcag08_get_request_and_respond_with_wrong_id - client shall not
   receive a response.
*) tcag09_get_request_and_correct_responded_id - client shall
   receive the response with correct id.
*) tcag10_cancel_request - client shall receive the confirmation of
   its cancel action.
*) tcag11_cancel_processed_request - the cancelation of the request
   processed by the agent is possible but void.
*) tcag12_create_two_requests - processing of two requests.
*) tcag13_create_many_requests - processing of many requests and
   sending the responses by the agent in LIFO order.
*) tcag14_client_disconnects - the cancel request shall be sent by
   Cynara when client disconnects.
*) tcag15_agent_disconnects - the access denied answer shall be
   sent by Cynara when agent disconnects.

Change-Id: I45c11e79c4977bed6892166a51c336e0414fc02e
Signed-off-by: Radoslaw Bartosiak <r.bartosiak@samsung.com>
src/cynara-tests/common/cynara_test_agent.cpp
src/cynara-tests/test_cases_agent.cpp