pEpObjCTests/PEPSizeTest.m
author Dirk Zimmermann <dz@pep.security>
Fri, 20 Sep 2019 10:01:48 +0200
branchIOSAD-141
changeset 1250 b6a4d30abd26
parent 972 8e307290dc8f
permissions -rw-r--r--
IOSAD-141 Test for "hammering" the engine.
     1 //
     2 //  PEPSizeTest.m
     3 //  pEpObjCAdapterTests
     4 //
     5 //  Created by Dirk Zimmermann on 27.05.19.
     6 //  Copyright © 2019 p≡p. All rights reserved.
     7 //
     8 
     9 #import <XCTest/XCTest.h>
    10 
    11 #import "PEPObjCAdapterFramework.h"
    12 
    13 #import "pEpEngine.h"
    14 #import "message_api.h"
    15 #import "sync_api.h"
    16 
    17 @interface PEPSizeTest : XCTestCase
    18 
    19 @end
    20 
    21 @implementation PEPSizeTest
    22 
    23 - (void)testEnumSizes {
    24     XCTAssertEqual(sizeof(PEP_STATUS), sizeof(PEPStatus));
    25     XCTAssertEqual(sizeof(PEP_rating), sizeof(PEPRating));
    26     XCTAssertEqual(sizeof(PEP_decrypt_flags), sizeof(PEPDecryptFlags));
    27     XCTAssertEqual(sizeof(PEP_enc_format), sizeof(PEPEncFormat));
    28     XCTAssertEqual(sizeof(identity_flags), sizeof(PEPIdentityFlags));
    29     XCTAssertEqual(sizeof(sync_handshake_signal), sizeof(PEPSyncHandshakeSignal));
    30     XCTAssertEqual(sizeof(sync_handshake_result), sizeof(PEPSyncHandshakeResult));
    31     XCTAssertEqual(sizeof(PEP_comm_type), sizeof(PEPCommType));
    32     XCTAssertEqual(sizeof(PEP_msg_direction), sizeof(PEPMsgDirection));
    33     XCTAssertEqual(sizeof(PEP_color), sizeof(PEPColor));
    34     XCTAssertEqual(sizeof(content_disposition_type), sizeof(PEPContentDisposition));
    35 }
    36 
    37 @end