| 110 | } |
| 111 | |
| 112 | void |
| 113 | testChunkBody() |
| 114 | { |
| 115 | check<chunk_body<cb_t>>( |
| 116 | "3\r\n***\r\n", cb("***")); |
| 117 | |
| 118 | check<chunk_body<cb_t>>( |
| 119 | "3;x\r\n***\r\n", cb("***"), ";x"); |
| 120 | |
| 121 | chunk_extensions exts; |
| 122 | exts.insert("y"); |
| 123 | exts.insert("z"); |
| 124 | |
| 125 | check<chunk_body<cb_t>>( |
| 126 | "3;y;z\r\n***\r\n", |
| 127 | cb("***"), exts); |
| 128 | |
| 129 | { |
| 130 | auto exts2 = exts; |
| 131 | |
| 132 | check_fwd<chunk_body<cb_t>>( |
| 133 | "3;y;z\r\n***\r\n", |
| 134 | cb("***"), std::move(exts2)); |
| 135 | } |
| 136 | |
| 137 | check<chunk_body<cb_t>>( |
| 138 | "3;y;z\r\n***\r\n", |
| 139 | cb("***"), exts, std::allocator<double>{}); |
| 140 | |
| 141 | { |
| 142 | auto exts2 = exts; |
| 143 | |
| 144 | check_fwd<chunk_body<cb_t>>( |
| 145 | "3;y;z\r\n***\r\n", |
| 146 | cb("***"), std::move(exts2), |
| 147 | std::allocator<double>{}); |
| 148 | } |
| 149 | } |
| 150 | |
| 151 | void |
| 152 | testChunkFinal() |