Lines Matching refs:monitor
60 cJSON *monitor = cJSON_CreateObject(); in create_monitor() local
61 if (monitor == NULL) in create_monitor()
73 cJSON_AddItemToObject(monitor, "name", name); in create_monitor()
80 cJSON_AddItemToObject(monitor, "resolutions", resolutions); in create_monitor()
106 string = cJSON_Print(monitor); in create_monitor()
113 cJSON_Delete(monitor); in create_monitor()
128 cJSON *monitor = cJSON_CreateObject(); in create_monitor_with_helpers() local
130 if (cJSON_AddStringToObject(monitor, "name", "Awesome 4K") == NULL) in create_monitor_with_helpers()
135 resolutions = cJSON_AddArrayToObject(monitor, "resolutions"); in create_monitor_with_helpers()
158 string = cJSON_Print(monitor); in create_monitor_with_helpers()
164 cJSON_Delete(monitor); in create_monitor_with_helpers()
169 static int supports_full_hd(const char * const monitor) in supports_full_hd() argument
175 cJSON *monitor_json = cJSON_Parse(monitor); in supports_full_hd()
219 char *monitor = create_monitor(); in create_monitor_should_create_a_monitor() local
221 TEST_ASSERT_EQUAL_STRING(monitor, json); in create_monitor_should_create_a_monitor()
223 free(monitor); in create_monitor_should_create_a_monitor()
228 char *monitor = create_monitor_with_helpers(); in create_monitor_with_helpers_should_create_a_monitor() local
230 TEST_ASSERT_EQUAL_STRING(json, monitor); in create_monitor_with_helpers_should_create_a_monitor()
232 free(monitor); in create_monitor_with_helpers_should_create_a_monitor()