Skip to content

Commit

Permalink
Remove TestTools.h
Browse files Browse the repository at this point in the history
Summary:
- TestTools is now 100% Swift
- FBSDKCoreKit imports had to be added since it was no longer imported globally via TestTools.h
- A few line breaks had to be added above the new import to prevent the "Imports should be sorted" violation from SwiftLint

Reviewed By: samodom

Differential Revision: D40077738

fbshipit-source-id: 2cb5cbeceb90214f58fa0f6fe635eef133faa336
  • Loading branch information
jawwad authored and facebook-github-bot committed Oct 4, 2022
1 parent 492bf19 commit 090b00c
Show file tree
Hide file tree
Showing 29 changed files with 38 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#import <FBAEMKit/FBAEMKit.h>
#import <FBSDKCoreKit/FBSDKCoreKit.h>
#import <FBSDKCoreKit_Basics/FBSDKCoreKit_Basics.h>
#import <TestTools/TestTools.h>
@import TestTools;

#import "XCTestCase+Extensions.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

@testable import FBSDKCoreKit

import TestTools
import XCTest

final class AppEventsDeviceInfoTests: XCTestCase {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
*/

@testable import FBSDKGamingServicesKit

import FBSDKCoreKit
import TestTools
import XCTest

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

@testable import FBSDKGamingServicesKit

import FBSDKCoreKit
import TestTools
import XCTest

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
*/

@testable import FBSDKGamingServicesKit

import FBSDKCoreKit
import TestTools
import XCTest

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
*/

@testable import FBSDKGamingServicesKit

import FBSDKCoreKit
import TestTools
import XCTest

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
*/

@testable import FBSDKGamingServicesKit

import FBSDKCoreKit
import FBSDKShareKit
import TestTools
import XCTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

@testable import FBSDKGamingServicesKit

import FBSDKCoreKit
import TestTools
import XCTest

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* LICENSE file in the root directory of this source tree.
*/

import FBSDKCoreKit
import TestTools
import XCTest

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
*/

@testable import FBSDKGamingServicesKit

import FBSDKCoreKit
import TestTools
import XCTest

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
*/

@testable import FBSDKGamingServicesKit

import FBSDKCoreKit
import TestTools
import XCTest

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
*/

@testable import FBSDKGamingServicesKit

import FBSDKCoreKit
import TestTools

enum SampleContextDialogs {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
*/

@testable import FBSDKGamingServicesKit

import FBSDKCoreKit
import TestTools
import XCTest

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
*/

@testable import FBSDKGamingServicesKit

import FBSDKCoreKit
import TestTools
import XCTest

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* LICENSE file in the root directory of this source tree.
*/

import FBSDKCoreKit
import Foundation
import TestTools

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import FBSDKShareKit
import TestTools
import UIKit

enum ShareModelTestUtility {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

@testable import FBSDKShareKit

import FBSDKCoreKit
import Photos
import TestTools
import XCTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

@testable import FBSDKShareKit

import FBSDKCoreKit
import Photos
import TestTools
import XCTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

@testable import FBSDKShareKit

import FBSDKCoreKit
import TestTools
import XCTest

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
*/

@testable import FBSDKShareKit

import FBSDKCoreKit
import TestTools
import XCTest

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
*/

@testable import FBSDKShareKit

import FBSDKCoreKit
import TestTools
import XCTest

Expand Down
15 changes: 0 additions & 15 deletions TestTools/TestTools.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
BF1AFE1973B52493C7B6D03C /* SampleUserProfiles.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAD0C12E3DCAF88D1A6D0E0A /* SampleUserProfiles.swift */; };
C267A09733E0B5399A583086 /* TestSDKError.swift in Sources */ = {isa = PBXBuildFile; fileRef = C1261F972AA29EAF48DA1D6B /* TestSDKError.swift */; };
C975A94CFA4522D7A5194379 /* TestKeychainStoreFactory.swift in Sources */ = {isa = PBXBuildFile; fileRef = FEA859E1F31F30B29819BC2F /* TestKeychainStoreFactory.swift */; };
CD78B55C79B11804946E08EE /* TestTools.h in Headers */ = {isa = PBXBuildFile; fileRef = CC38C544BAC3F3485C5F699F /* TestTools.h */; settings = {ATTRIBUTES = (Public, ); }; };
CDF18EF7B43D29D705F3FCDD /* TestAuthenticationTokenWallet.swift in Sources */ = {isa = PBXBuildFile; fileRef = 791B050D2D078864251AB3F2 /* TestAuthenticationTokenWallet.swift */; };
D8D8E4F13BCAEEF3BFEB564F /* TestURLHoster.swift in Sources */ = {isa = PBXBuildFile; fileRef = B26F9D497DC3FEC7192A188F /* TestURLHoster.swift */; };
E9F7C901C033B4975EA0AB2A /* Fuzzer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 03A8D4BE357D16D0721EE967 /* Fuzzer.swift */; };
Expand Down Expand Up @@ -100,7 +99,6 @@
BCFB16AD8A9E8D19987885E4 /* TestGraphRequestFactory.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestGraphRequestFactory.swift; sourceTree = "<group>"; };
C0C7B46D8CAABDBF309B458A /* TestAccessTokenWallet.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestAccessTokenWallet.swift; sourceTree = "<group>"; };
C1261F972AA29EAF48DA1D6B /* TestSDKError.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestSDKError.swift; sourceTree = "<group>"; };
CC38C544BAC3F3485C5F699F /* TestTools.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TestTools.h; sourceTree = "<group>"; };
CEDC22C4008A0E09368CF757 /* SampleError.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SampleError.swift; sourceTree = "<group>"; };
D07160C9DDB965A64C22AE60 /* TestGraphRequestConnectionFactory.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestGraphRequestConnectionFactory.swift; sourceTree = "<group>"; };
D44853480B9144B4E2A10493 /* TestInternalUtility.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestInternalUtility.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -160,7 +158,6 @@
8640C198FCE46662467AD22C /* TestSessionProvider.swift */,
BCFA80AADB26410AC60714D8 /* TestSettings.swift */,
5EADCEC319126E782252276B /* TestSKAdNetworkReporter.swift */,
CC38C544BAC3F3485C5F699F /* TestTools.h */,
B26F9D497DC3FEC7192A188F /* TestURLHoster.swift */,
B965B179D2246C48C0EF89B6 /* TestURLOpener.swift */,
E4BAFA46C11FE8AD599E3549 /* TestWindowFinder.swift */,
Expand Down Expand Up @@ -200,24 +197,12 @@
};
/* End PBXGroup section */

/* Begin PBXHeadersBuildPhase section */
8DB9EAC958C8DBE41CFBE228 /* Headers */ = {
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
CD78B55C79B11804946E08EE /* TestTools.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXHeadersBuildPhase section */

/* Begin PBXNativeTarget section */
7EE1BFF550650C49854D563A /* TestTools */ = {
isa = PBXNativeTarget;
buildConfigurationList = 8484440B93FEF66A21A7D2E1 /* Build configuration list for PBXNativeTarget "TestTools" */;
buildPhases = (
DC1ECA2D21D9A8B0E51DB831 /* Run Swiftlint */,
8DB9EAC958C8DBE41CFBE228 /* Headers */,
514FB552E0988BBC0743E3FC /* Sources */,
);
buildRules = (
Expand Down
2 changes: 2 additions & 0 deletions TestTools/TestTools/SampleError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* LICENSE file in the root directory of this source tree.
*/

import Foundation

public struct SampleError: Error, Equatable {
private let uuid = UUID()

Expand Down
1 change: 1 addition & 0 deletions TestTools/TestTools/TestBridgeAPIRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* LICENSE file in the root directory of this source tree.
*/

import FBSDKCoreKit
import Foundation

@objcMembers
Expand Down
1 change: 1 addition & 0 deletions TestTools/TestTools/TestBridgeAPIRequestOpener.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* LICENSE file in the root directory of this source tree.
*/

import FBSDKCoreKit
import Foundation

@objcMembers
Expand Down
1 change: 1 addition & 0 deletions TestTools/TestTools/TestErrorFactory.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* LICENSE file in the root directory of this source tree.
*/

import FBSDKCoreKit
import Foundation

@objcMembers
Expand Down
1 change: 1 addition & 0 deletions TestTools/TestTools/TestSettings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* LICENSE file in the root directory of this source tree.
*/

import FBSDKCoreKit
import Foundation

@objcMembers
Expand Down
9 changes: 0 additions & 9 deletions TestTools/TestTools/TestTools.h

This file was deleted.

1 change: 0 additions & 1 deletion TestTools/project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ targets:
platform: iOS
sources:
- path: TestTools
headerVisibility: public
excludes:
- Info.plist
dependencies:
Expand Down

0 comments on commit 090b00c

Please sign in to comment.