summaryrefslogtreecommitdiff
path: root/src/tests/ecore/ecore_test_ecore_audio.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2014-04-02 11:42:00 +0100
committerTom Hacohen <tom@stosb.com>2014-04-10 04:20:21 +0100
commit374af9b9cad96e499cfd9d3de99b30d2096d8cab (patch)
treec989a4dff16d1e7900030e1a1103afa406edb0a0 /src/tests/ecore/ecore_test_ecore_audio.c
parent1866909ba1084d1b2cbcd324c9c8a81ab80405f0 (diff)
Eo: eo_base's data_*->key_data_*.
Diffstat (limited to 'src/tests/ecore/ecore_test_ecore_audio.c')
-rw-r--r--src/tests/ecore/ecore_test_ecore_audio.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tests/ecore/ecore_test_ecore_audio.c b/src/tests/ecore/ecore_test_ecore_audio.c
index d628384..04782ce 100644
--- a/src/tests/ecore/ecore_test_ecore_audio.c
+++ b/src/tests/ecore/ecore_test_ecore_audio.c
@@ -116,7 +116,7 @@ START_TEST(ecore_test_ecore_audio_cleanup)
116 116
117 in = eo_add(ECORE_AUDIO_OBJ_IN_TONE_CLASS, NULL); 117 in = eo_add(ECORE_AUDIO_OBJ_IN_TONE_CLASS, NULL);
118 fail_if(!in); 118 fail_if(!in);
119 eo_do(in, eo_base_data_set(ECORE_AUDIO_ATTR_TONE_FREQ, &freq, NULL)); 119 eo_do(in, eo_key_data_set(ECORE_AUDIO_ATTR_TONE_FREQ, &freq, NULL));
120 eo_do(in, ecore_audio_obj_in_length_set(2)); 120 eo_do(in, ecore_audio_obj_in_length_set(2));
121 121
122 out = eo_add(ECORE_AUDIO_OBJ_OUT_SNDFILE_CLASS, NULL); 122 out = eo_add(ECORE_AUDIO_OBJ_OUT_SNDFILE_CLASS, NULL);
@@ -166,17 +166,17 @@ START_TEST(ecore_test_ecore_audio_obj_tone)
166 eo_do(in, ecore_audio_obj_in_remaining_get(&len)); 166 eo_do(in, ecore_audio_obj_in_remaining_get(&len));
167 fail_if(len != 2.5); 167 fail_if(len != 2.5);
168 168
169 eo_do(in, eo_base_data_get(ECORE_AUDIO_ATTR_TONE_FREQ, (void **)&freq)); 169 eo_do(in, eo_key_data_get(ECORE_AUDIO_ATTR_TONE_FREQ, (void **)&freq));
170 fail_if(freq != 1000); 170 fail_if(freq != 1000);
171 171
172 freq = 2000; 172 freq = 2000;
173 eo_do(in, eo_base_data_set(ECORE_AUDIO_ATTR_TONE_FREQ, &freq, NULL)); 173 eo_do(in, eo_key_data_set(ECORE_AUDIO_ATTR_TONE_FREQ, &freq, NULL));
174 174
175 eo_do(in, eo_base_data_get(ECORE_AUDIO_ATTR_TONE_FREQ, (void **)&freq)); 175 eo_do(in, eo_key_data_get(ECORE_AUDIO_ATTR_TONE_FREQ, (void **)&freq));
176 fail_if(freq != 2000); 176 fail_if(freq != 2000);
177 177
178 eo_do(in, eo_base_data_set("foo", "bar", NULL)); 178 eo_do(in, eo_key_data_set("foo", "bar", NULL));
179 eo_do(in, eo_base_data_get("foo", (void **)&tmp)); 179 eo_do(in, eo_key_data_get("foo", (void **)&tmp));
180 ck_assert_str_eq(tmp, "bar"); 180 ck_assert_str_eq(tmp, "bar");
181 181
182 eo_do(in, ecore_audio_obj_in_seek(5.0, SEEK_SET, &len)); 182 eo_do(in, ecore_audio_obj_in_seek(5.0, SEEK_SET, &len));