Skip to content

Commit

Permalink
Remove now-obsolete TARGET_HAS_ENTITLEMENTS check
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Federman committed Jan 17, 2017
1 parent 64337e7 commit f63cfd3
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions ValetTests/ValetTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@
#import <Valet/Valet.h>


// The iPhone simulator fakes entitlements, allowing us to test the iCloud Keychain (VALSynchronizableValet) and the secure enclave (VALSecureEnclaveValet) code without writing a signed host app.
#define TARGET_HAS_ENTITLEMENTS TARGET_IPHONE_SIMULATOR


@interface VALValet (Testing)

@property (copy, readonly) NSDictionary *baseQuery;
Expand Down Expand Up @@ -273,7 +269,6 @@ - (void)test_setStringForKey_ValetsWithSameIdentifierButDifferentAccessibilityCa
XCTAssertEqualObjects([otherValet stringForKey:self.key], self.secondaryString);
}

#if TARGET_HAS_ENTITLEMENTS
- (void)test_setStringForKey_setsSynchronizableString;
{
if (self.synchronizableValet == nil) {
Expand All @@ -287,7 +282,6 @@ - (void)test_setStringForKey_setsSynchronizableString;

XCTAssertNil([self.valet stringForKey:self.key], @"Expected no non-synchronizable string to be found.");
}
#endif

- (void)test_setStringForKey_nonStringData;
{
Expand Down Expand Up @@ -513,7 +507,6 @@ - (void)test_removeObjectForKey_successfullyRemovesKey;
XCTAssertNil([self.valet stringForKey:self.key], @"Expected no string to be retrieved after removing string");
}

#if TARGET_HAS_ENTITLEMENTS
- (void)test_removeObjectForKey_successfullyRemovesSynchronizableKey;
{
if (self.synchronizableValet == nil) {
Expand All @@ -528,7 +521,6 @@ - (void)test_removeObjectForKey_successfullyRemovesSynchronizableKey;
XCTAssertTrue([self.synchronizableValet removeObjectForKey:self.key]);
XCTAssertNil([self.synchronizableValet stringForKey:self.key]);
}
#endif

- (void)test_removeObjectForKey_wrongIdentifierSucceeds;
{
Expand Down Expand Up @@ -575,7 +567,6 @@ - (void)test_removeObjectForKey_ValetsWithSameIdentifierAndAccessibilityButDiffe
XCTAssertNil([self.testingValet stringForKey:self.key]);
}

#if TARGET_HAS_ENTITLEMENTS
- (void)test_removeObjectForKey_ValetsWithSameIdentifierAndAccessibilityButDifferentSyncronizableTypeRemoveDistinctDataFromKeychain;
{
if (self.synchronizableValet == nil) {
Expand All @@ -595,7 +586,6 @@ - (void)test_removeObjectForKey_ValetsWithSameIdentifierAndAccessibilityButDiffe
XCTAssertTrue([self.synchronizableValet removeObjectForKey:self.key]);
XCTAssertNil([self.synchronizableValet stringForKey:self.key]);
}
#endif

- (void)test_migrateObjectsMatchingQueryRemoveOnCompletion_failsIfNoItemsFoundMatchingQueryInput;
{
Expand Down

0 comments on commit f63cfd3

Please sign in to comment.