diff options
Diffstat (limited to 'src/ats/test_ats2_lib.h')
-rw-r--r-- | src/ats/test_ats2_lib.h | 110 |
1 files changed, 55 insertions, 55 deletions
diff --git a/src/ats/test_ats2_lib.h b/src/ats/test_ats2_lib.h index f6d4d45b0..090abc20d 100644 --- a/src/ats/test_ats2_lib.h +++ b/src/ats/test_ats2_lib.h | |||
@@ -32,8 +32,8 @@ | |||
32 | ///** | 32 | ///** |
33 | // * Commands for the interpreter. | 33 | // * Commands for the interpreter. |
34 | // */ | 34 | // */ |
35 | //enum CommandCode | 35 | // enum CommandCode |
36 | //{ | 36 | // { |
37 | // /** | 37 | // /** |
38 | // * End the test (passing). | 38 | // * End the test (passing). |
39 | // */ | 39 | // */ |
@@ -123,14 +123,14 @@ | |||
123 | // */ | 123 | // */ |
124 | // CMD_SLEEP | 124 | // CMD_SLEEP |
125 | // | 125 | // |
126 | //}; | 126 | // }; |
127 | // | 127 | // |
128 | // | 128 | // |
129 | ///** | 129 | ///** |
130 | // * Details for the #CMD_ADD_ADDRESS command. | 130 | // * Details for the #CMD_ADD_ADDRESS command. |
131 | // */ | 131 | // */ |
132 | //struct CommandAddAddress | 132 | // struct CommandAddAddress |
133 | //{ | 133 | // { |
134 | // /** | 134 | // /** |
135 | // * Number of the peer (used to generate PID). | 135 | // * Number of the peer (used to generate PID). |
136 | // */ | 136 | // */ |
@@ -165,27 +165,27 @@ | |||
165 | // * Here the result of the add address operation will be stored. | 165 | // * Here the result of the add address operation will be stored. |
166 | // */ | 166 | // */ |
167 | // struct GNUNET_ATS_AddressRecord *ar; | 167 | // struct GNUNET_ATS_AddressRecord *ar; |
168 | //}; | 168 | // }; |
169 | // | 169 | // |
170 | // | 170 | // |
171 | ///** | 171 | ///** |
172 | // * Details for the #CMD_DEL_ADDRESS command. | 172 | // * Details for the #CMD_DEL_ADDRESS command. |
173 | // */ | 173 | // */ |
174 | //struct CommandDelAddress | 174 | // struct CommandDelAddress |
175 | //{ | 175 | // { |
176 | // /** | 176 | // /** |
177 | // * Label of the corresponding #CMD_ADD_ADDRESS that | 177 | // * Label of the corresponding #CMD_ADD_ADDRESS that |
178 | // * we are now to remove. | 178 | // * we are now to remove. |
179 | // */ | 179 | // */ |
180 | // const char *add_label; | 180 | // const char *add_label; |
181 | //}; | 181 | // }; |
182 | // | 182 | // |
183 | // | 183 | // |
184 | ///** | 184 | ///** |
185 | // * Details for the #CMD_AWAIT_ADDRESS_SUGGESTION command. | 185 | // * Details for the #CMD_AWAIT_ADDRESS_SUGGESTION command. |
186 | // */ | 186 | // */ |
187 | //struct CommandAwaitAddressSuggestion | 187 | // struct CommandAwaitAddressSuggestion |
188 | //{ | 188 | // { |
189 | // /** | 189 | // /** |
190 | // * For which peer do we expect a suggestion? | 190 | // * For which peer do we expect a suggestion? |
191 | // */ | 191 | // */ |
@@ -198,27 +198,27 @@ | |||
198 | // */ | 198 | // */ |
199 | // const char *add_label; | 199 | // const char *add_label; |
200 | // | 200 | // |
201 | //}; | 201 | // }; |
202 | // | 202 | // |
203 | // | 203 | // |
204 | ///** | 204 | ///** |
205 | // * Details for the #CMD_AWAIT_DISCONNECT_SUGGESTION command. | 205 | // * Details for the #CMD_AWAIT_DISCONNECT_SUGGESTION command. |
206 | // */ | 206 | // */ |
207 | //struct CommandAwaitDisconnectSuggestion | 207 | // struct CommandAwaitDisconnectSuggestion |
208 | //{ | 208 | // { |
209 | // /** | 209 | // /** |
210 | // * For which peer do we expect the disconnect? | 210 | // * For which peer do we expect the disconnect? |
211 | // */ | 211 | // */ |
212 | // unsigned int pid; | 212 | // unsigned int pid; |
213 | // | 213 | // |
214 | //}; | 214 | // }; |
215 | // | 215 | // |
216 | // | 216 | // |
217 | ///** | 217 | ///** |
218 | // * Details for the #CMD_REQUEST_CONNECTION_START command. | 218 | // * Details for the #CMD_REQUEST_CONNECTION_START command. |
219 | // */ | 219 | // */ |
220 | //struct CommandRequestConnectionStart | 220 | // struct CommandRequestConnectionStart |
221 | //{ | 221 | // { |
222 | // /** | 222 | // /** |
223 | // * Identity of the peer we would like to connect to. | 223 | // * Identity of the peer we would like to connect to. |
224 | // */ | 224 | // */ |
@@ -229,27 +229,27 @@ | |||
229 | // * #GNUNET_ATS_connectivity_suggest(). | 229 | // * #GNUNET_ATS_connectivity_suggest(). |
230 | // */ | 230 | // */ |
231 | // struct GNUNET_ATS_ConnectivitySuggestHandle *csh; | 231 | // struct GNUNET_ATS_ConnectivitySuggestHandle *csh; |
232 | //}; | 232 | // }; |
233 | // | 233 | // |
234 | // | 234 | // |
235 | ///** | 235 | ///** |
236 | // * Details for the #CMD_REQUEST_CONNECTION_STOP command. | 236 | // * Details for the #CMD_REQUEST_CONNECTION_STOP command. |
237 | // */ | 237 | // */ |
238 | //struct CommandRequestConnectionStop | 238 | // struct CommandRequestConnectionStop |
239 | //{ | 239 | // { |
240 | // /** | 240 | // /** |
241 | // * Label of the corresponding #CMD_REQUEST_CONNECTION_START that | 241 | // * Label of the corresponding #CMD_REQUEST_CONNECTION_START that |
242 | // * we are now stopping. | 242 | // * we are now stopping. |
243 | // */ | 243 | // */ |
244 | // const char *connect_label; | 244 | // const char *connect_label; |
245 | //}; | 245 | // }; |
246 | // | 246 | // |
247 | // | 247 | // |
248 | ///** | 248 | ///** |
249 | // * Details for the #CMD_AWAIT_ADDRESS_INFORMATION command. | 249 | // * Details for the #CMD_AWAIT_ADDRESS_INFORMATION command. |
250 | // */ | 250 | // */ |
251 | //struct CommandAwaitAddressInformation | 251 | // struct CommandAwaitAddressInformation |
252 | //{ | 252 | // { |
253 | // /** | 253 | // /** |
254 | // * For which address do we expect information? | 254 | // * For which address do we expect information? |
255 | // * The address is identified by the respective | 255 | // * The address is identified by the respective |
@@ -264,14 +264,14 @@ | |||
264 | // */ | 264 | // */ |
265 | // const char *update_label; | 265 | // const char *update_label; |
266 | // | 266 | // |
267 | //}; | 267 | // }; |
268 | // | 268 | // |
269 | // | 269 | // |
270 | ///** | 270 | ///** |
271 | // * Details for the #CMD_UPDATE_ADDRESS command. | 271 | // * Details for the #CMD_UPDATE_ADDRESS command. |
272 | // */ | 272 | // */ |
273 | //struct CommandUpdateAddress | 273 | // struct CommandUpdateAddress |
274 | //{ | 274 | // { |
275 | // /** | 275 | // /** |
276 | // * Label of the addresses's add operation. | 276 | // * Label of the addresses's add operation. |
277 | // */ | 277 | // */ |
@@ -282,14 +282,14 @@ | |||
282 | // */ | 282 | // */ |
283 | // struct GNUNET_ATS_Properties properties; | 283 | // struct GNUNET_ATS_Properties properties; |
284 | // | 284 | // |
285 | //}; | 285 | // }; |
286 | // | 286 | // |
287 | // | 287 | // |
288 | ///** | 288 | ///** |
289 | // * Details for the #CMD_ADD_SESSION command. | 289 | // * Details for the #CMD_ADD_SESSION command. |
290 | // */ | 290 | // */ |
291 | //struct CommandAddSession | 291 | // struct CommandAddSession |
292 | //{ | 292 | // { |
293 | // /** | 293 | // /** |
294 | // * Label of the addresses's add operation. | 294 | // * Label of the addresses's add operation. |
295 | // */ | 295 | // */ |
@@ -300,27 +300,27 @@ | |||
300 | // */ | 300 | // */ |
301 | // unsigned int session; | 301 | // unsigned int session; |
302 | // | 302 | // |
303 | //}; | 303 | // }; |
304 | // | 304 | // |
305 | // | 305 | // |
306 | ///** | 306 | ///** |
307 | // * Details for the #CMD_DEL_SESSION command. | 307 | // * Details for the #CMD_DEL_SESSION command. |
308 | // */ | 308 | // */ |
309 | //struct CommandDelSession | 309 | // struct CommandDelSession |
310 | //{ | 310 | // { |
311 | // /** | 311 | // /** |
312 | // * Label of the addresses's add operation. | 312 | // * Label of the addresses's add operation. |
313 | // */ | 313 | // */ |
314 | // const char *add_session_label; | 314 | // const char *add_session_label; |
315 | // | 315 | // |
316 | //}; | 316 | // }; |
317 | // | 317 | // |
318 | // | 318 | // |
319 | ///** | 319 | ///** |
320 | // * Details for the #CMD_CHANGE_PREFERENCE command. | 320 | // * Details for the #CMD_CHANGE_PREFERENCE command. |
321 | // */ | 321 | // */ |
322 | //struct CommandChangePreference | 322 | // struct CommandChangePreference |
323 | //{ | 323 | // { |
324 | // /** | 324 | // /** |
325 | // * Identity of the peer we have a preference change towards. | 325 | // * Identity of the peer we have a preference change towards. |
326 | // */ | 326 | // */ |
@@ -328,14 +328,14 @@ | |||
328 | // | 328 | // |
329 | // /* FIXME: preference details! */ | 329 | // /* FIXME: preference details! */ |
330 | // | 330 | // |
331 | //}; | 331 | // }; |
332 | // | 332 | // |
333 | // | 333 | // |
334 | ///** | 334 | ///** |
335 | // * Details for the #CMD_PROVIDE_FEEDBACK command. | 335 | // * Details for the #CMD_PROVIDE_FEEDBACK command. |
336 | // */ | 336 | // */ |
337 | //struct CommandProvideFeedback | 337 | // struct CommandProvideFeedback |
338 | //{ | 338 | // { |
339 | // /** | 339 | // /** |
340 | // * Identity of the peer we have a feedback for. | 340 | // * Identity of the peer we have a feedback for. |
341 | // */ | 341 | // */ |
@@ -347,14 +347,14 @@ | |||
347 | // struct GNUNET_TIME_Relative scope; | 347 | // struct GNUNET_TIME_Relative scope; |
348 | // | 348 | // |
349 | // /* FIXME: feedback details! */ | 349 | // /* FIXME: feedback details! */ |
350 | //}; | 350 | // }; |
351 | // | 351 | // |
352 | // | 352 | // |
353 | ///** | 353 | ///** |
354 | // * Details for the #CMD_LIST_ADDRESSES command. | 354 | // * Details for the #CMD_LIST_ADDRESSES command. |
355 | // */ | 355 | // */ |
356 | //struct CommandListAddresses | 356 | // struct CommandListAddresses |
357 | //{ | 357 | // { |
358 | // /** | 358 | // /** |
359 | // * Identity of the peer we want a list for. | 359 | // * Identity of the peer we want a list for. |
360 | // */ | 360 | // */ |
@@ -403,14 +403,14 @@ | |||
403 | // */ | 403 | // */ |
404 | // struct GNUNET_ATS_AddressListHandle *alh; | 404 | // struct GNUNET_ATS_AddressListHandle *alh; |
405 | // | 405 | // |
406 | //}; | 406 | // }; |
407 | // | 407 | // |
408 | // | 408 | // |
409 | ///** | 409 | ///** |
410 | // * Details for the #CMD_RESERVE_BANDWIDTH command. | 410 | // * Details for the #CMD_RESERVE_BANDWIDTH command. |
411 | // */ | 411 | // */ |
412 | //struct CommandReserveBandwidth | 412 | // struct CommandReserveBandwidth |
413 | //{ | 413 | // { |
414 | // /** | 414 | // /** |
415 | // * For which peer do we reserve bandwidth? | 415 | // * For which peer do we reserve bandwidth? |
416 | // */ | 416 | // */ |
@@ -435,26 +435,26 @@ | |||
435 | // */ | 435 | // */ |
436 | // struct GNUNET_ATS_ReservationContext *rc; | 436 | // struct GNUNET_ATS_ReservationContext *rc; |
437 | // | 437 | // |
438 | //}; | 438 | // }; |
439 | // | 439 | // |
440 | // | 440 | // |
441 | ///** | 441 | ///** |
442 | // * Details for the #CMD_SLEEP command. | 442 | // * Details for the #CMD_SLEEP command. |
443 | // */ | 443 | // */ |
444 | //struct CommandSleep | 444 | // struct CommandSleep |
445 | //{ | 445 | // { |
446 | // /** | 446 | // /** |
447 | // * How long should we wait before running the next command? | 447 | // * How long should we wait before running the next command? |
448 | // */ | 448 | // */ |
449 | // struct GNUNET_TIME_Relative delay; | 449 | // struct GNUNET_TIME_Relative delay; |
450 | //}; | 450 | // }; |
451 | // | 451 | // |
452 | // | 452 | // |
453 | ///** | 453 | ///** |
454 | // * A command for the test case interpreter. | 454 | // * A command for the test case interpreter. |
455 | // */ | 455 | // */ |
456 | //struct Command | 456 | // struct Command |
457 | //{ | 457 | // { |
458 | // /** | 458 | // /** |
459 | // * Command code to run. | 459 | // * Command code to run. |
460 | // */ | 460 | // */ |
@@ -502,7 +502,7 @@ | |||
502 | // | 502 | // |
503 | // } details; | 503 | // } details; |
504 | // | 504 | // |
505 | //}; | 505 | // }; |
506 | 506 | ||
507 | 507 | ||
508 | /** | 508 | /** |
@@ -515,9 +515,9 @@ | |||
515 | * @return 0 on success | 515 | * @return 0 on success |
516 | */ | 516 | */ |
517 | int | 517 | int |
518 | TEST_ATS_run(int argc, | 518 | TEST_ATS_run (int argc, |
519 | char *argv[], | 519 | char *argv[], |
520 | struct Command *cmds, | 520 | struct Command *cmds, |
521 | struct GNUNET_TIME_Relative timeout); | 521 | struct GNUNET_TIME_Relative timeout); |
522 | 522 | ||
523 | #endif | 523 | #endif |