summaryrefslogtreecommitdiff
path: root/src/tests/efl_mono
diff options
context:
space:
mode:
authorJaehyun Cho <jae_hyun.cho@samsung.com>2019-09-02 21:14:44 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2019-09-02 21:14:44 +0900
commitac99e2ac9410d5b2ef6225fa1aaaf9ffcd6578fb (patch)
tree31410bdcb67a5437973f31b685ffc88fa087b252 /src/tests/efl_mono
parent48851138d7a88600638b0fe9be7d04ce7095c4a9 (diff)
eolian_mono: remove underscore of Evt_Args
Since C# does not use underscore in type name, the underscore of Evt_Args is removed.
Diffstat (limited to 'src/tests/efl_mono')
-rw-r--r--src/tests/efl_mono/Events.cs28
-rw-r--r--src/tests/efl_mono/Model.cs2
2 files changed, 15 insertions, 15 deletions
diff --git a/src/tests/efl_mono/Events.cs b/src/tests/efl_mono/Events.cs
index b664e2b..b22feb4 100644
--- a/src/tests/efl_mono/Events.cs
+++ b/src/tests/efl_mono/Events.cs
@@ -46,7 +46,7 @@ class TestEoEvents
46 var obj = new Dummy.TestObject(); 46 var obj = new Dummy.TestObject();
47 string received_string = null; 47 string received_string = null;
48 48
49 obj.EvtWithStringEvt += (object sender, Dummy.TestObjectEvtWithStringEvt_Args e) => { 49 obj.EvtWithStringEvt += (object sender, Dummy.TestObjectEvtWithStringEvtArgs e) => {
50 received_string = e.arg; 50 received_string = e.arg;
51 }; 51 };
52 52
@@ -60,7 +60,7 @@ class TestEoEvents
60 var obj = new Dummy.TestObject(); 60 var obj = new Dummy.TestObject();
61 int received_int= 0; 61 int received_int= 0;
62 62
63 obj.EvtWithIntEvt += (object sender, Dummy.TestObjectEvtWithIntEvt_Args e) => { 63 obj.EvtWithIntEvt += (object sender, Dummy.TestObjectEvtWithIntEvtArgs e) => {
64 received_int = e.arg; 64 received_int = e.arg;
65 }; 65 };
66 66
@@ -74,7 +74,7 @@ class TestEoEvents
74 var obj = new Dummy.TestObject(); 74 var obj = new Dummy.TestObject();
75 bool received_bool = false; 75 bool received_bool = false;
76 76
77 obj.EvtWithBoolEvt += (object sender, Dummy.TestObjectEvtWithBoolEvt_Args e) => { 77 obj.EvtWithBoolEvt += (object sender, Dummy.TestObjectEvtWithBoolEvtArgs e) => {
78 received_bool = e.arg; 78 received_bool = e.arg;
79 }; 79 };
80 80
@@ -91,7 +91,7 @@ class TestEoEvents
91 { 91 {
92 var obj = new Dummy.TestObject(); 92 var obj = new Dummy.TestObject();
93 uint received_uint = 0; 93 uint received_uint = 0;
94 obj.EvtWithUintEvt += (object sender, Dummy.TestObjectEvtWithUintEvt_Args e) => { 94 obj.EvtWithUintEvt += (object sender, Dummy.TestObjectEvtWithUintEvtArgs e) => {
95 received_uint = e.arg; 95 received_uint = e.arg;
96 }; 96 };
97 97
@@ -104,7 +104,7 @@ class TestEoEvents
104 { 104 {
105 var obj = new Dummy.TestObject(); 105 var obj = new Dummy.TestObject();
106 float received_float = 0; 106 float received_float = 0;
107 obj.EvtWithFloatEvt += (object sender, Dummy.TestObjectEvtWithFloatEvt_Args e) => { 107 obj.EvtWithFloatEvt += (object sender, Dummy.TestObjectEvtWithFloatEvtArgs e) => {
108 received_float = e.arg; 108 received_float = e.arg;
109 }; 109 };
110 110
@@ -118,7 +118,7 @@ class TestEoEvents
118 var obj = new Dummy.TestObject(); 118 var obj = new Dummy.TestObject();
119 double received_double = 0; 119 double received_double = 0;
120 double reference = float.MaxValue + 42; 120 double reference = float.MaxValue + 42;
121 obj.EvtWithDoubleEvt += (object sender, Dummy.TestObjectEvtWithDoubleEvt_Args e) => { 121 obj.EvtWithDoubleEvt += (object sender, Dummy.TestObjectEvtWithDoubleEvtArgs e) => {
122 received_double = e.arg; 122 received_double = e.arg;
123 }; 123 };
124 124
@@ -132,7 +132,7 @@ class TestEoEvents
132 var obj = new Dummy.TestObject(); 132 var obj = new Dummy.TestObject();
133 Dummy.TestObject received_obj = null; 133 Dummy.TestObject received_obj = null;
134 134
135 obj.EvtWithObjEvt += (object sender, Dummy.TestObjectEvtWithObjEvt_Args e) => { 135 obj.EvtWithObjEvt += (object sender, Dummy.TestObjectEvtWithObjEvtArgs e) => {
136 received_obj = e.arg; 136 received_obj = e.arg;
137 }; 137 };
138 138
@@ -148,7 +148,7 @@ class TestEoEvents
148 var obj = new Dummy.TestObject(); 148 var obj = new Dummy.TestObject();
149 Eina.Error received_error = 0; 149 Eina.Error received_error = 0;
150 150
151 obj.EvtWithErrorEvt += (object sender, Dummy.TestObjectEvtWithErrorEvt_Args e) => { 151 obj.EvtWithErrorEvt += (object sender, Dummy.TestObjectEvtWithErrorEvtArgs e) => {
152 received_error = e.arg; 152 received_error = e.arg;
153 }; 153 };
154 154
@@ -164,7 +164,7 @@ class TestEoEvents
164 var obj = new Dummy.TestObject(); 164 var obj = new Dummy.TestObject();
165 Dummy.StructSimple received_struct = default(Dummy.StructSimple); 165 Dummy.StructSimple received_struct = default(Dummy.StructSimple);
166 166
167 obj.EvtWithStructEvt += (object sender, Dummy.TestObjectEvtWithStructEvt_Args e) => { 167 obj.EvtWithStructEvt += (object sender, Dummy.TestObjectEvtWithStructEvtArgs e) => {
168 received_struct = e.arg; 168 received_struct = e.arg;
169 }; 169 };
170 170
@@ -181,7 +181,7 @@ class TestEoEvents
181 var obj = new Dummy.TestObject(); 181 var obj = new Dummy.TestObject();
182 Dummy.StructComplex received_struct = default(Dummy.StructComplex); 182 Dummy.StructComplex received_struct = default(Dummy.StructComplex);
183 183
184 obj.EvtWithStructComplexEvt += (object sender, Dummy.TestObjectEvtWithStructComplexEvt_Args e) => { 184 obj.EvtWithStructComplexEvt += (object sender, Dummy.TestObjectEvtWithStructComplexEvtArgs e) => {
185 received_struct = e.arg; 185 received_struct = e.arg;
186 }; 186 };
187 187
@@ -202,7 +202,7 @@ class TestEoEvents
202 sent.Append("Def"); 202 sent.Append("Def");
203 sent.Append("Ghi"); 203 sent.Append("Ghi");
204 204
205 obj.EvtWithArrayEvt += (object sender, Dummy.TestObjectEvtWithArrayEvt_Args e) => { 205 obj.EvtWithArrayEvt += (object sender, Dummy.TestObjectEvtWithArrayEvtArgs e) => {
206 received = e.arg; 206 received = e.arg;
207 }; 207 };
208 208
@@ -222,7 +222,7 @@ class TestEventAddRemove
222 var obj = new Dummy.TestObject(); 222 var obj = new Dummy.TestObject();
223 bool called = true; 223 bool called = true;
224 224
225 EventHandler<Dummy.TestObjectEvtWithIntEvt_Args> evtCb = (object sender, Dummy.TestObjectEvtWithIntEvt_Args e) => { 225 EventHandler<Dummy.TestObjectEvtWithIntEvtArgs> evtCb = (object sender, Dummy.TestObjectEvtWithIntEvtArgs e) => {
226 called = true; 226 called = true;
227 }; 227 };
228 228
@@ -279,7 +279,7 @@ class TestEventWithDeadWrappers
279{ 279{
280 280
281 private static WeakReference AttachToManager(Dummy.EventManager manager, 281 private static WeakReference AttachToManager(Dummy.EventManager manager,
282 EventHandler<Dummy.TestObjectEvtWithIntEvt_Args> cb) 282 EventHandler<Dummy.TestObjectEvtWithIntEvtArgs> cb)
283 { 283 {
284 var obj = new Dummy.TestObject(); 284 var obj = new Dummy.TestObject();
285 manager.Emitter = obj; 285 manager.Emitter = obj;
@@ -298,7 +298,7 @@ class TestEventWithDeadWrappers
298 int received = -1; 298 int received = -1;
299 299
300 // attach to evt with int 300 // attach to evt with int
301 EventHandler<Dummy.TestObjectEvtWithIntEvt_Args> cb = (object sender, Dummy.TestObjectEvtWithIntEvt_Args args) => { 301 EventHandler<Dummy.TestObjectEvtWithIntEvtArgs> cb = (object sender, Dummy.TestObjectEvtWithIntEvtArgs args) => {
302 callbackCalled = true; 302 callbackCalled = true;
303 received = args.arg; 303 received = args.arg;
304 Test.Assert(Object.ReferenceEquals(sender, wref.Target)); 304 Test.Assert(Object.ReferenceEquals(sender, wref.Target));
diff --git a/src/tests/efl_mono/Model.cs b/src/tests/efl_mono/Model.cs
index a43d9da..8493d5c 100644
--- a/src/tests/efl_mono/Model.cs
+++ b/src/tests/efl_mono/Model.cs
@@ -66,7 +66,7 @@ public class TestModel {
66 string propertyBound = null; 66 string propertyBound = null;
67 bool callbackCalled = false; 67 bool callbackCalled = false;
68 var factory = new Efl.Ui.ItemFactory<Efl.Ui.Button>(); 68 var factory = new Efl.Ui.ItemFactory<Efl.Ui.Button>();
69 factory.PropertyBoundEvt += (object sender, Efl.Ui.IPropertyBindPropertyBoundEvt_Args args) => { 69 factory.PropertyBoundEvt += (object sender, Efl.Ui.IPropertyBindPropertyBoundEvtArgs args) => {
70 propertyBound = args.arg; 70 propertyBound = args.arg;
71 callbackCalled = true; 71 callbackCalled = true;
72 }; 72 };