diff options
author | Michael Lumish <mlumish@google.com> | 2015-06-01 08:50:12 -0700 |
---|---|---|
committer | Michael Lumish <mlumish@google.com> | 2015-06-01 08:50:12 -0700 |
commit | 743a157b73c8705862ed4fb1bfdd839d36e34c95 (patch) | |
tree | 4a98b7905f84090b0a12ec572e612c40dfb9621a /src | |
parent | ee066371bbc83e3fdc0dd069d191335c32b9b6db (diff) | |
parent | 1641cc93b612a880fd380c98f9dca0e5fa33cee3 (diff) |
Merge pull request #1845 from jcanizales/move-tests-off-sample
Move interop tests to new tests project
Diffstat (limited to 'src')
-rw-r--r-- | src/objective-c/examples/Sample/Podfile | 2 | ||||
-rw-r--r-- | src/objective-c/examples/Sample/Sample.xcodeproj/project.pbxproj | 4 | ||||
-rw-r--r-- | src/objective-c/generated_libraries/RemoteTestClient/Empty.pbobjc.h (renamed from src/objective-c/examples/Sample/RemoteTestClient/Empty.pbobjc.h) | 0 | ||||
-rw-r--r-- | src/objective-c/generated_libraries/RemoteTestClient/Empty.pbobjc.m (renamed from src/objective-c/examples/Sample/RemoteTestClient/Empty.pbobjc.m) | 0 | ||||
-rw-r--r-- | src/objective-c/generated_libraries/RemoteTestClient/Messages.pbobjc.h (renamed from src/objective-c/examples/Sample/RemoteTestClient/Messages.pbobjc.h) | 0 | ||||
-rw-r--r-- | src/objective-c/generated_libraries/RemoteTestClient/Messages.pbobjc.m (renamed from src/objective-c/examples/Sample/RemoteTestClient/Messages.pbobjc.m) | 0 | ||||
-rw-r--r-- | src/objective-c/generated_libraries/RemoteTestClient/RemoteTest.podspec (renamed from src/objective-c/examples/Sample/RemoteTestClient/RemoteTest.podspec) | 0 | ||||
-rw-r--r-- | src/objective-c/generated_libraries/RemoteTestClient/Test.pbobjc.h (renamed from src/objective-c/examples/Sample/RemoteTestClient/Test.pbobjc.h) | 0 | ||||
-rw-r--r-- | src/objective-c/generated_libraries/RemoteTestClient/Test.pbobjc.m (renamed from src/objective-c/examples/Sample/RemoteTestClient/Test.pbobjc.m) | 0 | ||||
-rw-r--r-- | src/objective-c/generated_libraries/RemoteTestClient/Test.pbrpc.h (renamed from src/objective-c/examples/Sample/RemoteTestClient/Test.pbrpc.h) | 0 | ||||
-rw-r--r-- | src/objective-c/generated_libraries/RemoteTestClient/Test.pbrpc.m (renamed from src/objective-c/examples/Sample/RemoteTestClient/Test.pbrpc.m) | 0 | ||||
-rw-r--r-- | src/objective-c/generated_libraries/RemoteTestClient/empty.proto (renamed from src/objective-c/examples/Sample/RemoteTestClient/empty.proto) | 0 | ||||
-rw-r--r-- | src/objective-c/generated_libraries/RemoteTestClient/messages.proto (renamed from src/objective-c/examples/Sample/RemoteTestClient/messages.proto) | 0 | ||||
-rw-r--r-- | src/objective-c/generated_libraries/RemoteTestClient/test.proto (renamed from src/objective-c/examples/Sample/RemoteTestClient/test.proto) | 0 | ||||
-rw-r--r-- | src/objective-c/tests/InteropTests.m (renamed from src/objective-c/examples/Sample/SampleTests/RemoteProtoTests.m) | 14 | ||||
-rw-r--r-- | src/objective-c/tests/Podfile | 4 | ||||
-rw-r--r-- | src/objective-c/tests/Tests.xcodeproj/project.pbxproj | 4 |
17 files changed, 15 insertions, 13 deletions
diff --git a/src/objective-c/examples/Sample/Podfile b/src/objective-c/examples/Sample/Podfile index e8b78647ac..0d077387c1 100644 --- a/src/objective-c/examples/Sample/Podfile +++ b/src/objective-c/examples/Sample/Podfile @@ -4,7 +4,7 @@ platform :ios, '8.0' pod 'gRPC', :path => "../../../.." pod 'Protobuf', :git => 'https://github.com/google/protobuf.git' pod 'Route_guide', :path => "RouteGuideClient" -pod 'RemoteTest', :path => "RemoteTestClient" +pod 'RemoteTest', :path => "../../generated_libraries/RemoteTestClient" link_with 'Sample', 'SampleTests' diff --git a/src/objective-c/examples/Sample/Sample.xcodeproj/project.pbxproj b/src/objective-c/examples/Sample/Sample.xcodeproj/project.pbxproj index 17c2255b5a..877d65a701 100644 --- a/src/objective-c/examples/Sample/Sample.xcodeproj/project.pbxproj +++ b/src/objective-c/examples/Sample/Sample.xcodeproj/project.pbxproj @@ -8,7 +8,6 @@ /* Begin PBXBuildFile section */ 60BBBBB15823BBF7639D7AA9 /* libPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2DC7B7C4C0410F43B9621631 /* libPods.a */; }; - 6340F0491AE66E3300FB6A3D /* RemoteProtoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 6340F0481AE66E3300FB6A3D /* RemoteProtoTests.m */; }; 6356D1DE1AC11FE00075FBBC /* RemoteTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 6356D1DD1AC11FE00075FBBC /* RemoteTests.m */; }; 6369A2701A9322E20015FC5C /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 6369A26F1A9322E20015FC5C /* main.m */; }; 6369A2731A9322E20015FC5C /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6369A2721A9322E20015FC5C /* AppDelegate.m */; }; @@ -32,7 +31,6 @@ /* Begin PBXFileReference section */ 2DC7B7C4C0410F43B9621631 /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; }; - 6340F0481AE66E3300FB6A3D /* RemoteProtoTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RemoteProtoTests.m; sourceTree = "<group>"; }; 6356D1DD1AC11FE00075FBBC /* RemoteTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RemoteTests.m; sourceTree = "<group>"; }; 6369A26A1A9322E20015FC5C /* Sample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Sample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 6369A26E1A9322E20015FC5C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; @@ -118,7 +116,6 @@ 6369A2861A9322E20015FC5C /* SampleTests */ = { isa = PBXGroup; children = ( - 6340F0481AE66E3300FB6A3D /* RemoteProtoTests.m */, 6369A2891A9322E20015FC5C /* SampleTests.m */, 6369A2871A9322E20015FC5C /* Supporting Files */, 6356D1DD1AC11FE00075FBBC /* RemoteTests.m */, @@ -329,7 +326,6 @@ buildActionMask = 2147483647; files = ( 6369A28A1A9322E20015FC5C /* SampleTests.m in Sources */, - 6340F0491AE66E3300FB6A3D /* RemoteProtoTests.m in Sources */, 6356D1DE1AC11FE00075FBBC /* RemoteTests.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; diff --git a/src/objective-c/examples/Sample/RemoteTestClient/Empty.pbobjc.h b/src/objective-c/generated_libraries/RemoteTestClient/Empty.pbobjc.h index 809d0dde6e..809d0dde6e 100644 --- a/src/objective-c/examples/Sample/RemoteTestClient/Empty.pbobjc.h +++ b/src/objective-c/generated_libraries/RemoteTestClient/Empty.pbobjc.h diff --git a/src/objective-c/examples/Sample/RemoteTestClient/Empty.pbobjc.m b/src/objective-c/generated_libraries/RemoteTestClient/Empty.pbobjc.m index 46d481af66..46d481af66 100644 --- a/src/objective-c/examples/Sample/RemoteTestClient/Empty.pbobjc.m +++ b/src/objective-c/generated_libraries/RemoteTestClient/Empty.pbobjc.m diff --git a/src/objective-c/examples/Sample/RemoteTestClient/Messages.pbobjc.h b/src/objective-c/generated_libraries/RemoteTestClient/Messages.pbobjc.h index 5f32314175..5f32314175 100644 --- a/src/objective-c/examples/Sample/RemoteTestClient/Messages.pbobjc.h +++ b/src/objective-c/generated_libraries/RemoteTestClient/Messages.pbobjc.h diff --git a/src/objective-c/examples/Sample/RemoteTestClient/Messages.pbobjc.m b/src/objective-c/generated_libraries/RemoteTestClient/Messages.pbobjc.m index 98eb1dc87c..98eb1dc87c 100644 --- a/src/objective-c/examples/Sample/RemoteTestClient/Messages.pbobjc.m +++ b/src/objective-c/generated_libraries/RemoteTestClient/Messages.pbobjc.m diff --git a/src/objective-c/examples/Sample/RemoteTestClient/RemoteTest.podspec b/src/objective-c/generated_libraries/RemoteTestClient/RemoteTest.podspec index 36c2b509e8..36c2b509e8 100644 --- a/src/objective-c/examples/Sample/RemoteTestClient/RemoteTest.podspec +++ b/src/objective-c/generated_libraries/RemoteTestClient/RemoteTest.podspec diff --git a/src/objective-c/examples/Sample/RemoteTestClient/Test.pbobjc.h b/src/objective-c/generated_libraries/RemoteTestClient/Test.pbobjc.h index aaa0b6ce2d..aaa0b6ce2d 100644 --- a/src/objective-c/examples/Sample/RemoteTestClient/Test.pbobjc.h +++ b/src/objective-c/generated_libraries/RemoteTestClient/Test.pbobjc.h diff --git a/src/objective-c/examples/Sample/RemoteTestClient/Test.pbobjc.m b/src/objective-c/generated_libraries/RemoteTestClient/Test.pbobjc.m index 08562b828a..08562b828a 100644 --- a/src/objective-c/examples/Sample/RemoteTestClient/Test.pbobjc.m +++ b/src/objective-c/generated_libraries/RemoteTestClient/Test.pbobjc.m diff --git a/src/objective-c/examples/Sample/RemoteTestClient/Test.pbrpc.h b/src/objective-c/generated_libraries/RemoteTestClient/Test.pbrpc.h index f799c4fc92..f799c4fc92 100644 --- a/src/objective-c/examples/Sample/RemoteTestClient/Test.pbrpc.h +++ b/src/objective-c/generated_libraries/RemoteTestClient/Test.pbrpc.h diff --git a/src/objective-c/examples/Sample/RemoteTestClient/Test.pbrpc.m b/src/objective-c/generated_libraries/RemoteTestClient/Test.pbrpc.m index faba07769e..faba07769e 100644 --- a/src/objective-c/examples/Sample/RemoteTestClient/Test.pbrpc.m +++ b/src/objective-c/generated_libraries/RemoteTestClient/Test.pbrpc.m diff --git a/src/objective-c/examples/Sample/RemoteTestClient/empty.proto b/src/objective-c/generated_libraries/RemoteTestClient/empty.proto index a678048289..a678048289 100644 --- a/src/objective-c/examples/Sample/RemoteTestClient/empty.proto +++ b/src/objective-c/generated_libraries/RemoteTestClient/empty.proto diff --git a/src/objective-c/examples/Sample/RemoteTestClient/messages.proto b/src/objective-c/generated_libraries/RemoteTestClient/messages.proto index 85d93c2ff9..85d93c2ff9 100644 --- a/src/objective-c/examples/Sample/RemoteTestClient/messages.proto +++ b/src/objective-c/generated_libraries/RemoteTestClient/messages.proto diff --git a/src/objective-c/examples/Sample/RemoteTestClient/test.proto b/src/objective-c/generated_libraries/RemoteTestClient/test.proto index 2f5a5489b3..2f5a5489b3 100644 --- a/src/objective-c/examples/Sample/RemoteTestClient/test.proto +++ b/src/objective-c/generated_libraries/RemoteTestClient/test.proto diff --git a/src/objective-c/examples/Sample/SampleTests/RemoteProtoTests.m b/src/objective-c/tests/InteropTests.m index 8e0e11d23d..0a512c17dc 100644 --- a/src/objective-c/examples/Sample/SampleTests/RemoteProtoTests.m +++ b/src/objective-c/tests/InteropTests.m @@ -76,10 +76,10 @@ } @end -@interface RemoteProtoTests : XCTestCase +@interface InteropTests : XCTestCase @end -@implementation RemoteProtoTests { +@implementation InteropTests { RMTTestService *_service; } @@ -192,7 +192,7 @@ [expectation fulfill]; } }]; - + [self waitForExpectationsWithTimeout:4 handler:nil]; } @@ -230,7 +230,7 @@ [requestsBuffer writesFinishedWithError:nil]; } } - + if (done) { XCTAssertEqual(index, 4, @"Received %i responses instead of 4.", index); [expectation fulfill]; @@ -283,9 +283,9 @@ [requestsBuffer writeValue:request]; __block ProtoRPC *call = [_service RPCToFullDuplexCallWithRequestsWriter:requestsBuffer - handler:^(BOOL done, - RMTStreamingOutputCallResponse *response, - NSError *error) { + handler:^(BOOL done, + RMTStreamingOutputCallResponse *response, + NSError *error) { if (receivedResponse) { XCTAssert(done, @"Unexpected extra response %@", response); XCTAssertEqual(error.code, GRPC_STATUS_CANCELLED); diff --git a/src/objective-c/tests/Podfile b/src/objective-c/tests/Podfile index 6df063a380..d8fea6edb1 100644 --- a/src/objective-c/tests/Podfile +++ b/src/objective-c/tests/Podfile @@ -1,7 +1,9 @@ source 'https://github.com/CocoaPods/Specs.git' platform :ios, '8.0' -pod 'gRPC/RxLibrary', :path => "../../.." +pod 'gRPC', :path => "../../.." +pod 'Protobuf', :git => 'https://github.com/google/protobuf.git' +pod 'RemoteTest', :path => "../generated_libraries/RemoteTestClient" link_with 'AllTests' diff --git a/src/objective-c/tests/Tests.xcodeproj/project.pbxproj b/src/objective-c/tests/Tests.xcodeproj/project.pbxproj index 80059b7cbe..3a98fec11a 100644 --- a/src/objective-c/tests/Tests.xcodeproj/project.pbxproj +++ b/src/objective-c/tests/Tests.xcodeproj/project.pbxproj @@ -10,6 +10,7 @@ 63423F4A1B150A5F006CF63C /* libTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 635697C71B14FC11007A7283 /* libTests.a */; }; 63423F511B151B77006CF63C /* RxLibraryUnitTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 63423F501B151B77006CF63C /* RxLibraryUnitTests.m */; }; 635697CD1B14FC11007A7283 /* Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = 635697CC1B14FC11007A7283 /* Tests.m */; }; + 635ED2EC1B1A3BC400FDE5C3 /* InteropTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 635ED2EB1B1A3BC400FDE5C3 /* InteropTests.m */; }; 7D8A186224D39101F90230F6 /* libPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 35F2B6BF3BAE8F0DC4AFD76E /* libPods.a */; }; /* End PBXBuildFile section */ @@ -43,6 +44,7 @@ 635697C71B14FC11007A7283 /* libTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libTests.a; sourceTree = BUILT_PRODUCTS_DIR; }; 635697CC1B14FC11007A7283 /* Tests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Tests.m; sourceTree = "<group>"; }; 635697D81B14FC11007A7283 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; + 635ED2EB1B1A3BC400FDE5C3 /* InteropTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = InteropTests.m; sourceTree = "<group>"; }; FF7B5489BCFE40111D768DD0 /* Pods.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.debug.xcconfig; path = "Pods/Target Support Files/Pods/Pods.debug.xcconfig"; sourceTree = "<group>"; }; /* End PBXFileReference section */ @@ -105,6 +107,7 @@ 635697C91B14FC11007A7283 /* Tests */ = { isa = PBXGroup; children = ( + 635ED2EB1B1A3BC400FDE5C3 /* InteropTests.m */, 63423F501B151B77006CF63C /* RxLibraryUnitTests.m */, 635697CC1B14FC11007A7283 /* Tests.m */, 635697D71B14FC11007A7283 /* Supporting Files */, @@ -244,6 +247,7 @@ buildActionMask = 2147483647; files = ( 63423F511B151B77006CF63C /* RxLibraryUnitTests.m in Sources */, + 635ED2EC1B1A3BC400FDE5C3 /* InteropTests.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; |