| 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 #include <asl.h> |
| 5 #import <Foundation/Foundation.h> | 6 #import <Foundation/Foundation.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 // |
| (...skipping 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1022 [error localizedDescription], | 1022 [error localizedDescription], |
| 1023 [error domain], static_cast<long int>([error code])); | 1023 [error domain], static_cast<long int>([error code])); |
| 1024 } | 1024 } |
| 1025 | 1025 |
| 1026 // Note that this code is only executed if the simulator fails to start | 1026 // Note that this code is only executed if the simulator fails to start |
| 1027 // because once the main run loop is started, only the delegate calling | 1027 // because once the main run loop is started, only the delegate calling |
| 1028 // exit() will end the program. | 1028 // exit() will end the program. |
| 1029 [pool drain]; | 1029 [pool drain]; |
| 1030 return kExitFailure; | 1030 return kExitFailure; |
| 1031 } | 1031 } |
| OLD | NEW |