diff options
author | Hyojung Jo <hj903.jo@samsung.com> | 2015-04-23 15:50:54 +0900 |
---|---|---|
committer | Hyojung Jo <hj903.jo@samsung.com> | 2015-04-23 15:50:54 +0900 |
commit | cdef67ae332882afc24ceb75a82abbd602ff57ae (patch) | |
tree | 266bb72a552db5f10158899a01a47d1162748df1 | |
parent | 48653dd4fe0f0c21b8dd8fd0e049d2e387f337e1 (diff) | |
download | tv-app-contents-cdef67ae332882afc24ceb75a82abbd602ff57ae.tar.gz tv-app-contents-cdef67ae332882afc24ceb75a82abbd602ff57ae.tar.bz2 tv-app-contents-cdef67ae332882afc24ceb75a82abbd602ff57ae.zip |
Fixed the error regarding testcase filesubmit/tizen/20150429.043336submit/tizen/20150429.030043accepted/tizen/tv/20150429.124022accepted/tizen/tv/20150429.051819
Change-Id: Ia22d7a80d65bd28fb2208f2a17e32a821ee200ef
Signed-off-by: Hyojung Jo <hj903.jo@samsung.com>
-rw-r--r-- | packaging/app-content.spec | 1 | ||||
-rw-r--r-- | test/CMakeLists.txt | 3 | ||||
-rw-r--r-- | test/src/main.cpp | 18 |
3 files changed, 18 insertions, 4 deletions
diff --git a/packaging/app-content.spec b/packaging/app-content.spec index 6aaea38..1cb6d3c 100644 --- a/packaging/app-content.spec +++ b/packaging/app-content.spec @@ -7,6 +7,7 @@ License: Apache-2.0 Source0: %{name}-%{version}.tar.gz BuildRequires: cmake +BuildRequires: pkgconfig(capi-appfw-application) BuildRequires: pkgconfig(elementary) BuildRequires: pkgconfig(dlog) BuildRequires: pkgconfig(sqlite3) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 20cb0e8..b481daa 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -4,7 +4,8 @@ PROJECT("app-contents-test" CXX C) SET(PREFIX ${CMAKE_INSTALL_PREFIX}) INCLUDE(FindPkgConfig) -pkg_check_modules(TEST_PKGS REQUIRED app-content) +pkg_check_modules(TEST_PKGS REQUIRED app-content + capi-appfw-application) SET(TEST_SRCS src/main.cpp diff --git a/test/src/main.cpp b/test/src/main.cpp index 329d059..d8d990f 100644 --- a/test/src/main.cpp +++ b/test/src/main.cpp @@ -14,7 +14,9 @@ * limitations under the License. */ +#include <app.h> #include <stdlib.h> +#include <string.h> #include "Test.h" void TestFavorite(void) @@ -65,13 +67,23 @@ void TestCategory(void) pTestCategory = NULL; } -int main(int argc, char **argv) +static bool _create(void *user_data) { TestFavorite(); TestPin(); + TestCategory(); + + return true; +} + +int main(int argc, char **argv) +{ + app_event_callback_s cbs; + + memset(&cbs, 0, sizeof(cbs)); + cbs.create = _create; - /* FIXME : It should be fixed. */ - //TestCategory(); + app_efl_main(&argc, &argv, &cbs, NULL); return 0; } |