// See the License for the specific language governing permissions and
// limitations under the License.
//
-#include "assert.h"
#include <media_content.h>
-#include <string.h>
+#include <tct_common.h>
#include <storage.h>
#include <glib.h>
-#include <unistd.h>
//& set: MediaAudio
static gboolean _startup_scan_start(gpointer data)
{
- int ret = MEDIA_CONTENT_ERROR_NONE;
-
- ret = media_content_scan_folder(dir_path, TRUE, _scan_folder_cb, NULL);
+ if (media_content_scan_folder(dir_path, TRUE, _scan_folder_cb, NULL) != MEDIA_CONTENT_ERROR_NONE)
+ return false;
return false;
}
// See the License for the specific language governing permissions and
// limitations under the License.
//
-#include "assert.h"
#include <media_content.h>
-#include <stdlib.h>
-#include <string.h>
+#include <tct_common.h>
//& set: MediaBook
// See the License for the specific language governing permissions and
// limitations under the License.
//
-#include "assert.h"
#include <media_content.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <string.h>
+#include <tct_common.h>
#include <storage.h>
//& set: MediaBookmarkDelete
// See the License for the specific language governing permissions and
// limitations under the License.
//
-#include "assert.h"
#include <media_content.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <string.h>
+#include <tct_common.h>
#include <storage.h>
//& set: MediaBookmarkInsert
// See the License for the specific language governing permissions and
// limitations under the License.
//
-#include "assert.h"
#include <media_content.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <string.h>
+#include <tct_common.h>
#include <storage.h>
//& set: MediaBookmark
assert_eq(startup_ret, MEDIA_CONTENT_ERROR_NONE);
int ret = MEDIA_CONTENT_ERROR_NONE;
- int bookmark_count = 0;
ret = media_bookmark_foreach_bookmark_from_db(g_filter, sub_bookmark_cb, NULL);
assert_eq(ret, MEDIA_CONTENT_ERROR_NONE);
// See the License for the specific language governing permissions and
// limitations under the License.
//
-#include "assert.h"
#include <media_content.h>
-#include <glib.h>
-#include <unistd.h>
-#include <string.h>
+#include <tct_common.h>
#include <storage.h>
+#include <glib.h>
//& set: MediaContent
static GMainLoop *g_loop = NULL;
static const char *g_insert_file = "test.jpg";
static const char *g_origin_file = "image.jpg";
-static const char *g_user_data = "hi";
static char *g_insert_path = NULL;
static char *g_origin_path = NULL;
static char *dir_path = NULL;
// See the License for the specific language governing permissions and
// limitations under the License.
//
-#include "assert.h"
#include <media_content.h>
-#include <glib.h>
-#include <unistd.h>
-#include <string.h>
+#include <tct_common.h>
#include <storage.h>
//& set: MediaFace
g_face_dst = NULL;
g_media_id = NULL;
g_face_id = NULL;
- char *tag = strdup("test");
if (storage_foreach_device_supported(__storage_device_supported_cb, NULL) != STORAGE_ERROR_NONE) {
fprintf(stderr, "Startup error at %s:%d\n", __FILE__, __LINE__);
// See the License for the specific language governing permissions and
// limitations under the License.
//
-#include "assert.h"
#include <media_content.h>
-#include <stdlib.h>
+#include <tct_common.h>
//& set: MediaFilterCreate
// See the License for the specific language governing permissions and
// limitations under the License.
//
-#include "assert.h"
#include <media_content.h>
-#include <stdlib.h>
+#include <tct_common.h>
//& set: MediaFilterDestroy
// See the License for the specific language governing permissions and
// limitations under the License.
//
-#include "assert.h"
#include <media_content.h>
-#include <stdlib.h>
-#include <string.h>
+#include <tct_common.h>
#define SET_TEST_CONDITION "MEDIA_TYPE=3"
//& set: MediaFilter
// See the License for the specific language governing permissions and
// limitations under the License.
//
-#include "assert.h"
#include <media_content.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <unistd.h>
-#include <string.h>
+#include <tct_common.h>
#include <storage.h>
#define TEST_SET_CONDITION "MEDIA_TYPE=0"
// See the License for the specific language governing permissions and
// limitations under the License.
//
-#include "assert.h"
-#include <stdlib.h>
#include <media_content.h>
+#include <tct_common.h>
#define TEST_SET_GROUP_NAME "artist"
//& set: MediaGroup
// See the License for the specific language governing permissions and
// limitations under the License.
//
-#include "assert.h"
#include <media_content.h>
-#include <stdlib.h>
+#include <tct_common.h>
//& set: MediaImage
// See the License for the specific language governing permissions and
// limitations under the License.
//
-#include "assert.h"
#include <media_content.h>
-#include <stdlib.h>
+#include <tct_common.h>
#include <glib.h>
-#include <unistd.h>
-#include <string.h>
#include <storage.h>
-#include <system_info.h>
#define TEST_SET_SVALUE "new text"
#define TEST_SET_IVALUE 1000.0
static char *g_insert_path_list[3];
static char *g_burst_path_list[3];
-static time_t g_added_time;
-
static media_content_error_e foreach_cb_result = MEDIA_CONTENT_ERROR_NONE;
static media_content_error_e insert_batch_cb_result = MEDIA_CONTENT_ERROR_NONE;
static media_content_error_e thumb_cb_result = MEDIA_CONTENT_ERROR_NONE;
static media_content_error_e face_detection_cb_result = MEDIA_CONTENT_ERROR_NONE;
-static media_content_error_e insert_burst_cb_result = MEDIA_CONTENT_ERROR_NONE;
static media_content_error_e startup_ret = MEDIA_CONTENT_ERROR_NONE;
static media_content_error_e g_cb_ret = MEDIA_CONTENT_ERROR_NONE;
// See the License for the specific language governing permissions and
// limitations under the License.
//
-#include "assert.h"
-#include <stdlib.h>
-#include <string.h>
#include <media_content.h>
+#include <tct_common.h>
#include <storage.h>
#define TEST_SET_PLAYLIST_SUB_1 "test_playlist_123"
// See the License for the specific language governing permissions and
// limitations under the License.
//
-#include "assert.h"
#include <media_content.h>
+#include <tct_common.h>
//& set: MediaAudio
// See the License for the specific language governing permissions and
// limitations under the License.
//
-#include "assert.h"
#include <media_content.h>
-#include <stdlib.h>
-#include <string.h>
+#include <tct_common.h>
//& set: MediaTag
// See the License for the specific language governing permissions and
// limitations under the License.
//
-#include "assert.h"
#include <media_content.h>
-#include <stdlib.h>
-#include <string.h>
+#include <tct_common.h>
//& set: MediaVideo