Add DB::Transaction class. Change tests to use new libprivilege API.
authorMarcin Lis <m.lis@samsung.com>
Tue, 24 Sep 2013 10:49:23 +0000 (12:49 +0200)
committerMarcin Niesluchowski <m.niesluchow@samsung.com>
Thu, 23 Jan 2014 14:19:09 +0000 (15:19 +0100)
commitc2b52ef46c3689bf9a4f877197efaa1145651e58
treee18ea7b7d06ba391d17fcb07ab3500d225787721
parent2b2a1fb44c37fc2084358f7d8f6b97473fd66f32
Add DB::Transaction class. Change tests to use new libprivilege API.

[Issue#]       SSDWSSP-183
[Bug/Feature]  N/A
[Cause]        N/A
[Solution]     Added class DB::Transaction which opens and closes transaction.
               Added macros DB_BEGIN and DB_END that determine DB::Transaction
               class object lifetime which in turn start and commit
               db transactions.
               Also macros used in tests to reduce test-execution time.
[Verification] Build, install, run tests.

Change-Id: I90b48c27e352fb24e9c57ec7b1bb9005d8f0fd2d
tests/common/tests_common.cpp
tests/common/tests_common.h
tests/libprivilege-control-tests/test_cases.cpp
tests/libprivilege-control-tests/test_cases_nosmack.cpp
tests/libprivilege-control-tests/test_cases_stress.cpp