Skip to content

Commit

Permalink
Run forgotten content type tests (#309)
Browse files Browse the repository at this point in the history
* Run forgotten content type tests

---------

Co-authored-by: Bret Ambrose <bambrose@amazon.com>
  • Loading branch information
bretambrose and Bret Ambrose authored Jul 18, 2023
1 parent 83e7abe commit 7aaae0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 2 additions & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ add_test_case(mqtt5_operation_publish_validation_failure_response_topic_too_long
add_test_case(mqtt5_operation_publish_validation_failure_invalid_response_topic)
add_test_case(mqtt5_operation_publish_validation_failure_invalid_utf8_response_topic)
add_test_case(mqtt5_operation_publish_validation_failure_correlation_data_too_long)
add_test_case(mqtt5_operation_publish_validation_failure_content_type_too_long)
add_test_case(mqtt5_operation_publish_validation_failure_invalid_utf8_content_type)
add_test_case(mqtt5_operation_publish_validation_failure_subscription_identifier_exists)
add_test_case(mqtt5_operation_publish_validation_failure_topic_alias_zero)
add_test_case(mqtt5_operation_publish_validation_failure_user_properties_name_too_long)
Expand Down
9 changes: 0 additions & 9 deletions tests/v5/mqtt5_encoding_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@

#include <aws/testing/aws_test_harness.h>

/*
* AWS_MQTT_API enum aws_mqtt5_decode_result_type aws_mqtt5_decode_vli(struct aws_byte_cursor *cursor, uint32_t *dest);
* AWS_MQTT_API int aws_mqtt5_encode_variable_length_integer(struct aws_byte_buf *buf, uint32_t value);
* AWS_MQTT_API int aws_mqtt5_get_variable_length_encode_size(size_t value, size_t *encode_size);
*/

static int s_mqtt5_vli_size_fn(struct aws_allocator *allocator, void *ctx) {
(void)ctx;
(void)allocator;
Expand Down Expand Up @@ -47,9 +41,6 @@ static int s_mqtt5_vli_size_fn(struct aws_allocator *allocator, void *ctx) {
ASSERT_SUCCESS(aws_mqtt5_get_variable_length_encode_size(16384, &encode_size));
ASSERT_INT_EQUALS(3, encode_size);

ASSERT_SUCCESS(aws_mqtt5_get_variable_length_encode_size(16384, &encode_size));
ASSERT_INT_EQUALS(3, encode_size);

ASSERT_SUCCESS(aws_mqtt5_get_variable_length_encode_size(16385, &encode_size));
ASSERT_INT_EQUALS(3, encode_size);

Expand Down

0 comments on commit 7aaae0c

Please sign in to comment.