int ITc_maps_place_foreach_review_p(void)
{
START_TEST_PLACE;
-
+
int nRet;
g_nCheckCb = 0;
g_nClone = 0;
nRet = maps_place_foreach_review(g_maps_place, MapsPlaceReviewsCb, NULL);
- PRINT_RESULT_CLEANUP(MAPS_ERROR_NONE, nRet, "maps_place_foreach_review", MapServiceGetError(nRet),maps_place_destroy(g_maps_place));
-
- if(g_nCheckCb != true)
+ if((nRet != MAPS_ERROR_NONE)&&(nRet != MAPS_ERROR_NOT_FOUND))
{
- FPRINTF("[Line : %d][%s] MapsPlaceReviewsCb not invoked \\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] %s failed, error returned = %s [%d]\\n", __LINE__, API_NAMESPACE, "maps_place_foreach_review", MapServiceGetError(nRet), nRet);
maps_place_destroy(g_maps_place);
return 1;
}
+ if(nRet == MAPS_ERROR_NONE)
+ {
+ if(g_nCheckCb != true)
+ {
+ FPRINTF("[Line : %d][%s] MapsPlaceReviewsCb not invoked \\n", __LINE__, API_NAMESPACE);
+ maps_place_destroy(g_maps_place);
+ return 1;
+ }
+ }
nRet = maps_place_destroy(g_maps_place);
PRINT_RESULT_NORETURN(MAPS_ERROR_NONE, nRet, "maps_place_destroy", MapServiceGetError(nRet));
return 0;
-}
-
+}
//& type: auto
//& purpose: scenario to clone and destroy the place review handle.
/**
int ITc_maps_place_review_clone_destroy_p(void)
{
START_TEST_PLACE;
-
+
int nRet;
g_nCheckCb = 0;
g_nCheckRet = 0;
g_nClone = 1;
-
- nRet = maps_place_foreach_review(g_maps_place, MapsPlaceReviewsCb, NULL);
- PRINT_RESULT_CLEANUP(MAPS_ERROR_NONE, nRet, "maps_place_foreach_review", MapServiceGetError(nRet),maps_place_destroy(g_maps_place));
-
- if(g_nCheckCb != true)
+ nRet = maps_place_foreach_review(g_maps_place, MapsPlaceReviewsCb, NULL);
+ if((nRet != MAPS_ERROR_NONE)&&(nRet != MAPS_ERROR_NOT_FOUND))
{
- FPRINTF("[Line : %d][%s] MapsPlaceReviewsCb not invoked \\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] %s failed, error returned = %s [%d]\\n", __LINE__, API_NAMESPACE, "maps_place_foreach_review", MapServiceGetError(nRet), nRet);
maps_place_destroy(g_maps_place);
return 1;
}
-
- PRINT_RESULT_CLEANUP(MAPS_ERROR_NONE, g_nCheckRet, "maps_place_review_clone", MapServiceGetError(g_nCheckRet),maps_place_destroy(g_maps_place));
- CHECK_HANDLE_CLEANUP(g_place_review, "maps_place_review_clone",maps_place_destroy(g_maps_place));
-
- nRet = maps_place_review_destroy(g_place_review);
- PRINT_RESULT_CLEANUP(MAPS_ERROR_NONE, nRet, "maps_place_review_destroy", MapServiceGetError(nRet),maps_place_destroy(g_maps_place));
-
+ if(nRet == MAPS_ERROR_NONE)
+ {
+ if(g_nCheckCb != true)
+ {
+ FPRINTF("[Line : %d][%s] MapsPlaceReviewsCb not invoked \\n", __LINE__, API_NAMESPACE);
+ maps_place_destroy(g_maps_place);
+ return 1;
+ }
+
+ PRINT_RESULT_CLEANUP(MAPS_ERROR_NONE, g_nCheckRet, "maps_place_review_clone", MapServiceGetError(g_nCheckRet),maps_place_destroy(g_maps_place));
+ CHECK_HANDLE_CLEANUP(g_place_review, "maps_place_review_clone",maps_place_destroy(g_maps_place));
+
+ nRet = maps_place_review_destroy(g_place_review);
+ PRINT_RESULT_CLEANUP(MAPS_ERROR_NONE, nRet, "maps_place_review_destroy", MapServiceGetError(nRet),maps_place_destroy(g_maps_place));
+ }
nRet = maps_place_destroy(g_maps_place);
PRINT_RESULT_NORETURN(MAPS_ERROR_NONE, nRet, "maps_place_destroy", MapServiceGetError(nRet));
-
+
return 0;
}
//& type: auto
int ITc_maps_place_review_get_date_p(void)
{
START_TEST_PLACE;
-
+
char *date = NULL;
int nRet;
-
+
g_nCheckCb = 0;
g_nCheckRet = 0;
g_nClone = 1;
nRet = maps_place_foreach_review(g_maps_place, MapsPlaceReviewsCb, NULL);
- PRINT_RESULT_CLEANUP(MAPS_ERROR_NONE, nRet, "maps_place_foreach_review", MapServiceGetError(nRet),maps_place_destroy(g_maps_place));
-
- //RUN_POLLING_LOOP;
-
- if(g_nCheckCb != true)
+ if((nRet != MAPS_ERROR_NONE)&&(nRet != MAPS_ERROR_NOT_FOUND))
{
- FPRINTF("[Line : %d][%s] MapsPlaceReviewsCb not invoked \\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] %s failed, error returned = %s [%d]\\n", __LINE__, API_NAMESPACE, "maps_place_foreach_review", MapServiceGetError(nRet), nRet);
maps_place_destroy(g_maps_place);
return 1;
}
-
- PRINT_RESULT_CLEANUP(MAPS_ERROR_NONE, g_nCheckRet, "maps_place_review_clone", MapServiceGetError(g_nCheckRet),maps_place_destroy(g_maps_place));
- CHECK_HANDLE_CLEANUP(g_place_review, "maps_place_review_clone",maps_place_destroy(g_maps_place));
-
- nRet = maps_place_review_get_date(g_place_review, &date);
- PRINT_RESULT_CLEANUP(MAPS_ERROR_NONE, nRet, "maps_place_review_get_date", MapServiceGetError(nRet),maps_place_review_destroy(g_place_review);maps_place_destroy(g_maps_place));
- CHECK_HANDLE_CLEANUP(date, "maps_place_review_get_date",maps_place_review_destroy(g_place_review);maps_place_destroy(g_maps_place));
-
- free(date);
- nRet = maps_place_review_destroy(g_place_review);
- PRINT_RESULT_NORETURN(MAPS_ERROR_NONE, nRet, "maps_place_review_destroy", MapServiceGetError(nRet));
-
+ //RUN_POLLING_LOOP;
+ if(nRet == MAPS_ERROR_NONE)
+ {
+ if(g_nCheckCb != true)
+ {
+ FPRINTF("[Line : %d][%s] MapsPlaceReviewsCb not invoked \\n", __LINE__, API_NAMESPACE);
+ maps_place_destroy(g_maps_place);
+ return 1;
+ }
+ PRINT_RESULT_CLEANUP(MAPS_ERROR_NONE, g_nCheckRet, "maps_place_review_clone", MapServiceGetError(g_nCheckRet),maps_place_destroy(g_maps_place));
+ CHECK_HANDLE_CLEANUP(g_place_review, "maps_place_review_clone",maps_place_destroy(g_maps_place));
+
+ nRet = maps_place_review_get_date(g_place_review, &date);
+ PRINT_RESULT_CLEANUP(MAPS_ERROR_NONE, nRet, "maps_place_review_get_date", MapServiceGetError(nRet),maps_place_review_destroy(g_place_review);maps_place_destroy(g_maps_place));
+ CHECK_HANDLE_CLEANUP(date, "maps_place_review_get_date",maps_place_review_destroy(g_place_review);maps_place_destroy(g_maps_place));
+ free(date);
+ nRet = maps_place_review_destroy(g_place_review);
+ PRINT_RESULT_NORETURN(MAPS_ERROR_NONE, nRet, "maps_place_review_destroy", MapServiceGetError(nRet));
+ }
nRet = maps_place_destroy(g_maps_place);
PRINT_RESULT_NORETURN(MAPS_ERROR_NONE, nRet, "maps_place_destroy", MapServiceGetError(nRet));
-
+
return 0;
}
//& type: auto
int ITc_maps_place_review_get_description_p(void)
{
START_TEST_PLACE;
-
+
char *description = NULL;
int nRet;
g_nCheckCb = 0;
g_nCheckRet = 0;
g_nClone = 1;
-
- nRet = maps_place_foreach_review(g_maps_place, MapsPlaceReviewsCb, NULL);
- PRINT_RESULT_CLEANUP(MAPS_ERROR_NONE, nRet, "maps_place_foreach_review", MapServiceGetError(nRet),maps_place_destroy(g_maps_place));
-
- //RUN_POLLING_LOOP;
- if(g_nCheckCb != true)
+ nRet = maps_place_foreach_review(g_maps_place, MapsPlaceReviewsCb, NULL);
+ if((nRet != MAPS_ERROR_NONE)&&(nRet != MAPS_ERROR_NOT_FOUND))
{
- FPRINTF("[Line : %d][%s] MapsPlaceReviewsCb not invoked \\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] %s failed, error returned = %s [%d]\\n", __LINE__, API_NAMESPACE, "maps_place_foreach_review", MapServiceGetError(nRet), nRet);
maps_place_destroy(g_maps_place);
return 1;
}
-
- PRINT_RESULT_CLEANUP(MAPS_ERROR_NONE, g_nCheckRet, "maps_place_review_clone", MapServiceGetError(g_nCheckRet),maps_place_destroy(g_maps_place));
- CHECK_HANDLE_CLEANUP(g_place_review, "maps_place_review_clone",maps_place_destroy(g_maps_place));
-
- nRet = maps_place_review_get_description(g_place_review, &description);
- PRINT_RESULT_CLEANUP(MAPS_ERROR_NONE, nRet, "maps_place_review_get_description", MapServiceGetError(nRet),maps_place_review_destroy(g_place_review);maps_place_destroy(g_maps_place));
- CHECK_HANDLE_CLEANUP(description, "maps_place_review_get_description",maps_place_review_destroy(g_place_review);maps_place_destroy(g_maps_place));
-
- free(description);
- nRet = maps_place_review_destroy(g_place_review);
- PRINT_RESULT_NORETURN(MAPS_ERROR_NONE, nRet, "maps_place_review_destroy", MapServiceGetError(nRet));
-
+ //RUN_POLLING_LOOP;
+ if(nRet == MAPS_ERROR_NONE)
+ {
+ if(g_nCheckCb != true)
+ {
+ FPRINTF("[Line : %d][%s] MapsPlaceReviewsCb not invoked \\n", __LINE__, API_NAMESPACE);
+ maps_place_destroy(g_maps_place);
+ return 1;
+ }
+
+ PRINT_RESULT_CLEANUP(MAPS_ERROR_NONE, g_nCheckRet, "maps_place_review_clone", MapServiceGetError(g_nCheckRet),maps_place_destroy(g_maps_place));
+ CHECK_HANDLE_CLEANUP(g_place_review, "maps_place_review_clone",maps_place_destroy(g_maps_place));
+
+ nRet = maps_place_review_get_description(g_place_review, &description);
+ PRINT_RESULT_CLEANUP(MAPS_ERROR_NONE, nRet, "maps_place_review_get_description", MapServiceGetError(nRet),maps_place_review_destroy(g_place_review);maps_place_destroy(g_maps_place));
+ CHECK_HANDLE_CLEANUP(description, "maps_place_review_get_description",maps_place_review_destroy(g_place_review);maps_place_destroy(g_maps_place));
+
+ free(description);
+ nRet = maps_place_review_destroy(g_place_review);
+ PRINT_RESULT_NORETURN(MAPS_ERROR_NONE, nRet, "maps_place_review_destroy", MapServiceGetError(nRet));
+ }
nRet = maps_place_destroy(g_maps_place);
PRINT_RESULT_NORETURN(MAPS_ERROR_NONE, nRet, "maps_place_destroy", MapServiceGetError(nRet));
-
+
return 0;
}
//& type: auto
int ITc_maps_place_review_get_language_p(void)
{
START_TEST_PLACE;
-
+
char *language = NULL;
int nRet;
g_nCheckCb = 0;
g_nCheckRet = 0;
g_nClone = 1;
nRet = maps_place_foreach_review(g_maps_place, MapsPlaceReviewsCb, NULL);
- PRINT_RESULT_CLEANUP(MAPS_ERROR_NONE, nRet, "maps_place_foreach_review", MapServiceGetError(nRet),maps_place_destroy(g_maps_place));
-
- //RUN_POLLING_LOOP;
-
- if(g_nCheckCb != true)
+ if((nRet != MAPS_ERROR_NONE)&&(nRet != MAPS_ERROR_NOT_FOUND))
{
- FPRINTF("[Line : %d][%s] MapsPlaceReviewsCb not invoked \\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] %s failed, error returned = %s [%d]\\n", __LINE__, API_NAMESPACE, "maps_place_foreach_review", MapServiceGetError(nRet), nRet);
maps_place_destroy(g_maps_place);
return 1;
}
-
- PRINT_RESULT_CLEANUP(MAPS_ERROR_NONE, g_nCheckRet, "maps_place_review_clone", MapServiceGetError(g_nCheckRet),maps_place_destroy(g_maps_place));
- CHECK_HANDLE_CLEANUP(g_place_review, "maps_place_review_clone",maps_place_destroy(g_maps_place));
-
- nRet = maps_place_review_get_language(g_place_review, &language);
- PRINT_RESULT_CLEANUP(MAPS_ERROR_NONE, nRet, "maps_place_review_get_language", MapServiceGetError(nRet),maps_place_review_destroy(g_place_review);maps_place_destroy(g_maps_place));
- CHECK_HANDLE_CLEANUP(language, "maps_place_review_get_language",maps_place_review_destroy(g_place_review);maps_place_destroy(g_maps_place));
-
- free(language);
- nRet = maps_place_review_destroy(g_place_review);
- PRINT_RESULT_NORETURN(MAPS_ERROR_NONE, nRet, "maps_place_review_destroy", MapServiceGetError(nRet));
-
+ //RUN_POLLING_LOOP;
+ if(nRet == MAPS_ERROR_NONE)
+ {
+ if(g_nCheckCb != true)
+ {
+ FPRINTF("[Line : %d][%s] MapsPlaceReviewsCb not invoked \\n", __LINE__, API_NAMESPACE);
+ maps_place_destroy(g_maps_place);
+ return 1;
+ }
+
+ PRINT_RESULT_CLEANUP(MAPS_ERROR_NONE, g_nCheckRet, "maps_place_review_clone", MapServiceGetError(g_nCheckRet),maps_place_destroy(g_maps_place));
+ CHECK_HANDLE_CLEANUP(g_place_review, "maps_place_review_clone",maps_place_destroy(g_maps_place));
+
+ nRet = maps_place_review_get_language(g_place_review, &language);
+ PRINT_RESULT_CLEANUP(MAPS_ERROR_NONE, nRet, "maps_place_review_get_language", MapServiceGetError(nRet),maps_place_review_destroy(g_place_review);maps_place_destroy(g_maps_place));
+ CHECK_HANDLE_CLEANUP(language, "maps_place_review_get_language",maps_place_review_destroy(g_place_review);maps_place_destroy(g_maps_place));
+
+ free(language);
+ nRet = maps_place_review_destroy(g_place_review);
+ PRINT_RESULT_NORETURN(MAPS_ERROR_NONE, nRet, "maps_place_review_destroy", MapServiceGetError(nRet));
+ }
nRet = maps_place_destroy(g_maps_place);
PRINT_RESULT_NORETURN(MAPS_ERROR_NONE, nRet, "maps_place_destroy", MapServiceGetError(nRet));
-
+
return 0;
}
//& type: auto
int ITc_maps_place_review_get_media_p(void)
{
START_TEST_PLACE;
-
+
maps_place_media_h media = NULL;
int nRet;
g_nCheckCb = 0;
g_nCheckRet = 0;
g_nClone = 1;
nRet = maps_place_foreach_review(g_maps_place, MapsPlaceReviewsCb, NULL);
- PRINT_RESULT_CLEANUP(MAPS_ERROR_NONE, nRet, "maps_place_foreach_review", MapServiceGetError(nRet),maps_place_destroy(g_maps_place));
-
- //RUN_POLLING_LOOP;
-
- if(g_nCheckCb != true)
+ if((nRet != MAPS_ERROR_NONE)&&(nRet != MAPS_ERROR_NOT_FOUND))
{
- FPRINTF("[Line : %d][%s] MapsPlaceReviewsCb not invoked \\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] %s failed, error returned = %s [%d]\\n", __LINE__, API_NAMESPACE, "maps_place_foreach_review", MapServiceGetError(nRet), nRet);
maps_place_destroy(g_maps_place);
return 1;
}
-
- PRINT_RESULT_CLEANUP(MAPS_ERROR_NONE, g_nCheckRet, "maps_place_review_clone", MapServiceGetError(g_nCheckRet),maps_place_destroy(g_maps_place));
- CHECK_HANDLE_CLEANUP(g_place_review, "maps_place_review_clone",maps_place_destroy(g_maps_place));
-
- nRet = maps_place_review_get_media(g_place_review, &media);
- PRINT_RESULT_CLEANUP(MAPS_ERROR_NONE, nRet, "maps_place_review_get_media", MapServiceGetError(nRet),maps_place_review_destroy(g_place_review);maps_place_destroy(g_maps_place));
- CHECK_HANDLE_CLEANUP(media, "maps_place_review_get_media",maps_place_review_destroy(g_place_review);maps_place_destroy(g_maps_place));
-
- nRet = maps_place_media_destroy(media);
- PRINT_RESULT_NORETURN(MAPS_ERROR_NONE, nRet, "maps_place_media_destroy", MapServiceGetError(nRet));
-
- nRet = maps_place_review_destroy(g_place_review);
- PRINT_RESULT_NORETURN(MAPS_ERROR_NONE, nRet, "maps_place_review_destroy", MapServiceGetError(nRet));
-
+ //RUN_POLLING_LOOP;
+ if(nRet == MAPS_ERROR_NONE)
+ {
+ if(g_nCheckCb != true)
+ {
+ FPRINTF("[Line : %d][%s] MapsPlaceReviewsCb not invoked \\n", __LINE__, API_NAMESPACE);
+ maps_place_destroy(g_maps_place);
+ return 1;
+ }
+ PRINT_RESULT_CLEANUP(MAPS_ERROR_NONE, g_nCheckRet, "maps_place_review_clone", MapServiceGetError(g_nCheckRet),maps_place_destroy(g_maps_place));
+ CHECK_HANDLE_CLEANUP(g_place_review, "maps_place_review_clone",maps_place_destroy(g_maps_place));
+ nRet = maps_place_review_get_media(g_place_review, &media);
+ PRINT_RESULT_CLEANUP(MAPS_ERROR_NONE, nRet, "maps_place_review_get_media", MapServiceGetError(nRet),maps_place_review_destroy(g_place_review);maps_place_destroy(g_maps_place));
+ CHECK_HANDLE_CLEANUP(media, "maps_place_review_get_media",maps_place_review_destroy(g_place_review);maps_place_destroy(g_maps_place));
+ nRet = maps_place_media_destroy(media);
+ PRINT_RESULT_NORETURN(MAPS_ERROR_NONE, nRet, "maps_place_media_destroy", MapServiceGetError(nRet));
+ nRet = maps_place_review_destroy(g_place_review);
+ PRINT_RESULT_NORETURN(MAPS_ERROR_NONE, nRet, "maps_place_review_destroy", MapServiceGetError(nRet));
+ }
nRet = maps_place_destroy(g_maps_place);
PRINT_RESULT_NORETURN(MAPS_ERROR_NONE, nRet, "maps_place_destroy", MapServiceGetError(nRet));
-
+
return 0;
}
//& type: auto
int ITc_maps_place_review_get_rating_p(void)
{
START_TEST_PLACE;
-
+
double rating = 0;
int nRet;
g_nCheckCb = 0;
g_nCheckRet = 0;
g_nClone = 1;
nRet = maps_place_foreach_review(g_maps_place, MapsPlaceReviewsCb, NULL);
- PRINT_RESULT_CLEANUP(MAPS_ERROR_NONE, nRet, "maps_place_foreach_review", MapServiceGetError(nRet),maps_place_destroy(g_maps_place));
-
- //RUN_POLLING_LOOP;
-
- if(g_nCheckCb != true)
+ if((nRet != MAPS_ERROR_NONE)&&(nRet != MAPS_ERROR_NOT_FOUND))
{
- FPRINTF("[Line : %d][%s] MapsPlaceReviewsCb not invoked \\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] %s failed, error returned = %s [%d]\\n", __LINE__, API_NAMESPACE, "maps_place_foreach_review", MapServiceGetError(nRet), nRet);
maps_place_destroy(g_maps_place);
return 1;
}
-
- PRINT_RESULT_CLEANUP(MAPS_ERROR_NONE, g_nCheckRet, "maps_place_review_clone", MapServiceGetError(g_nCheckRet),maps_place_destroy(g_maps_place));
- CHECK_HANDLE_CLEANUP(g_place_review, "maps_place_review_clone",maps_place_destroy(g_maps_place));
-
- nRet = maps_place_review_get_rating(g_place_review, &rating);
- PRINT_RESULT_CLEANUP(MAPS_ERROR_NONE, nRet, "maps_place_review_get_rating", MapServiceGetError(nRet),maps_place_review_destroy(g_place_review);maps_place_destroy(g_maps_place));
-
- if(rating < 0)
+ //RUN_POLLING_LOOP;
+ if(nRet == MAPS_ERROR_NONE)
{
- FPRINTF("[Line : %d][%s] maps_place_review_get_rating failed with invalid rating \\n", __LINE__, API_NAMESPACE);
- maps_place_review_destroy(g_place_review);
- maps_place_destroy(g_maps_place);
- return 1;\r
+ if(g_nCheckCb != true)
+ {
+ FPRINTF("[Line : %d][%s] MapsPlaceReviewsCb not invoked \\n", __LINE__, API_NAMESPACE);
+ maps_place_destroy(g_maps_place);
+ return 1;
+ }
+ PRINT_RESULT_CLEANUP(MAPS_ERROR_NONE, g_nCheckRet, "maps_place_review_clone", MapServiceGetError(g_nCheckRet),maps_place_destroy(g_maps_place));
+ CHECK_HANDLE_CLEANUP(g_place_review, "maps_place_review_clone",maps_place_destroy(g_maps_place));
+ nRet = maps_place_review_get_rating(g_place_review, &rating);
+ PRINT_RESULT_CLEANUP(MAPS_ERROR_NONE, nRet, "maps_place_review_get_rating", MapServiceGetError(nRet),maps_place_review_destroy(g_place_review);maps_place_destroy(g_maps_place));
+
+ if(rating < 0)
+ {
+ FPRINTF("[Line : %d][%s] maps_place_review_get_rating failed with invalid rating \\n", __LINE__, API_NAMESPACE);
+ maps_place_review_destroy(g_place_review);
+ maps_place_destroy(g_maps_place);
+ return 1;\r
+ }
+ nRet = maps_place_review_destroy(g_place_review);
+ PRINT_RESULT_NORETURN(MAPS_ERROR_NONE, nRet, "maps_place_review_destroy", MapServiceGetError(nRet));
}
- nRet = maps_place_review_destroy(g_place_review);
- PRINT_RESULT_NORETURN(MAPS_ERROR_NONE, nRet, "maps_place_review_destroy", MapServiceGetError(nRet));
-
nRet = maps_place_destroy(g_maps_place);
PRINT_RESULT_NORETURN(MAPS_ERROR_NONE, nRet, "maps_place_destroy", MapServiceGetError(nRet));
-
+
return 0;
}
//& type: auto
g_nCheckRet = 0;
g_nClone = 1;
nRet = maps_place_foreach_review(g_maps_place, MapsPlaceReviewsCb, NULL);
- PRINT_RESULT_CLEANUP(MAPS_ERROR_NONE, nRet, "maps_place_foreach_review", MapServiceGetError(nRet),maps_place_destroy(g_maps_place));
-
- //RUN_POLLING_LOOP;
-
- if(g_nCheckCb != true)
+ if((nRet != MAPS_ERROR_NONE)&&(nRet != MAPS_ERROR_NOT_FOUND))
{
- FPRINTF("[Line : %d][%s] MapsPlaceReviewsCb not invoked \\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] %s failed, error returned = %s [%d]\\n", __LINE__, API_NAMESPACE, "maps_place_foreach_review", MapServiceGetError(nRet), nRet);
maps_place_destroy(g_maps_place);
return 1;
}
-
- PRINT_RESULT_CLEANUP(MAPS_ERROR_NONE, g_nCheckRet, "maps_place_review_clone", MapServiceGetError(g_nCheckRet),maps_place_destroy(g_maps_place));
- CHECK_HANDLE_CLEANUP(g_place_review, "maps_place_review_clone",maps_place_destroy(g_maps_place));
-
- nRet = maps_place_review_get_title(g_place_review, &title);
- PRINT_RESULT_CLEANUP(MAPS_ERROR_NONE, nRet, "maps_place_review_get_title", MapServiceGetError(nRet),maps_place_review_destroy(g_place_review);maps_place_destroy(g_maps_place));
- CHECK_HANDLE_CLEANUP(title, "maps_place_review_get_title",maps_place_review_destroy(g_place_review);maps_place_destroy(g_maps_place));
-
- free(title);
- nRet = maps_place_review_destroy(g_place_review);
- PRINT_RESULT_NORETURN(MAPS_ERROR_NONE, nRet, "maps_place_review_destroy", MapServiceGetError(nRet));
-
+ //RUN_POLLING_LOOP;
+ if(nRet == MAPS_ERROR_NONE)
+ {
+ if(g_nCheckCb != true)
+ {
+ FPRINTF("[Line : %d][%s] MapsPlaceReviewsCb not invoked \\n", __LINE__, API_NAMESPACE);
+ maps_place_destroy(g_maps_place);
+ return 1;
+ }
+ PRINT_RESULT_CLEANUP(MAPS_ERROR_NONE, g_nCheckRet, "maps_place_review_clone", MapServiceGetError(g_nCheckRet),maps_place_destroy(g_maps_place));
+ CHECK_HANDLE_CLEANUP(g_place_review, "maps_place_review_clone",maps_place_destroy(g_maps_place));
+ nRet = maps_place_review_get_title(g_place_review, &title);
+ PRINT_RESULT_CLEANUP(MAPS_ERROR_NONE, nRet, "maps_place_review_get_title", MapServiceGetError(nRet),maps_place_review_destroy(g_place_review);maps_place_destroy(g_maps_place));
+ CHECK_HANDLE_CLEANUP(title, "maps_place_review_get_title",maps_place_review_destroy(g_place_review);maps_place_destroy(g_maps_place));
+ free(title);
+ nRet = maps_place_review_destroy(g_place_review);
+ PRINT_RESULT_NORETURN(MAPS_ERROR_NONE, nRet, "maps_place_review_destroy", MapServiceGetError(nRet));
+ }
nRet = maps_place_destroy(g_maps_place);
PRINT_RESULT_NORETURN(MAPS_ERROR_NONE, nRet, "maps_place_destroy", MapServiceGetError(nRet));
g_nClone = 1;
nRet = maps_place_foreach_review(g_maps_place, MapsPlaceReviewsCb, NULL);
- PRINT_RESULT_CLEANUP(MAPS_ERROR_NONE, nRet, "maps_place_foreach_review", MapServiceGetError(nRet),maps_place_destroy(g_maps_place));
-
- //RUN_POLLING_LOOP;
-
- if(g_nCheckCb != true)
+ if((nRet != MAPS_ERROR_NONE)&&(nRet != MAPS_ERROR_NOT_FOUND))
{
- FPRINTF("[Line : %d][%s] MapsPlaceReviewsCb not invoked \\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] %s failed, error returned = %s [%d]\\n", __LINE__, API_NAMESPACE, "maps_place_foreach_review", MapServiceGetError(nRet), nRet);
maps_place_destroy(g_maps_place);
return 1;
}
-
- PRINT_RESULT_CLEANUP(MAPS_ERROR_NONE, g_nCheckRet, "maps_place_review_clone", MapServiceGetError(g_nCheckRet),maps_place_destroy(g_maps_place));
- CHECK_HANDLE_CLEANUP(g_place_review, "maps_place_review_clone",maps_place_destroy(g_maps_place));
-
- nRet = maps_place_review_get_user_link(g_place_review, &user);
- PRINT_RESULT_CLEANUP(MAPS_ERROR_NONE, nRet, "maps_place_review_get_user_link", MapServiceGetError(nRet),maps_place_review_destroy(g_place_review);maps_place_destroy(g_maps_place));
- CHECK_HANDLE_CLEANUP(user, "maps_place_review_get_user_link",maps_place_review_destroy(g_place_review);maps_place_destroy(g_maps_place));
-
- nRet = maps_place_link_object_destroy(user);
- PRINT_RESULT_NORETURN(MAPS_ERROR_NONE, nRet, "maps_place_link_object_destroy", MapServiceGetError(nRet));
- nRet = maps_place_review_destroy(g_place_review);
- PRINT_RESULT_NORETURN(MAPS_ERROR_NONE, nRet, "maps_place_review_destroy", MapServiceGetError(nRet));
+ //RUN_POLLING_LOOP;
+ if(nRet == MAPS_ERROR_NONE)
+ {
+ if(g_nCheckCb != true)
+ {
+ FPRINTF("[Line : %d][%s] MapsPlaceReviewsCb not invoked \\n", __LINE__, API_NAMESPACE);
+ maps_place_destroy(g_maps_place);
+ return 1;
+ }
+ PRINT_RESULT_CLEANUP(MAPS_ERROR_NONE, g_nCheckRet, "maps_place_review_clone", MapServiceGetError(g_nCheckRet),maps_place_destroy(g_maps_place));
+ CHECK_HANDLE_CLEANUP(g_place_review, "maps_place_review_clone",maps_place_destroy(g_maps_place));
+ nRet = maps_place_review_get_user_link(g_place_review, &user);
+ PRINT_RESULT_CLEANUP(MAPS_ERROR_NONE, nRet, "maps_place_review_get_user_link", MapServiceGetError(nRet),maps_place_review_destroy(g_place_review);maps_place_destroy(g_maps_place));
+ CHECK_HANDLE_CLEANUP(user, "maps_place_review_get_user_link",maps_place_review_destroy(g_place_review);maps_place_destroy(g_maps_place));
+ nRet = maps_place_link_object_destroy(user);
+ PRINT_RESULT_NORETURN(MAPS_ERROR_NONE, nRet, "maps_place_link_object_destroy", MapServiceGetError(nRet));
+ nRet = maps_place_review_destroy(g_place_review);
+ PRINT_RESULT_NORETURN(MAPS_ERROR_NONE, nRet, "maps_place_review_destroy", MapServiceGetError(nRet));
+ }
nRet = maps_place_destroy(g_maps_place);
PRINT_RESULT(MAPS_ERROR_NONE, nRet, "maps_place_destroy", MapServiceGetError(nRet));
g_nCheckCb = 0;
g_nClone = 0;
nRet = maps_place_foreach_review(g_maps_place, MapsPlaceReviewsCb, NULL);
- if((nRet != MAPS_ERROR_NONE)&&(nRet != MAPS_ERROR_NOT_SUPPORTED))
+ if((nRet != MAPS_ERROR_NONE)&&(nRet != MAPS_ERROR_NOT_SUPPORTED)&&(nRet != MAPS_ERROR_NOT_FOUND))
{
FPRINTF("[Line : %d][%s] %s failed, error returned = %s [%d]\\n", __LINE__, API_NAMESPACE, "maps_place_foreach_review", MapServiceGetError(nRet), nRet);
maps_place_destroy(g_maps_place);
return 1;
}
- if(nRet != MAPS_ERROR_NOT_SUPPORTED)
+ if(nRet == MAPS_ERROR_NONE)
{
if(g_nCheckCb != true)
{
g_nClone = 1;
nRet = maps_place_foreach_review(g_maps_place, MapsPlaceReviewsCb, NULL);
- if((nRet != MAPS_ERROR_NONE)&&(nRet != MAPS_ERROR_NOT_SUPPORTED))
+ if((nRet != MAPS_ERROR_NONE)&&(nRet != MAPS_ERROR_NOT_SUPPORTED)&&(nRet != MAPS_ERROR_NOT_FOUND))
{
FPRINTF("[Line : %d][%s] %s failed, error returned = %s [%d]\\n", __LINE__, API_NAMESPACE, "maps_place_foreach_review", MapServiceGetError(nRet), nRet);
maps_place_destroy(g_maps_place);
return 1;
}
- if(nRet != MAPS_ERROR_NOT_SUPPORTED)
+ if(nRet == MAPS_ERROR_NONE)
{
if(g_nCheckCb != true)
{
g_nCheckRet = 0;
g_nClone = 1;
nRet = maps_place_foreach_review(g_maps_place, MapsPlaceReviewsCb, NULL);
- if((nRet != MAPS_ERROR_NONE)&&(nRet != MAPS_ERROR_NOT_SUPPORTED))
+ if((nRet != MAPS_ERROR_NONE)&&(nRet != MAPS_ERROR_NOT_SUPPORTED)&&(nRet != MAPS_ERROR_NOT_FOUND))
{
FPRINTF("[Line : %d][%s] %s failed, error returned = %s [%d]\\n", __LINE__, API_NAMESPACE, "maps_place_foreach_review", MapServiceGetError(nRet), nRet);
maps_place_destroy(g_maps_place);
return 1;
}
//RUN_POLLING_LOOP;
- if(nRet != MAPS_ERROR_NOT_SUPPORTED)
+ if(nRet == MAPS_ERROR_NONE)
{
if(g_nCheckCb != true)
{
g_nClone = 1;
nRet = maps_place_foreach_review(g_maps_place, MapsPlaceReviewsCb, NULL);
- if((nRet != MAPS_ERROR_NONE)&&(nRet != MAPS_ERROR_NOT_SUPPORTED))
+ if((nRet != MAPS_ERROR_NONE)&&(nRet != MAPS_ERROR_NOT_SUPPORTED)&&(nRet != MAPS_ERROR_NOT_FOUND))
{
FPRINTF("[Line : %d][%s] %s failed, error returned = %s [%d]\\n", __LINE__, API_NAMESPACE, "maps_place_foreach_review", MapServiceGetError(nRet), nRet);
maps_place_destroy(g_maps_place);
return 1;
}
//RUN_POLLING_LOOP;
- if(nRet != MAPS_ERROR_NOT_SUPPORTED)
+ if(nRet == MAPS_ERROR_NONE)
{
if(g_nCheckCb != true)
{
g_nCheckRet = 0;
g_nClone = 1;
nRet = maps_place_foreach_review(g_maps_place, MapsPlaceReviewsCb, NULL);
- if((nRet != MAPS_ERROR_NONE)&&(nRet != MAPS_ERROR_NOT_SUPPORTED))
+ if((nRet != MAPS_ERROR_NONE)&&(nRet != MAPS_ERROR_NOT_SUPPORTED)&&(nRet != MAPS_ERROR_NOT_FOUND))
{
FPRINTF("[Line : %d][%s] %s failed, error returned = %s [%d]\\n", __LINE__, API_NAMESPACE, "maps_place_foreach_review", MapServiceGetError(nRet), nRet);
maps_place_destroy(g_maps_place);
return 1;
}
//RUN_POLLING_LOOP;
- if(nRet != MAPS_ERROR_NOT_SUPPORTED)
+ if(nRet == MAPS_ERROR_NONE)
{
if(g_nCheckCb != true)
{
g_nCheckRet = 0;
g_nClone = 1;
nRet = maps_place_foreach_review(g_maps_place, MapsPlaceReviewsCb, NULL);
- if((nRet != MAPS_ERROR_NONE)&&(nRet != MAPS_ERROR_NOT_SUPPORTED))
+ if((nRet != MAPS_ERROR_NONE)&&(nRet != MAPS_ERROR_NOT_SUPPORTED)&&(nRet != MAPS_ERROR_NOT_FOUND))
{
FPRINTF("[Line : %d][%s] %s failed, error returned = %s [%d]\\n", __LINE__, API_NAMESPACE, "maps_place_foreach_review", MapServiceGetError(nRet), nRet);
maps_place_destroy(g_maps_place);
return 1;
}
//RUN_POLLING_LOOP;
- if(nRet != MAPS_ERROR_NOT_SUPPORTED)
+ if(nRet == MAPS_ERROR_NONE)
{
if(g_nCheckCb != true)
{
g_nCheckRet = 0;
g_nClone = 1;
nRet = maps_place_foreach_review(g_maps_place, MapsPlaceReviewsCb, NULL);
- if((nRet != MAPS_ERROR_NONE)&&(nRet != MAPS_ERROR_NOT_SUPPORTED))
+ if((nRet != MAPS_ERROR_NONE)&&(nRet != MAPS_ERROR_NOT_SUPPORTED)&&(nRet != MAPS_ERROR_NOT_FOUND))
{
FPRINTF("[Line : %d][%s] %s failed, error returned = %s [%d]\\n", __LINE__, API_NAMESPACE, "maps_place_foreach_review", MapServiceGetError(nRet), nRet);
maps_place_destroy(g_maps_place);
return 1;
}
//RUN_POLLING_LOOP;
- if(nRet != MAPS_ERROR_NOT_SUPPORTED)
+ if(nRet == MAPS_ERROR_NONE)
{
if(g_nCheckCb != true)
{
g_nCheckRet = 0;
g_nClone = 1;
nRet = maps_place_foreach_review(g_maps_place, MapsPlaceReviewsCb, NULL);
- if((nRet != MAPS_ERROR_NONE)&&(nRet != MAPS_ERROR_NOT_SUPPORTED))
+ if((nRet != MAPS_ERROR_NONE)&&(nRet != MAPS_ERROR_NOT_SUPPORTED)&&(nRet != MAPS_ERROR_NOT_FOUND))
{
FPRINTF("[Line : %d][%s] %s failed, error returned = %s [%d]\\n", __LINE__, API_NAMESPACE, "maps_place_foreach_review", MapServiceGetError(nRet), nRet);
maps_place_destroy(g_maps_place);
return 1;
}
//RUN_POLLING_LOOP;
- if(nRet != MAPS_ERROR_NOT_SUPPORTED)
+ if(nRet == MAPS_ERROR_NONE)
{
if(g_nCheckCb != true)
{
g_nClone = 1;
nRet = maps_place_foreach_review(g_maps_place, MapsPlaceReviewsCb, NULL);
- if((nRet != MAPS_ERROR_NONE)&&(nRet != MAPS_ERROR_NOT_SUPPORTED))
+ if((nRet != MAPS_ERROR_NONE)&&(nRet != MAPS_ERROR_NOT_SUPPORTED)&&(nRet != MAPS_ERROR_NOT_FOUND))
{
FPRINTF("[Line : %d][%s] %s failed, error returned = %s [%d]\\n", __LINE__, API_NAMESPACE, "maps_place_foreach_review", MapServiceGetError(nRet), nRet);
maps_place_destroy(g_maps_place);
return 1;
}
//RUN_POLLING_LOOP;
- if(nRet != MAPS_ERROR_NOT_SUPPORTED)
+ if(nRet == MAPS_ERROR_NONE)
{
if(g_nCheckCb != true)
{