| 41 | } |
| 42 | |
| 43 | void run() override |
| 44 | { |
| 45 | check(error::closed); |
| 46 | check(error::buffer_overflow); |
| 47 | check(error::partial_deflate_block); |
| 48 | check(error::message_too_big); |
| 49 | |
| 50 | check(condition::protocol_violation, error::bad_opcode); |
| 51 | check(condition::protocol_violation, error::bad_data_frame); |
| 52 | check(condition::protocol_violation, error::bad_continuation); |
| 53 | check(condition::protocol_violation, error::bad_reserved_bits); |
| 54 | check(condition::protocol_violation, error::bad_control_fragment); |
| 55 | check(condition::protocol_violation, error::bad_control_size); |
| 56 | check(condition::protocol_violation, error::bad_unmasked_frame); |
| 57 | check(condition::protocol_violation, error::bad_masked_frame); |
| 58 | check(condition::protocol_violation, error::bad_size); |
| 59 | check(condition::protocol_violation, error::bad_frame_payload); |
| 60 | check(condition::protocol_violation, error::bad_close_code); |
| 61 | check(condition::protocol_violation, error::bad_close_size); |
| 62 | check(condition::protocol_violation, error::bad_close_payload); |
| 63 | |
| 64 | check(condition::handshake_failed, error::bad_http_version); |
| 65 | check(condition::handshake_failed, error::bad_method); |
| 66 | check(condition::handshake_failed, error::no_host); |
| 67 | check(condition::handshake_failed, error::no_connection); |
| 68 | check(condition::handshake_failed, error::no_connection_upgrade); |
| 69 | check(condition::handshake_failed, error::no_upgrade); |
| 70 | check(condition::handshake_failed, error::no_upgrade_websocket); |
| 71 | check(condition::handshake_failed, error::no_sec_key); |
| 72 | check(condition::handshake_failed, error::bad_sec_key); |
| 73 | check(condition::handshake_failed, error::no_sec_version); |
| 74 | check(condition::handshake_failed, error::bad_sec_version); |
| 75 | check(condition::handshake_failed, error::no_sec_accept); |
| 76 | check(condition::handshake_failed, error::bad_sec_accept); |
| 77 | check(condition::handshake_failed, error::upgrade_declined); |
| 78 | } |
| 79 | }; |
| 80 | |
| 81 | BEAST_DEFINE_TESTSUITE(beast,websocket,error); |
nothing calls this directly
no outgoing calls
no test coverage detected