summaryrefslogtreecommitdiff
path: root/cpp/test/ios/testSuiteApp/Classes/TestUtil.h
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2017-04-05 10:03:28 +0200
committerBenoit Foucher <benoit@zeroc.com>2017-04-05 10:03:28 +0200
commitdbf9c4209352f355a67a8400aab1659272c80703 (patch)
tree002b3141a47bf8ce0581ecbc6a5349fe62b40574 /cpp/test/ios/testSuiteApp/Classes/TestUtil.h
parentFix (ICE-7742) - Ice/faultTolerance Python 3.6 crash when using pip packages (diff)
downloadice-dbf9c4209352f355a67a8400aab1659272c80703.tar.bz2
ice-dbf9c4209352f355a67a8400aab1659272c80703.tar.xz
ice-dbf9c4209352f355a67a8400aab1659272c80703.zip
Fixed C++/Objective-C controllerApp projects to no longer reference armv7, removed obsolete testSuiteApp
Diffstat (limited to 'cpp/test/ios/testSuiteApp/Classes/TestUtil.h')
-rw-r--r--cpp/test/ios/testSuiteApp/Classes/TestUtil.h100
1 files changed, 0 insertions, 100 deletions
diff --git a/cpp/test/ios/testSuiteApp/Classes/TestUtil.h b/cpp/test/ios/testSuiteApp/Classes/TestUtil.h
deleted file mode 100644
index e670b53a739..00000000000
--- a/cpp/test/ios/testSuiteApp/Classes/TestUtil.h
+++ /dev/null
@@ -1,100 +0,0 @@
-// **********************************************************************
-//
-// Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
-//
-// This copy of Ice is licensed to you under the terms described in the
-// ICE_LICENSE file included in this distribution.
-//
-// **********************************************************************
-
-#ifndef TEST_UTIL_H
-#define TEST_UTIL_H
-
-#include <TestHelper.h>
-#include <UIKit/UIKit.h>
-#include <Foundation/NSString.h>
-
-#include <vector>
-
-@interface TestSuite : NSObject
-{
-@private
- NSString* testSuiteId;
- NSArray* testCases;
-}
-@property (nonatomic, retain) NSString* testSuiteId;
-@property (nonatomic, retain) NSArray* testCases;
-+(id) testSuite:(NSString*)testSuiteId testCases:(NSArray*)testCases;
--(BOOL) isIn:(NSArray*)tests;
-@end
-
-@interface TestCase : NSObject
-{
-@private
- NSString* name;
- NSString* client;
- NSString* server;
- NSArray* args;
-}
-+(id) testCase:(NSString*)name client:(NSString*)client server:(NSString*)server args:(NSArray*)args;
-@property (nonatomic, retain) NSString* name;
-@property (nonatomic, retain) NSString* client;
-@property (nonatomic, retain) NSString* server;
-@property (nonatomic, retain) NSArray* args;
-@end
-
-typedef int (*MAIN_ENTRY_POINT)(int argc, char** argv, Test::MainHelper* helper);
-typedef int (*SHUTDOWN_ENTRY_POINT)();
-
-enum TestType { TestTypeClient, TestTypeServer };
-
-struct TestConfig
-{
- std::string protocol;
- std::vector<std::string> args;
-};
-
-class MainHelperI : public Test::MainHelper
-{
-public:
-
- MainHelperI(const std::string&, const std::string&, TestType, TestConfig, id, SEL, SEL);
- virtual ~MainHelperI();
-
- virtual void run();
- virtual void serverReady();
- virtual void shutdown();
- virtual void waitForCompleted() { };
- virtual bool redirect();
- virtual void print(const std::string&);
-
- int
- status()
- {
- return _status;
- }
-
-private:
-
- void
- completed(int status)
- {
- _completed = true;
- _status = status;
- }
-
- std::string _name;
- std::string _libName;
- TestType _type;
- TestConfig _config;
- CFBundleRef _handle;
- SHUTDOWN_ENTRY_POINT _dllTestShutdown;
- bool _completed;
- int _status;
-
- id _target;
- SEL _ready;
- SEL _output;
-};
-
-#endif