| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2015 The WebRTC Project Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #if defined(WEBRTC_IOS) | 11 #if defined(WEBRTC_IOS) |
| 12 | 12 |
| 13 #import <Foundation/Foundation.h> | 13 #import <Foundation/Foundation.h> |
| 14 #include <string.h> | 14 #include <string.h> |
| 15 | 15 |
| 16 #include "webrtc/base/checks.h" | 16 #include "webrtc/base/checks.h" |
| 17 #include "webrtc/typedefs.h" | 17 #include "webrtc/typedefs.h" |
| 18 #include "webrtc/sdk/objc/Framework/Classes/Common/helpers.h" | 18 #include "webrtc/sdk/objc/Framework/Classes/helpers.h" |
| 19 | 19 |
| 20 namespace webrtc { | 20 namespace webrtc { |
| 21 namespace test { | 21 namespace test { |
| 22 | 22 |
| 23 using webrtc::ios::NSStringFromStdString; | 23 using webrtc::ios::NSStringFromStdString; |
| 24 using webrtc::ios::StdStringFromNSString; | 24 using webrtc::ios::StdStringFromNSString; |
| 25 | 25 |
| 26 // For iOS, resource files are added to the application bundle in the root | 26 // For iOS, resource files are added to the application bundle in the root |
| 27 // and not in separate folders as is the case for other platforms. This method | 27 // and not in separate folders as is the case for other platforms. This method |
| 28 // therefore removes any prepended folders and uses only the actual file name. | 28 // therefore removes any prepended folders and uses only the actual file name. |
| (...skipping 25 matching lines...) Expand all Loading... |
| 54 if (tempDir == nil) | 54 if (tempDir == nil) |
| 55 tempDir = @"/tmp"; | 55 tempDir = @"/tmp"; |
| 56 return StdStringFromNSString(tempDir); | 56 return StdStringFromNSString(tempDir); |
| 57 } | 57 } |
| 58 } | 58 } |
| 59 | 59 |
| 60 } // namespace test | 60 } // namespace test |
| 61 } // namespace webrtc | 61 } // namespace webrtc |
| 62 | 62 |
| 63 #endif // defined(WEBRTC_IOS) | 63 #endif // defined(WEBRTC_IOS) |
| OLD | NEW |