3 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
4 * PROPRIETARY/CONFIDENTIAL
6 * This software is the confidential and proprietary information of SAMSUNG
7 * ELECTRONICS ("Confidential Information"). You agree and acknowledge that
8 * this software is owned by Samsung and you shall not disclose such
9 * Confidential Information and shall use it only in accordance with the terms
10 * of the license agreement you entered into with SAMSUNG ELECTRONICS. SAMSUNG
11 * make no representations or warranties about the suitability of the software,
12 * either express or implied, including but not limited to the implied
13 * warranties of merchantability, fitness for a particular purpose, or
14 * non-infringement. SAMSUNG shall not be liable for any damages suffered by
15 * licensee arising out of or related to this software.
21 #define API_NAME_MMC_SECURE_MOUNT "mmc_secure_mount"
22 #define API_NAME_MMC_SECURE_UNMOUNT "mmc_secure_unmount"
24 static void startup(void);
25 static void cleanup(void);
27 void (*tet_startup)(void) = startup;
28 void (*tet_cleanup)(void) = cleanup;
31 static void utc_system_deviced_mmc_secure_mount_p(void);
32 static void utc_system_deviced_mmc_secure_mount_n(void);
33 static void utc_system_deviced_mmc_secure_unmount_p(void);
34 static void utc_system_deviced_mmc_secure_unmount_n(void);
37 POSITIVE_TC_IDX = 0x01,
41 struct tet_testlist tet_testlist[] = {
42 { utc_system_deviced_mmc_secure_mount_p, POSITIVE_TC_IDX },
43 { utc_system_deviced_mmc_secure_mount_n, NEGATIVE_TC_IDX },
44 { utc_system_deviced_mmc_secure_unmount_p, POSITIVE_TC_IDX },
45 { utc_system_deviced_mmc_secure_unmount_n, NEGATIVE_TC_IDX },
49 #define SECURE_MOUNT_POINT "/opt/storage/secure"
51 static void startup(void)
55 static void cleanup(void)
60 * @brief Positive test case of mmc_secure_mount()
62 static void utc_system_deviced_mmc_secure_mount_p(void)
66 dts_message("This testcase is only valid when mmc is inserted");
68 ret = mmc_secure_mount(SECURE_MOUNT_POINT);
69 dts_check_eq(API_NAME_MMC_SECURE_MOUNT, ret, 0);
73 * @brief Negative test case of mmc_secure_mount()
75 static void utc_system_deviced_mmc_secure_mount_n(void)
79 dts_message("This testcase is only valid when mmc is inserted");
81 ret = mmc_secure_mount(NULL);
82 dts_check_ne(API_NAME_MMC_SECURE_MOUNT, ret, 0);
86 * @brief Positive test case of mmc_secure_unmount()
88 static void utc_system_deviced_mmc_secure_unmount_p(void)
92 ret = mmc_secure_unmount(SECURE_MOUNT_POINT);
93 dts_check_eq(API_NAME_MMC_SECURE_UNMOUNT, ret, 0);
97 * @brief Negative test case of mmc_secure_unmount()
99 static void utc_system_deviced_mmc_secure_unmount_n(void)
103 ret = mmc_secure_unmount(NULL);
104 dts_check_ne(API_NAME_MMC_SECURE_UNMOUNT, ret, 0);