2019-05-27 16:59:53 +02:00
|
|
|
//
|
|
|
|
// PEPSizeTest.m
|
|
|
|
// pEpObjCAdapterTests
|
|
|
|
//
|
|
|
|
// Created by Dirk Zimmermann on 27.05.19.
|
|
|
|
// Copyright © 2019 p≡p. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <XCTest/XCTest.h>
|
|
|
|
|
2020-12-04 17:14:35 +01:00
|
|
|
#import "PEPObjCAdapterTypes_iOS.h"
|
|
|
|
#import "PEPObjCAdapter_iOS.h"
|
2019-05-27 16:59:53 +02:00
|
|
|
|
|
|
|
#import "pEpEngine.h"
|
|
|
|
#import "message_api.h"
|
|
|
|
#import "sync_api.h"
|
|
|
|
|
|
|
|
@interface PEPSizeTest : XCTestCase
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation PEPSizeTest
|
|
|
|
|
|
|
|
- (void)testEnumSizes {
|
|
|
|
XCTAssertEqual(sizeof(PEP_STATUS), sizeof(PEPStatus));
|
|
|
|
XCTAssertEqual(sizeof(PEP_rating), sizeof(PEPRating));
|
|
|
|
XCTAssertEqual(sizeof(PEP_decrypt_flags), sizeof(PEPDecryptFlags));
|
|
|
|
XCTAssertEqual(sizeof(PEP_enc_format), sizeof(PEPEncFormat));
|
|
|
|
XCTAssertEqual(sizeof(identity_flags), sizeof(PEPIdentityFlags));
|
|
|
|
XCTAssertEqual(sizeof(sync_handshake_signal), sizeof(PEPSyncHandshakeSignal));
|
|
|
|
XCTAssertEqual(sizeof(sync_handshake_result), sizeof(PEPSyncHandshakeResult));
|
|
|
|
XCTAssertEqual(sizeof(PEP_comm_type), sizeof(PEPCommType));
|
|
|
|
XCTAssertEqual(sizeof(PEP_msg_direction), sizeof(PEPMsgDirection));
|
|
|
|
XCTAssertEqual(sizeof(PEP_color), sizeof(PEPColor));
|
|
|
|
XCTAssertEqual(sizeof(content_disposition_type), sizeof(PEPContentDisposition));
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|