Skip to content

Commit

Permalink
OpenID RP Tests for Code
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamDenniss committed Mar 26, 2017
1 parent beb4b67 commit 05f6853
Show file tree
Hide file tree
Showing 3 changed files with 342 additions and 0 deletions.
16 changes: 16 additions & 0 deletions AppAuth.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,12 @@
34A663321E871DD40060B664 /* OIDIDToken.m in Sources */ = {isa = PBXBuildFile; fileRef = 34A663271E871DD40060B664 /* OIDIDToken.m */; };
34A663331E871DD40060B664 /* OIDIDToken.m in Sources */ = {isa = PBXBuildFile; fileRef = 34A663271E871DD40060B664 /* OIDIDToken.m */; };
34A663341E871DD40060B664 /* OIDIDToken.m in Sources */ = {isa = PBXBuildFile; fileRef = 34A663271E871DD40060B664 /* OIDIDToken.m */; };
34A6638B1E8865090060B664 /* OIDRPProfileCode.m in Sources */ = {isa = PBXBuildFile; fileRef = 34A6638A1E8865090060B664 /* OIDRPProfileCode.m */; };
34A6638C1E8865090060B664 /* OIDRPProfileCode.m in Sources */ = {isa = PBXBuildFile; fileRef = 34A6638A1E8865090060B664 /* OIDRPProfileCode.m */; };
34A6638D1E8865090060B664 /* OIDRPProfileCode.m in Sources */ = {isa = PBXBuildFile; fileRef = 34A6638A1E8865090060B664 /* OIDRPProfileCode.m */; };
34A6638E1E8865090060B664 /* OIDRPProfileCode.m in Sources */ = {isa = PBXBuildFile; fileRef = 34A6638A1E8865090060B664 /* OIDRPProfileCode.m */; };
34A6638F1E8865090060B664 /* OIDRPProfileCode.m in Sources */ = {isa = PBXBuildFile; fileRef = 34A6638A1E8865090060B664 /* OIDRPProfileCode.m */; };
34A663901E8865090060B664 /* OIDRPProfileCode.m in Sources */ = {isa = PBXBuildFile; fileRef = 34A6638A1E8865090060B664 /* OIDRPProfileCode.m */; };
34D5EC451E6D1AD900814354 /* OIDSwiftTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 34D5EC441E6D1AD900814354 /* OIDSwiftTests.swift */; };
34FEA6AE1DB6E083005C9212 /* OIDLoopbackHTTPServer.h in Headers */ = {isa = PBXBuildFile; fileRef = 34FEA6AC1DB6E083005C9212 /* OIDLoopbackHTTPServer.h */; };
34FEA6AF1DB6E083005C9212 /* OIDLoopbackHTTPServer.m in Sources */ = {isa = PBXBuildFile; fileRef = 34FEA6AD1DB6E083005C9212 /* OIDLoopbackHTTPServer.m */; };
Expand Down Expand Up @@ -545,6 +551,8 @@
347423F61E7F4B5600D3E6D6 /* libAppAuth-watchOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libAppAuth-watchOS.a"; sourceTree = BUILT_PRODUCTS_DIR; };
34A663261E871DD40060B664 /* OIDIDToken.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OIDIDToken.h; sourceTree = "<group>"; };
34A663271E871DD40060B664 /* OIDIDToken.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OIDIDToken.m; sourceTree = "<group>"; };
34A6638A1E8865090060B664 /* OIDRPProfileCode.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OIDRPProfileCode.m; sourceTree = "<group>"; };
34A663911E886AED0060B664 /* OIDRPProfileCode.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = OIDRPProfileCode.h; sourceTree = "<group>"; };
34D5EC431E6D1AD900814354 /* OIDAppAuthTests-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "OIDAppAuthTests-Bridging-Header.h"; sourceTree = "<group>"; };
34D5EC441E6D1AD900814354 /* OIDSwiftTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = OIDSwiftTests.swift; sourceTree = "<group>"; };
34FEA6AC1DB6E083005C9212 /* OIDLoopbackHTTPServer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OIDLoopbackHTTPServer.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -810,6 +818,8 @@
60140F821DE43BAF00DA0DC3 /* OIDRegistrationRequestTests.m */,
60140F841DE43C8C00DA0DC3 /* OIDRegistrationResponseTests.h */,
60140F851DE43CC700DA0DC3 /* OIDRegistrationResponseTests.m */,
34A663911E886AED0060B664 /* OIDRPProfileCode.h */,
34A6638A1E8865090060B664 /* OIDRPProfileCode.m */,
34D5EC441E6D1AD900814354 /* OIDSwiftTests.swift */,
34D5EC431E6D1AD900814354 /* OIDAppAuthTests-Bridging-Header.h */,
);
Expand Down Expand Up @@ -1487,6 +1497,7 @@
3417421E1C5D82D3000EF209 /* OIDServiceDiscoveryTests.m in Sources */,
3417421F1C5D82D3000EF209 /* OIDTokenRequestTests.m in Sources */,
341742181C5D82D3000EF209 /* OIDAuthorizationResponseTests.m in Sources */,
34A6638B1E8865090060B664 /* OIDRPProfileCode.m in Sources */,
341742171C5D82D3000EF209 /* OIDAuthorizationRequestTests.m in Sources */,
3417421A1C5D82D3000EF209 /* OIDGrantTypesTests.m in Sources */,
3417421B1C5D82D3000EF209 /* OIDResponseTypesTests.m in Sources */,
Expand All @@ -1511,6 +1522,7 @@
341AA50D1E7F3A9B00FCA5C6 /* OIDTokenRequestTests.m in Sources */,
341AA5091E7F3A9B00FCA5C6 /* OIDResponseTypesTests.m in Sources */,
341AA4D91E7F393500FCA5C6 /* OIDAuthorizationRequestTests.m in Sources */,
34A6638C1E8865090060B664 /* OIDRPProfileCode.m in Sources */,
341AA5101E7F3A9B00FCA5C6 /* OIDRegistrationRequestTests.m in Sources */,
341AA5111E7F3A9B00FCA5C6 /* OIDRegistrationResponseTests.m in Sources */,
341AA5081E7F3A9B00FCA5C6 /* OIDGrantTypesTests.m in Sources */,
Expand All @@ -1531,6 +1543,7 @@
341AA5001E7F3A9400FCA5C6 /* OIDTokenRequestTests.m in Sources */,
341AA4FC1E7F3A9400FCA5C6 /* OIDResponseTypesTests.m in Sources */,
341AA4F81E7F3A3000FCA5C6 /* OIDAuthorizationRequestTests.m in Sources */,
34A6638D1E8865090060B664 /* OIDRPProfileCode.m in Sources */,
341AA5031E7F3A9400FCA5C6 /* OIDRegistrationRequestTests.m in Sources */,
341AA5041E7F3A9400FCA5C6 /* OIDRegistrationResponseTests.m in Sources */,
341AA4FB1E7F3A9400FCA5C6 /* OIDGrantTypesTests.m in Sources */,
Expand Down Expand Up @@ -1614,6 +1627,7 @@
343AAA7F1E8346B400F9D36E /* OIDRegistrationRequestTests.m in Sources */,
343AAA731E8346B400F9D36E /* OIDAuthorizationRequestTests.m in Sources */,
343AAA761E8346B400F9D36E /* OIDGrantTypesTests.m in Sources */,
34A6638E1E8865090060B664 /* OIDRPProfileCode.m in Sources */,
343AAA741E8346B400F9D36E /* OIDAuthorizationResponseTests.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -1691,6 +1705,7 @@
343AAB8B1E8349CE00F9D36E /* OIDRegistrationRequestTests.m in Sources */,
343AAB7F1E8349CE00F9D36E /* OIDAuthorizationRequestTests.m in Sources */,
343AAB821E8349CE00F9D36E /* OIDGrantTypesTests.m in Sources */,
34A6638F1E8865090060B664 /* OIDRPProfileCode.m in Sources */,
343AAB801E8349CE00F9D36E /* OIDAuthorizationResponseTests.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -1745,6 +1760,7 @@
343AAB991E8349CF00F9D36E /* OIDRegistrationRequestTests.m in Sources */,
343AAB8D1E8349CF00F9D36E /* OIDAuthorizationRequestTests.m in Sources */,
343AAB901E8349CF00F9D36E /* OIDGrantTypesTests.m in Sources */,
34A663901E8865090060B664 /* OIDRPProfileCode.m in Sources */,
343AAB8E1E8349CF00F9D36E /* OIDAuthorizationResponseTests.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down
33 changes: 33 additions & 0 deletions UnitTests/OIDRPProfileCode.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*! @file OIDRPProfileCode.h
@brief AppAuth iOS SDK
@copyright
Copyright 2017 Google Inc. All Rights Reserved.
@copydetails
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

#import <XCTest/XCTest.h>

#import "OIDAuthorizationUICoordinator.h"

NS_ASSUME_NONNULL_BEGIN

@interface OIDRPProfileCode : XCTestCase

@end

@interface OIDAuthorizationUICoordinatorNonInteractive : NSObject <OIDAuthorizationUICoordinator>
@end


NS_ASSUME_NONNULL_END
Loading

0 comments on commit 05f6853

Please sign in to comment.