diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-02-11 18:44:19 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-02-11 18:44:19 +0000 |
commit | 72002c196893a932c5f3bcdde818581a6209d4c9 (patch) | |
tree | 44d32864e4fbcde253a2bb313ac14146857085c6 /src/ats/test_ats_lib.h | |
parent | 7a257361b5e118f33adb182dd1996fccd52ecda8 (diff) | |
download | gnunet-72002c196893a932c5f3bcdde818581a6209d4c9.tar.gz gnunet-72002c196893a932c5f3bcdde818581a6209d4c9.zip |
finish implementing reservation test, and fix bandwidth reservation logic
Diffstat (limited to 'src/ats/test_ats_lib.h')
-rw-r--r-- | src/ats/test_ats_lib.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/ats/test_ats_lib.h b/src/ats/test_ats_lib.h index 099fa9b45..975172f2f 100644 --- a/src/ats/test_ats_lib.h +++ b/src/ats/test_ats_lib.h | |||
@@ -117,7 +117,12 @@ enum CommandCode | |||
117 | * Reserve bandwidth, testing | 117 | * Reserve bandwidth, testing |
118 | * #GNUNET_ATS_reserve_bandwidth(). | 118 | * #GNUNET_ATS_reserve_bandwidth(). |
119 | */ | 119 | */ |
120 | CMD_RESERVE_BANDWIDTH | 120 | CMD_RESERVE_BANDWIDTH, |
121 | |||
122 | /** | ||
123 | * Wait for a bit. | ||
124 | */ | ||
125 | CMD_SLEEP | ||
121 | 126 | ||
122 | }; | 127 | }; |
123 | 128 | ||
@@ -435,6 +440,18 @@ struct CommandReserveBandwidth | |||
435 | 440 | ||
436 | 441 | ||
437 | /** | 442 | /** |
443 | * Details for the #CMD_SLEEP command. | ||
444 | */ | ||
445 | struct CommandSleep | ||
446 | { | ||
447 | /** | ||
448 | * How long should we wait before running the next command? | ||
449 | */ | ||
450 | struct GNUNET_TIME_Relative delay; | ||
451 | }; | ||
452 | |||
453 | |||
454 | /** | ||
438 | * A command for the test case interpreter. | 455 | * A command for the test case interpreter. |
439 | */ | 456 | */ |
440 | struct Command | 457 | struct Command |
@@ -482,6 +499,8 @@ struct Command | |||
482 | 499 | ||
483 | struct CommandReserveBandwidth reserve_bandwidth; | 500 | struct CommandReserveBandwidth reserve_bandwidth; |
484 | 501 | ||
502 | struct CommandSleep sleep; | ||
503 | |||
485 | } details; | 504 | } details; |
486 | 505 | ||
487 | }; | 506 | }; |