Commit b61dd61e authored by Greg Williams's avatar Greg Williams
Browse files

Almost done updating integration and system tests. NOOP, PUT and DELETE are...

Almost done updating integration and system tests. NOOP, PUT and DELETE are currently working, but DELETE system test and GET need to be updated to copy data from response into KineticEntry.
parent fcf72c26
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -31,6 +31,10 @@ obj/
build/
docs/

# Eclipse temp junk
.metadata/
RemoteSystemsTempFiles/

# Other local files to ignore
.tags*
*.sublime-workspace
+1 −0
Original line number Diff line number Diff line
@@ -152,6 +152,7 @@ typedef enum {
    KINETIC_STATUS_OPERATION_FAILED,    // Device reported an operation error
    KINETIC_STATUS_VERSION_FAILURE,     // Basically a VERSION_MISMATCH error for a PUT
    KINETIC_STATUS_DATA_ERROR,          // Device reported data error, no space or HMAC failure
    KINETIC_STATUS_BUFFER_OVERRUN,      // One or more of byte buffers did not fit all data
    KINETIC_STATUS_COUNT                // Number of status codes in KineticStatusDescriptor
} KineticStatus;
extern const char* KineticStatusDescriptor[];
+1 −1
Original line number Diff line number Diff line
@@ -75,7 +75,7 @@
    # - :array
    # - :cexception
    # - :callback
    # - :return_thru_ptr
    - :return_thru_ptr
  :unity_helper_path: test/support/unity_helper.h
  :includes_h_post_orig_header:
    - "unity.h"
+5 −1
Original line number Diff line number Diff line
@@ -33,7 +33,11 @@ ByteArray ByteArray_GetSlice(ByteArray array, size_t start, size_t len)
    };
}


void ByteBuffer_Reset(ByteBuffer* buffer)
{
    assert(buffer != NULL);
    buffer->bytesUsed = 0;
}

ByteBuffer ByteBuffer_Create(void* data, size_t max_len)
{
+1 −0
Original line number Diff line number Diff line
@@ -41,6 +41,7 @@ typedef struct {

ByteBuffer ByteBuffer_Create(void* data, size_t max_len);
ByteBuffer ByteBuffer_CreateWithArray(ByteArray array);
void ByteBuffer_Reset(ByteBuffer* buffer);
long ByteBuffer_BytesRemaining(const ByteBuffer buffer);
ByteArray ByteBuffer_Consume(ByteBuffer* buffer, size_t len);
bool ByteBuffer_Append(ByteBuffer* buffer, const void* data, size_t len);
Loading