| 174 | } |
| 175 | |
| 176 | int test_container_capabilities() { |
| 177 | proton::connection_options opts; |
| 178 | opts.offered_capabilities(make_caps("offered")); |
| 179 | opts.desired_capabilities(make_caps("desired")); |
| 180 | test_handler th("", opts); |
| 181 | proton::container(th).run(); |
| 182 | ASSERT_EQUAL(th.peer_offered_capabilities.size(), 1u); |
| 183 | ASSERT_EQUAL(th.peer_offered_capabilities[0], proton::symbol("offered")); |
| 184 | ASSERT_EQUAL(th.peer_desired_capabilities.size(), 1u); |
| 185 | ASSERT_EQUAL(th.peer_desired_capabilities[0], proton::symbol("desired")); |
| 186 | ASSERT_EQUAL(th.peer_properties.size(), 0u); |
| 187 | return 0; |
| 188 | } |
| 189 | |
| 190 | int test_container_properties() { |
| 191 | proton::connection_options opts; |
no test coverage detected