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