Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #import <Foundation/Foundation.h> | 5 #import <Foundation/Foundation.h> |
| 6 #include <asl.h> | 6 #include <asl.h> |
| 7 #include <libgen.h> | 7 #include <libgen.h> |
| 8 #include <stdarg.h> | 8 #include <stdarg.h> |
| 9 #include <stdio.h> | 9 #include <stdio.h> |
| 10 | 10 |
| 11 // An executable (iossim) that runs an app in the iOS Simulator. | 11 // An executable (iossim) that runs an app in the iOS Simulator. |
| 12 // Run 'iossim -h' for usage information. | 12 // Run 'iossim -h' for usage information. |
| 13 // | 13 // |
| 14 // For best results, the iOS Simulator application should not be running when | 14 // For best results, the iOS Simulator application should not be running when |
| 15 // iossim is invoked. | 15 // iossim is invoked. |
| 16 // | 16 // |
| 17 // Headers for the iPhoneSimulatorRemoteClient framework used in this tool are | 17 // Headers for iPhoneSimulatorRemoteClient and other frameworks used in this |
| 18 // generated by class-dump, via GYP. | 18 // tool are generated by class-dump, via GYP. |
| 19 // (class-dump is available at http://www.codethecode.com/projects/class-dump/) | 19 // (class-dump is available at http://www.codethecode.com/projects/class-dump/) |
| 20 // | 20 // |
| 21 // However, there are some forward declarations required to get things to | 21 // However, there are some forward declarations required to get things to |
| 22 // compile. Also, the DTiPhoneSimulatorSessionDelegate protocol is referenced | 22 // compile. |
| 23 // by the iPhoneSimulatorRemoteClient framework, but not defined in the object | |
| 24 // file, so it must be defined here before importing the generated | |
| 25 // iPhoneSimulatorRemoteClient.h file. | |
| 26 | 23 |
| 24 #if defined(XCODE_6) | |
| 25 @class DVTStackBacktrace; | |
| 26 #import "DVTFoundation.h" | |
| 27 #endif | |
| 28 | |
| 29 @protocol OS_dispatch_queue | |
| 30 @end | |
| 31 @protocol OS_dispatch_source | |
| 32 @end | |
| 33 #if defined(XCODE_6) | |
| 34 @protocol OS_xpc_object | |
| 35 @end | |
| 36 @protocol SimBridge; | |
| 37 @class SimDeviceSet; | |
| 38 @class SimDeviceType; | |
| 39 @class SimRuntime; | |
| 40 @class SimServiceConnectionManager; | |
| 41 #import "CoreSimulator.h" | |
| 42 #endif | |
| 43 | |
| 44 @interface DVTPlatform : NSObject | |
| 45 + (BOOL)loadAllPlatformsReturningError:(id*)arg1; | |
| 46 @end | |
| 27 @class DTiPhoneSimulatorApplicationSpecifier; | 47 @class DTiPhoneSimulatorApplicationSpecifier; |
| 28 @class DTiPhoneSimulatorSession; | 48 @class DTiPhoneSimulatorSession; |
| 29 @class DTiPhoneSimulatorSessionConfig; | 49 @class DTiPhoneSimulatorSessionConfig; |
| 30 @class DTiPhoneSimulatorSystemRoot; | 50 @class DTiPhoneSimulatorSystemRoot; |
| 51 @class DVTConfinementServiceConnection; | |
| 52 @class DVTDispatchLock; | |
| 31 @class DVTiPhoneSimulatorMessenger; | 53 @class DVTiPhoneSimulatorMessenger; |
| 32 | 54 @class DVTNotificationToken; |
| 33 @interface DVTPlatform : NSObject | |
| 34 + (BOOL)loadAllPlatformsReturningError:(id*)arg1; | |
| 35 @end | |
| 36 | |
| 37 @protocol OS_dispatch_source | |
| 38 @end | |
| 39 @protocol OS_dispatch_queue | |
| 40 @end | |
| 41 @class DVTDispatchLock; | |
| 42 @class DVTConfinementServiceConnection; | |
| 43 @class DVTTask; | 55 @class DVTTask; |
| 44 | 56 // The DTiPhoneSimulatorSessionDelegate protocol is referenced |
| 57 // by the iPhoneSimulatorRemoteClient framework, but not defined in the object | |
| 58 // file, so it must be defined here before importing the generated | |
| 59 // iPhoneSimulatorRemoteClient.h file. | |
| 45 @protocol DTiPhoneSimulatorSessionDelegate | 60 @protocol DTiPhoneSimulatorSessionDelegate |
|
justincohen
2014/06/13 13:36:07
Should we fix this as well, and actually pull this
lliabraa
2014/06/13 14:03:44
I'm not sure how. I've class-dumped every framewor
| |
| 46 - (void)session:(DTiPhoneSimulatorSession*)session | 61 - (void)session:(DTiPhoneSimulatorSession*)session |
| 47 didEndWithError:(NSError*)error; | 62 didEndWithError:(NSError*)error; |
| 48 - (void)session:(DTiPhoneSimulatorSession*)session | 63 - (void)session:(DTiPhoneSimulatorSession*)session |
| 49 didStart:(BOOL)started | 64 didStart:(BOOL)started |
| 50 withError:(NSError*)error; | 65 withError:(NSError*)error; |
| 51 @end | 66 @end |
| 52 | |
| 53 #import "DVTiPhoneSimulatorRemoteClient.h" | 67 #import "DVTiPhoneSimulatorRemoteClient.h" |
| 54 | 68 |
| 55 // An undocumented system log key included in messages from launchd. The value | 69 // An undocumented system log key included in messages from launchd. The value |
| 56 // is the PID of the process the message is about (as opposed to launchd's PID). | 70 // is the PID of the process the message is about (as opposed to launchd's PID). |
| 57 #define ASL_KEY_REF_PID "RefPID" | 71 #define ASL_KEY_REF_PID "RefPID" |
| 58 | 72 |
| 59 namespace { | 73 namespace { |
| 60 | 74 |
| 61 // Name of environment variables that control the user's home directory in the | 75 // Name of environment variables that control the user's home directory in the |
| 62 // simulator. | 76 // simulator. |
| (...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 793 [error localizedDescription], | 807 [error localizedDescription], |
| 794 [error domain], static_cast<long int>([error code])); | 808 [error domain], static_cast<long int>([error code])); |
| 795 } | 809 } |
| 796 | 810 |
| 797 // Note that this code is only executed if the simulator fails to start | 811 // Note that this code is only executed if the simulator fails to start |
| 798 // because once the main run loop is started, only the delegate calling | 812 // because once the main run loop is started, only the delegate calling |
| 799 // exit() will end the program. | 813 // exit() will end the program. |
| 800 [pool drain]; | 814 [pool drain]; |
| 801 return kExitFailure; | 815 return kExitFailure; |
| 802 } | 816 } |
| OLD | NEW |