summaryrefslogtreecommitdiff
path: root/src/tests/ecore/ecore_test_ecore_audio.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-08-10 15:23:04 +0100
committerTom Hacohen <tom@stosb.com>2016-08-11 17:04:43 +0100
commitc662934be8bcbaba60d1688e77533acbea5d09b9 (patch)
tree8e12b5ffd083024f09b7ec7fa9f979113056fb9d /src/tests/ecore/ecore_test_ecore_audio.c
parente64e120a51972c44fb8cae88a78bb4aa34f502c7 (diff)
Change the EFL to follow the new Eo rename.
Diffstat (limited to '')
-rw-r--r--src/tests/ecore/ecore_test_ecore_audio.c50
1 files changed, 25 insertions, 25 deletions
diff --git a/src/tests/ecore/ecore_test_ecore_audio.c b/src/tests/ecore/ecore_test_ecore_audio.c
index 29c05f1..7b744dd 100644
--- a/src/tests/ecore/ecore_test_ecore_audio.c
+++ b/src/tests/ecore/ecore_test_ecore_audio.c
@@ -69,8 +69,8 @@ START_TEST(ecore_test_ecore_audio_obj_pulse)
69 69
70 ecore_timer_add(1.8, _seek_vol, in); 70 ecore_timer_add(1.8, _seek_vol, in);
71 71
72 eo_event_callback_add(in, ECORE_AUDIO_IN_EVENT_IN_STOPPED, _finished_cb, NULL); 72 efl_event_callback_add(in, ECORE_AUDIO_IN_EVENT_IN_STOPPED, _finished_cb, NULL);
73 eo_event_callback_add(out, ECORE_AUDIO_OUT_PULSE_EVENT_CONTEXT_FAIL, _failed_cb, &pulse_context_failed); 73 efl_event_callback_add(out, ECORE_AUDIO_OUT_PULSE_EVENT_CONTEXT_FAIL, _failed_cb, &pulse_context_failed);
74 74
75 ret = ecore_audio_obj_out_input_attach(out, in); 75 ret = ecore_audio_obj_out_input_attach(out, in);
76 fail_if(!ret); 76 fail_if(!ret);
@@ -78,8 +78,8 @@ START_TEST(ecore_test_ecore_audio_obj_pulse)
78 ecore_main_loop_begin(); 78 ecore_main_loop_begin();
79 fail_if(pulse_context_failed); 79 fail_if(pulse_context_failed);
80 80
81 eo_del(out); 81 efl_del(out);
82 eo_del(in); 82 efl_del(in);
83} 83}
84END_TEST 84END_TEST
85#endif 85#endif
@@ -96,7 +96,7 @@ static Eina_Bool
96_idle_del(void *data) 96_idle_del(void *data)
97{ 97{
98 Eo *in = data; 98 Eo *in = data;
99 eo_del(in); 99 efl_del(in);
100 ecore_idler_add(_quit, NULL); 100 ecore_idler_add(_quit, NULL);
101 101
102 return EINA_FALSE; 102 return EINA_FALSE;
@@ -110,7 +110,7 @@ START_TEST(ecore_test_ecore_audio_cleanup)
110 110
111 in = eo_add(ECORE_AUDIO_IN_TONE_CLASS, NULL); 111 in = eo_add(ECORE_AUDIO_IN_TONE_CLASS, NULL);
112 fail_if(!in); 112 fail_if(!in);
113 eo_key_data_set(in, ECORE_AUDIO_ATTR_TONE_FREQ, &freq); 113 efl_key_data_set(in, ECORE_AUDIO_ATTR_TONE_FREQ, &freq);
114 ecore_audio_obj_in_length_set(in, 2); 114 ecore_audio_obj_in_length_set(in, 2);
115 115
116 out = eo_add(ECORE_AUDIO_OUT_SNDFILE_CLASS, NULL); 116 out = eo_add(ECORE_AUDIO_OUT_SNDFILE_CLASS, NULL);
@@ -160,17 +160,17 @@ START_TEST(ecore_test_ecore_audio_obj_tone)
160 len = ecore_audio_obj_in_remaining_get(in); 160 len = ecore_audio_obj_in_remaining_get(in);
161 fail_if(len != 2.5); 161 fail_if(len != 2.5);
162 162
163 freq = (intptr_t) eo_key_data_get(in, ECORE_AUDIO_ATTR_TONE_FREQ); 163 freq = (intptr_t) efl_key_data_get(in, ECORE_AUDIO_ATTR_TONE_FREQ);
164 fail_if(freq != 1000); 164 fail_if(freq != 1000);
165 165
166 freq = 2000; 166 freq = 2000;
167 eo_key_data_set(in, ECORE_AUDIO_ATTR_TONE_FREQ, &freq); 167 efl_key_data_set(in, ECORE_AUDIO_ATTR_TONE_FREQ, &freq);
168 168
169 freq = (intptr_t) eo_key_data_get(in, ECORE_AUDIO_ATTR_TONE_FREQ); 169 freq = (intptr_t) efl_key_data_get(in, ECORE_AUDIO_ATTR_TONE_FREQ);
170 fail_if(freq != 2000); 170 fail_if(freq != 2000);
171 171
172 eo_key_data_set(in, "foo", "bar"); 172 efl_key_data_set(in, "foo", "bar");
173 tmp = eo_key_data_get(in, "foo"); 173 tmp = efl_key_data_get(in, "foo");
174 ck_assert_str_eq(tmp, "bar"); 174 ck_assert_str_eq(tmp, "bar");
175 175
176 len = ecore_audio_obj_in_seek(in, 5.0, SEEK_SET); 176 len = ecore_audio_obj_in_seek(in, 5.0, SEEK_SET);
@@ -209,13 +209,13 @@ START_TEST(ecore_test_ecore_audio_obj_tone)
209 ret = ecore_audio_obj_out_input_attach(out, in); 209 ret = ecore_audio_obj_out_input_attach(out, in);
210 fail_if(!ret); 210 fail_if(!ret);
211 211
212 eo_event_callback_add(in, ECORE_AUDIO_IN_EVENT_IN_LOOPED, _looped_cb, NULL); 212 efl_event_callback_add(in, ECORE_AUDIO_IN_EVENT_IN_LOOPED, _looped_cb, NULL);
213 eo_event_callback_add(in, ECORE_AUDIO_IN_EVENT_IN_STOPPED, _finished_cb, NULL); 213 efl_event_callback_add(in, ECORE_AUDIO_IN_EVENT_IN_STOPPED, _finished_cb, NULL);
214 214
215 ecore_main_loop_begin(); 215 ecore_main_loop_begin();
216 216
217 eo_del(in); 217 efl_del(in);
218 eo_del(out); 218 efl_del(out);
219 219
220 //TODO: Compare and fail 220 //TODO: Compare and fail
221 ecore_file_remove(TESTS_BUILD_DIR"/tmp.wav"); 221 ecore_file_remove(TESTS_BUILD_DIR"/tmp.wav");
@@ -300,12 +300,12 @@ START_TEST(ecore_test_ecore_audio_obj_sndfile)
300 ret = ecore_audio_obj_out_input_attach(out, in); 300 ret = ecore_audio_obj_out_input_attach(out, in);
301 fail_if(!ret); 301 fail_if(!ret);
302 302
303 eo_event_callback_add(in, ECORE_AUDIO_IN_EVENT_IN_STOPPED, _finished_cb, NULL); 303 efl_event_callback_add(in, ECORE_AUDIO_IN_EVENT_IN_STOPPED, _finished_cb, NULL);
304 304
305 ecore_main_loop_begin(); 305 ecore_main_loop_begin();
306 306
307 eo_del(in); 307 efl_del(in);
308 eo_del(out); 308 efl_del(out);
309 309
310 //TODO: Compare and fail 310 //TODO: Compare and fail
311 ecore_file_remove(TESTS_BUILD_DIR"/tmp.wav"); 311 ecore_file_remove(TESTS_BUILD_DIR"/tmp.wav");
@@ -357,20 +357,20 @@ START_TEST(ecore_test_ecore_audio_obj_in_out)
357 fail_if(eina_list_count(in3) != 2); 357 fail_if(eina_list_count(in3) != 2);
358 fail_if(eina_list_data_get(in3) != in); 358 fail_if(eina_list_data_get(in3) != in);
359 359
360 eo_del(in2); 360 efl_del(in2);
361 361
362 in3 = ecore_audio_obj_out_inputs_get(out); 362 in3 = ecore_audio_obj_out_inputs_get(out);
363 363
364 fail_if(eina_list_count(in3) != 1); 364 fail_if(eina_list_count(in3) != 1);
365 fail_if(eina_list_data_get(in3) != in); 365 fail_if(eina_list_data_get(in3) != in);
366 366
367 eo_del(out); 367 efl_del(out);
368 368
369 out2 = ecore_audio_obj_in_output_get(in); 369 out2 = ecore_audio_obj_in_output_get(in);
370 370
371 fail_if(out2); 371 fail_if(out2);
372 372
373 eo_del(in); 373 efl_del(in);
374} 374}
375END_TEST 375END_TEST
376 376
@@ -429,8 +429,8 @@ START_TEST(ecore_test_ecore_audio_obj_vio)
429 429
430 ecore_main_loop_begin(); 430 ecore_main_loop_begin();
431 431
432 eo_del(out); 432 efl_del(out);
433 eo_del(in); 433 efl_del(in);
434} 434}
435END_TEST 435END_TEST
436 436
@@ -529,7 +529,7 @@ START_TEST(ecore_test_ecore_audio_obj_in)
529 fail_if(buf[i] != 0x00); 529 fail_if(buf[i] != 0x00);
530 } 530 }
531 531
532 eo_del(in); 532 efl_del(in);
533} 533}
534END_TEST 534END_TEST
535 535
@@ -577,7 +577,7 @@ START_TEST(ecore_test_ecore_audio_obj)
577 volume = ecore_audio_obj_volume_get(obj); 577 volume = ecore_audio_obj_volume_get(obj);
578 fail_if(volume != 0.5); 578 fail_if(volume != 0.5);
579 579
580 eo_del(obj); 580 efl_del(obj);
581 } 581 }
582 582
583} 583}