aboutsummaryrefslogtreecommitdiff
path: root/xcode/OLMKitTests
diff options
context:
space:
mode:
authorChris Ballinger <chrisballinger@gmail.com>2016-04-08 17:24:41 -0700
committerChris Ballinger <chrisballinger@gmail.com>2016-04-08 17:26:12 -0700
commit719eb543a8d08c4f536ea7933ffb3af0a8553e87 (patch)
tree0d8b02e2a1e2e5fd7882a6c20fb0396b47ca5c6a /xcode/OLMKitTests
parent989056e0752e949d02a57d8f93927582f297fbfb (diff)
Xcode, podspec, wrapper
Diffstat (limited to 'xcode/OLMKitTests')
-rw-r--r--xcode/OLMKitTests/Info.plist24
-rw-r--r--xcode/OLMKitTests/OLMKitTests.m41
2 files changed, 65 insertions, 0 deletions
diff --git a/xcode/OLMKitTests/Info.plist b/xcode/OLMKitTests/Info.plist
new file mode 100644
index 0000000..ba72822
--- /dev/null
+++ b/xcode/OLMKitTests/Info.plist
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>en</string>
+ <key>CFBundleExecutable</key>
+ <string>$(EXECUTABLE_NAME)</string>
+ <key>CFBundleIdentifier</key>
+ <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>$(PRODUCT_NAME)</string>
+ <key>CFBundlePackageType</key>
+ <string>BNDL</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.0</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>1</string>
+</dict>
+</plist>
diff --git a/xcode/OLMKitTests/OLMKitTests.m b/xcode/OLMKitTests/OLMKitTests.m
new file mode 100644
index 0000000..944d11c
--- /dev/null
+++ b/xcode/OLMKitTests/OLMKitTests.m
@@ -0,0 +1,41 @@
+//
+// OLMKitTests.m
+// OLMKitTests
+//
+// Created by Chris Ballinger on 4/8/16.
+//
+//
+
+#import <XCTest/XCTest.h>
+@import OLMKit;
+
+@interface OLMKitTests : XCTestCase
+
+@end
+
+@implementation OLMKitTests
+
+- (void)setUp {
+ [super setUp];
+ // Put setup code here. This method is called before the invocation of each test method in the class.
+}
+
+- (void)tearDown {
+ // Put teardown code here. This method is called after the invocation of each test method in the class.
+ [super tearDown];
+}
+
+- (void)testExample {
+ // This is an example of a functional test case.
+ // Use XCTAssert and related functions to verify your tests produce the correct results.
+ OLMAccount *alice = [[OLMAccount alloc] initNewAccount];
+ OLMAccount *bob = [[OLMAccount alloc] initNewAccount];
+ [bob generateOneTimeKeys:5];
+ NSDictionary *identityKeys = bob.identityKeys;
+ NSDictionary *oneTimeKeys = bob.oneTimeKeys;
+ NSParameterAssert(identityKeys != nil);
+ NSParameterAssert(oneTimeKeys != nil);
+}
+
+
+@end