Skip to content

Commit

Permalink
Fix imports in UIExplorerUnitTests
Browse files Browse the repository at this point in the history
Reviewed By: bestander

Differential Revision: D4231271

fbshipit-source-id: 84f903f6b14256ed1958ad1800f128133590a3dc
  • Loading branch information
javache authored and Facebook Github Bot committed Nov 24, 2016
1 parent bd524bd commit 4390927
Show file tree
Hide file tree
Showing 31 changed files with 186 additions and 121 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@

#import <XCTest/XCTest.h>

#import "RCTAssert.h"
#import "RCTLog.h"
#import "RCTBridge.h"
#import <React/RCTAssert.h>
#import <React/RCTBridge.h>
#import <React/RCTLog.h>

@interface RCTLoggingTests : XCTestCase

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,10 @@
#import <UIKit/UIKit.h>
#import <XCTest/XCTest.h>

#import "RCTAssert.h"

#import "RCTEventDispatcher.h"
#import "RCTRootView.h"
#import "RCTRootViewDelegate.h"

#import <RCTTest/RCTTestRunner.h>
#import <React/RCTEventDispatcher.h>
#import <React/RCTRootView.h>
#import <React/RCTRootViewDelegate.h>

#define RCT_TEST_DATA_CONFIGURATION_BLOCK(appName, testType, input, block) \
- (void)test##appName##_##testType##_##input \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@

#import <UIKit/UIKit.h>
#import <XCTest/XCTest.h>
#import "RCTUIManager.h"
#import "UIView+React.h"

#import <React/RCTUIManager.h>
#import <React/UIView+React.h>

@interface RCTUIManager (Testing)

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

#import <RCTTest/RCTTestRunner.h>

#import "RCTAssert.h"

#define RCT_TEST(name) \
- (void)test##name \
{ \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@

#import <RCTTest/RCTTestRunner.h>

#import "RCTAssert.h"
#import "RCTRedBox.h"
#import "RCTRootView.h"

@interface UIExplorerSnapshotTests : XCTestCase
{
RCTTestRunner *_runner;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* under the License.
*/

#import <React/OCMRecorder.h>
#import <OCMock/OCMRecorder.h>


@interface OCMStubRecorder : OCMRecorder
Expand Down
10 changes: 5 additions & 5 deletions Examples/UIExplorer/UIExplorerUnitTests/RCTAllocationTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
#import <Foundation/Foundation.h>
#import <XCTest/XCTest.h>

#import "RCTBridge.h"
#import "RCTBridge+Private.h"
#import "RCTJSCExecutor.h"
#import "RCTModuleMethod.h"
#import "RCTRootView.h"
#import <React/RCTBridge+Private.h>
#import <React/RCTBridge.h>
#import <React/RCTJSCExecutor.h>
#import <React/RCTModuleMethod.h>
#import <React/RCTRootView.h>

#define RUN_RUNLOOP_WHILE(CONDITION) \
{ \
Expand Down
10 changes: 5 additions & 5 deletions Examples/UIExplorer/UIExplorerUnitTests/RCTBridgeTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
#import <Foundation/Foundation.h>
#import <XCTest/XCTest.h>

#import "RCTBridge.h"
#import "RCTBridge+Private.h"
#import "RCTBridgeModule.h"
#import "RCTJavaScriptExecutor.h"
#import "RCTUtils.h"
#import <React/RCTBridge+Private.h>
#import <React/RCTBridge.h>
#import <React/RCTBridgeModule.h>
#import <React/RCTJavaScriptExecutor.h>
#import <React/RCTUtils.h>

#define RUN_RUNLOOP_WHILE(CONDITION) \
{ \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@
*/
#import <XCTest/XCTest.h>

#import "RCTBundleURLProvider.h"
#import "RCTUtils.h"

#import <React/RCTBundleURLProvider.h>
#import <React/RCTUtils.h>

static NSString *const testFile = @"test.jsbundle";
static NSString *const mainBundle = @"main.jsbundle";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@

#import <XCTest/XCTest.h>

#import "RCTUIManager.h"
#import "RCTViewManager.h"
#import "RCTView.h"
#import <React/RCTUIManager.h>
#import <React/RCTView.h>
#import <React/RCTViewManager.h>

#define RUN_RUNLOOP_WHILE(CONDITION) \
{ \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
#import <XCTest/XCTest.h>

#import <React/RCTConvert.h>

#import "RCTUtils.h"
#import <React/RCTUtils.h>

@interface RCTConvert_NSURLTests : XCTestCase

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
#import <XCTest/XCTest.h>

#import <OCMock/OCMock.h>
#import "RCTEventDispatcher.h"
#import "RCTBridge+Private.h"

#import <React/RCTBridge+Private.h>
#import <React/RCTEventDispatcher.h>

@interface RCTTestEvent : NSObject <RCTEvent>
@property (atomic, assign, readwrite) BOOL canCoalesce;
Expand Down
5 changes: 2 additions & 3 deletions Examples/UIExplorer/UIExplorerUnitTests/RCTFontTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

#import <CoreText/CoreText.h>
#import <XCTest/XCTest.h>

#import "RCTFont.h"

#import <CoreText/CoreText.h>
#import <React/RCTFont.h>

@interface RCTFontTests : XCTestCase

Expand Down
5 changes: 3 additions & 2 deletions Examples/UIExplorer/UIExplorerUnitTests/RCTGzipTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
*/

#import <XCTest/XCTest.h>
#import "RCTUtils.h"
#import "RCTNetworking.h"

#import <React/RCTNetworking.h>
#import <React/RCTUtils.h>

#define RUN_RUNLOOP_WHILE(CONDITION) \
{ \
Expand Down
5 changes: 3 additions & 2 deletions Examples/UIExplorer/UIExplorerUnitTests/RCTImageLoaderTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@

#import <XCTest/XCTest.h>

#import "RCTBridge.h"
#import "RCTImageLoader.h"
#import <React/RCTBridge.h>
#import <React/RCTImageLoader.h>

#import "RCTImageLoaderHelpers.h"

unsigned char blackGIF[] = {
Expand Down
3 changes: 2 additions & 1 deletion Examples/UIExplorer/UIExplorerUnitTests/RCTImageUtilTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
#import <Foundation/Foundation.h>
#import <UIKit/UIView.h>
#import <XCTest/XCTest.h>
#import "RCTImageUtils.h"

#import <RCTImage/RCTImageUtils.h>

#define RCTAssertEqualPoints(a, b) { \
XCTAssertEqual(a.x, b.x); \
Expand Down
4 changes: 2 additions & 2 deletions Examples/UIExplorer/UIExplorerUnitTests/RCTJSCExecutorTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

#import <XCTest/XCTest.h>

#import "RCTJSCExecutor.h"
#import "RCTUtils.h"
#import <React/RCTJSCExecutor.h>
#import <React/RCTUtils.h>

@interface RCTJSCExecutorTests : XCTestCase

Expand Down
5 changes: 3 additions & 2 deletions Examples/UIExplorer/UIExplorerUnitTests/RCTJSONTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
*/

#import <XCTest/XCTest.h>
#import "RCTUtils.h"

#import <React/RCTUtils.h>

@interface RCTJSONTests : XCTestCase

Expand Down Expand Up @@ -53,7 +54,7 @@ - (void)testEncodingNSError
NSString *jsonString = RCTJSONStringify(jsonObject, NULL);
NSDictionary<NSString *, id> *json = RCTJSONParse(jsonString, NULL);
XCTAssertEqualObjects(json[@"code"], @"EDOMAIN68");
XCTAssertEqualObjects(json[@"message"], @"The operation couldn’t be completed. (domain error 68.)");
XCTAssertEqualObjects(json[@"message"], @"The operation couldn\u2019t be completed. (domain error 68.)");
XCTAssertEqualObjects(json[@"domain"], @"domain");
XCTAssertEqualObjects(json[@"userInfo"][@"NSUnderlyingError"][@"code"], @"421");
XCTAssertEqualObjects(json[@"userInfo"][@"NSUnderlyingError"][@"message"], @"underlying error");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#import <UIKit/UIKit.h>
#import <XCTest/XCTest.h>

#import "RCTModuleMethod.h"
#import <React/RCTModuleMethod.h>

@interface RCTMethodArgumentTests : XCTestCase

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
#import <Foundation/Foundation.h>
#import <XCTest/XCTest.h>

#import "RCTBridge.h"
#import "RCTBridge+Private.h"
#import "RCTBridgeModule.h"
#import "RCTUtils.h"
#import "RCTUIManager.h"
#import "RCTViewManager.h"
#import "RCTJavaScriptExecutor.h"
#import <React/RCTBridge+Private.h>
#import <React/RCTBridge.h>
#import <React/RCTBridgeModule.h>
#import <React/RCTJavaScriptExecutor.h>
#import <React/RCTUIManager.h>
#import <React/RCTUtils.h>
#import <React/RCTViewManager.h>

#define RUN_RUNLOOP_WHILE(CONDITION) \
{ \
Expand Down
10 changes: 5 additions & 5 deletions Examples/UIExplorer/UIExplorerUnitTests/RCTModuleInitTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
#import <Foundation/Foundation.h>
#import <XCTest/XCTest.h>

#import "RCTBridge.h"
#import "RCTBridge+Private.h"
#import "RCTBridgeModule.h"
#import "RCTUtils.h"
#import "RCTJavaScriptExecutor.h"
#import <React/RCTBridge+Private.h>
#import <React/RCTBridge.h>
#import <React/RCTBridgeModule.h>
#import <React/RCTJavaScriptExecutor.h>
#import <React/RCTUtils.h>

#define RUN_RUNLOOP_WHILE(CONDITION) \
{ \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
#import <UIKit/UIKit.h>
#import <XCTest/XCTest.h>

#import "RCTBridgeModule.h"
#import "RCTModuleMethod.h"
#import "RCTLog.h"
#import <React/RCTBridgeModule.h>
#import <React/RCTLog.h>
#import <React/RCTModuleMethod.h>

static BOOL RCTLogsError(void (^block)(void))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
*/

#import <XCTest/XCTest.h>
#import "RCTUtils.h"
#import "RCTMultipartStreamReader.h"

#import <React/RCTMultipartStreamReader.h>
#import <React/RCTUtils.h>

@interface RCTMultipartStreamReaderTests : XCTestCase

Expand Down
4 changes: 2 additions & 2 deletions Examples/UIExplorer/UIExplorerUnitTests/RCTShadowViewTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

#import <XCTest/XCTest.h>

#import "RCTShadowView.h"
#import "RCTRootShadowView.h"
#import <React/RCTRootShadowView.h>
#import <React/RCTShadowView.h>


@interface RCTShadowViewTests : XCTestCase
Expand Down
4 changes: 2 additions & 2 deletions Examples/UIExplorer/UIExplorerUnitTests/RCTUIManagerTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

#import <XCTest/XCTest.h>

#import "RCTUIManager.h"
#import "UIView+React.h"
#import <React/RCTUIManager.h>
#import <React/UIView+React.h>

@interface RCTUIManager (Testing)

Expand Down
3 changes: 2 additions & 1 deletion Examples/UIExplorer/UIExplorerUnitTests/RCTURLUtilsTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
*/

#import <XCTest/XCTest.h>
#import "RCTUtils.h"

#import <React/RCTUtils.h>

@interface RCTURLUtilsTests : XCTestCase

Expand Down
Loading

0 comments on commit 4390927

Please sign in to comment.