23
23
#define CBOR_GETSTREAMREQUEST_ITEM_COUNT 6
24
24
25
25
/* ============================ TEST GLOBALS ============================= */
26
- const uint8_t * decodeMessageBuffer = (const uint8_t * ) "decodeMessageBuffer" ;
26
+ const uint8_t * decodeMessageBuffer = ( const uint8_t * ) "decodeMessageBuffer" ;
27
27
uint8_t * encodeMessageBuffer = ( uint8_t * ) "encodeMessageBuffer" ;
28
- const uint8_t * blockBitmap = (const uint8_t * ) "blockBitmap" ;
28
+ const uint8_t * blockBitmap = ( const uint8_t * ) "blockBitmap" ;
29
29
const char * clientToken = "clientToken" ;
30
30
int32_t blockId = 1 ;
31
31
int32_t blockSize = 2 ;
@@ -102,7 +102,7 @@ void cborFindsBlockIdKey( void )
102
102
103
103
void cborBlockIdKeyCorrectType ( void )
104
104
{
105
- cbor_value_get_type_ExpectAndReturn ( & cborValue , (CborType ) CborNoError );
105
+ cbor_value_get_type_ExpectAndReturn ( & cborValue , ( CborType ) CborNoError );
106
106
cbor_value_get_int_ExpectAndReturn ( & cborValue , & blockId , CborNoError );
107
107
}
108
108
@@ -115,7 +115,7 @@ void cborFindsBlockSizeKey( void )
115
115
116
116
void cborBlockSizeKeyCorrectType ( void )
117
117
{
118
- cbor_value_get_type_ExpectAndReturn ( & cborValue , (CborType ) CborNoError );
118
+ cbor_value_get_type_ExpectAndReturn ( & cborValue , ( CborType ) CborNoError );
119
119
cbor_value_get_int_ExpectAndReturn ( & cborValue , & blockSize , CborNoError );
120
120
}
121
121
@@ -323,7 +323,7 @@ void test_Decode_returnsFalse_cannotGetBlockIdValue( void )
323
323
cborFindsFileIdKey ();
324
324
cborFileIdKeyCorrectType ();
325
325
cborFindsBlockIdKey ();
326
- cbor_value_get_type_ExpectAndReturn ( & cborValue , (CborType ) CborNoError );
326
+ cbor_value_get_type_ExpectAndReturn ( & cborValue , ( CborType ) CborNoError );
327
327
cbor_value_get_int_ExpectAndReturn ( & cborValue , & blockId , CborUnknownError );
328
328
329
329
result = CBOR_Decode_GetStreamResponseMessage ( decodeMessageBuffer , 1234U , & fileId , & blockId , & blockSize , payload , & payloadSize );
@@ -353,7 +353,7 @@ void test_Decode_returnsFalse_blockSizeWrongTypeInMap( void )
353
353
cborFindsBlockIdKey ();
354
354
cborBlockIdKeyCorrectType ();
355
355
cborFindsBlockSizeKey ();
356
- cbor_value_get_type_ExpectAndReturn ( & cborValue , (CborType ) CborUnknownError );
356
+ cbor_value_get_type_ExpectAndReturn ( & cborValue , ( CborType ) CborUnknownError );
357
357
358
358
result = CBOR_Decode_GetStreamResponseMessage ( decodeMessageBuffer , 1234U , & fileId , & blockId , & blockSize , payload , & payloadSize );
359
359
TEST_ASSERT_FALSE ( result );
@@ -368,7 +368,7 @@ void test_Decode_returnsFalse_cannotGetBlockSizeValue( void )
368
368
cborFindsBlockIdKey ();
369
369
cborBlockIdKeyCorrectType ();
370
370
cborFindsBlockSizeKey ();
371
- cbor_value_get_type_ExpectAndReturn ( & cborValue , (CborType ) CborNoError );
371
+ cbor_value_get_type_ExpectAndReturn ( & cborValue , ( CborType ) CborNoError );
372
372
cbor_value_get_int_ExpectAndReturn ( & cborValue , & blockSize , CborUnknownError );
373
373
374
374
result = CBOR_Decode_GetStreamResponseMessage ( decodeMessageBuffer , 1234U , & fileId , & blockId , & blockSize , payload , & payloadSize );
@@ -403,7 +403,7 @@ void test_Decode_returnsFalse_blockPayloadWrongTypeInMap( void )
403
403
cborBlockSizeKeyCorrectType ();
404
404
cborFindsPayloadKeyInMap ();
405
405
406
- cbor_value_get_type_ExpectAndReturn ( & cborValue , (CborType ) CborUnknownError );
406
+ cbor_value_get_type_ExpectAndReturn ( & cborValue , ( CborType ) CborUnknownError );
407
407
408
408
result = CBOR_Decode_GetStreamResponseMessage ( decodeMessageBuffer , 1234U , & fileId , & blockId , & blockSize , payload , & payloadSize );
409
409
TEST_ASSERT_FALSE ( result );
0 commit comments