summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2018-05-09 10:19:49 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2018-05-17 16:56:18 -0300
commit95c8a7d28c2d2443389a3bcbffeae36966a7dc47 (patch)
tree4d7f086274954b7d26a340225ff52dcff8305e0f /src
parentf8a033fd70ac8a07c3c88ba2d32d61912f9961b5 (diff)
efl_mono: Fix eldbus warnings and typo.
Summary: Depends on D6172 Reviewers: felipealmeida Reviewed By: felipealmeida Subscribers: cedric, zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6173
Diffstat (limited to 'src')
-rw-r--r--src/bindings/mono/eldbus_mono/eldbus_connection.cs2
-rw-r--r--src/tests/efl_mono/Eldbus.cs16
2 files changed, 13 insertions, 5 deletions
diff --git a/src/bindings/mono/eldbus_mono/eldbus_connection.cs b/src/bindings/mono/eldbus_mono/eldbus_connection.cs
index f80a0aba0a..0da670efc1 100644
--- a/src/bindings/mono/eldbus_mono/eldbus_connection.cs
+++ b/src/bindings/mono/eldbus_mono/eldbus_connection.cs
@@ -313,7 +313,7 @@ public class Connection : IDisposable
313 return new eldbus.Pending(pending_hdl, false); 313 return new eldbus.Pending(pending_hdl, false);
314 } 314 }
315 315
316 public eldbus.Pending ActivableList(eldbus.MessageDelegate dlgt = null) 316 public eldbus.Pending ActivatableList(eldbus.MessageDelegate dlgt = null)
317 { 317 {
318 CheckHandle(); 318 CheckHandle();
319 319
diff --git a/src/tests/efl_mono/Eldbus.cs b/src/tests/efl_mono/Eldbus.cs
index 9c9fe35e88..820c8984ef 100644
--- a/src/tests/efl_mono/Eldbus.cs
+++ b/src/tests/efl_mono/Eldbus.cs
@@ -158,6 +158,8 @@ class TestEldbusObject
158 158
159 eldbus.Pending pending = obj.Send(message, objectMessageCb, -1); 159 eldbus.Pending pending = obj.Send(message, objectMessageCb, -1);
160 160
161 AssertEquals(pending.GetMethod(), methodName);
162
161 timeout = ecore_timer_add(2.0, GetEcoreLoopClose(), IntPtr.Zero); 163 timeout = ecore_timer_add(2.0, GetEcoreLoopClose(), IntPtr.Zero);
162 Assert(timeout != IntPtr.Zero); 164 Assert(timeout != IntPtr.Zero);
163 165
@@ -216,6 +218,8 @@ class TestEldbusObject
216 218
217 eldbus.Pending pending = obj.Introspect(objectMessageCb); 219 eldbus.Pending pending = obj.Introspect(objectMessageCb);
218 220
221 AssertEquals(pending.GetMethod(), "Introspect");
222
219 timeout = ecore_timer_add(2.0, GetEcoreLoopClose(), IntPtr.Zero); 223 timeout = ecore_timer_add(2.0, GetEcoreLoopClose(), IntPtr.Zero);
220 Assert(timeout != IntPtr.Zero); 224 Assert(timeout != IntPtr.Zero);
221 225
@@ -236,13 +240,15 @@ class TestEldbusMessage
236 private static bool isSuccess = false; 240 private static bool isSuccess = false;
237 241
238 242
239 private static void ActivableList(eldbus.MessageDelegate messageCb) 243 private static void ActivatableList(eldbus.MessageDelegate messageCb)
240 { 244 {
241 isSuccess = false; 245 isSuccess = false;
242 246
243 var conn = new eldbus.Connection(eldbus.Connection.Type.System); 247 var conn = new eldbus.Connection(eldbus.Connection.Type.System);
244 248
245 eldbus.Pending pending = conn.ActivableList(messageCb); 249 eldbus.Pending pending = conn.ActivatableList(messageCb);
250
251 AssertEquals(pending.GetMethod(), "ListActivatableNames");
246 252
247 timeout = ecore_timer_add(2.0, GetEcoreLoopClose(), IntPtr.Zero); 253 timeout = ecore_timer_add(2.0, GetEcoreLoopClose(), IntPtr.Zero);
248 Assert(timeout != IntPtr.Zero); 254 Assert(timeout != IntPtr.Zero);
@@ -303,7 +309,7 @@ class TestEldbusMessage
303 } 309 }
304 }; 310 };
305 311
306 ActivableList(responseMessageCb); 312 ActivatableList(responseMessageCb);
307 } 313 }
308 314
309 public static void utc_eldbus_message_info_data_get_p() 315 public static void utc_eldbus_message_info_data_get_p()
@@ -360,6 +366,8 @@ class TestEldbusMessage
360 const int timeoutSendMs = 1000; 366 const int timeoutSendMs = 1000;
361 eldbus.Pending pending = conn.Send(msg, messageMethodCb, timeoutSendMs); 367 eldbus.Pending pending = conn.Send(msg, messageMethodCb, timeoutSendMs);
362 368
369 AssertEquals(pending.GetMethod(), methodName);
370
363 timeout = ecore_timer_add(2.0, GetEcoreLoopClose(), IntPtr.Zero); 371 timeout = ecore_timer_add(2.0, GetEcoreLoopClose(), IntPtr.Zero);
364 Assert(timeout != IntPtr.Zero); 372 Assert(timeout != IntPtr.Zero);
365 373
@@ -438,7 +446,7 @@ class TestEldbusMessage
438 ecore_main_loop_quit(); 446 ecore_main_loop_quit();
439 } 447 }
440 }; 448 };
441 ActivableList(activatableListResponseCb); 449 ActivatableList(activatableListResponseCb);
442 } 450 }
443} 451}
444 452