| Index: webrtc/test/testsupport/iosfileutils.mm
|
| diff --git a/webrtc/test/testsupport/iosfileutils.mm b/webrtc/test/testsupport/iosfileutils.mm
|
| index f3615ed6814b41a696fd04da166a96a59237c2a9..87b7397c7911d981c42a62a90f214f935d8a6838 100644
|
| --- a/webrtc/test/testsupport/iosfileutils.mm
|
| +++ b/webrtc/test/testsupport/iosfileutils.mm
|
| @@ -54,6 +54,18 @@ std::string IOSResourcePath(std::string name, std::string extension) {
|
| }
|
| }
|
|
|
| +// For iOS, we don't have access to the output directory. Return the path to the
|
| +// temporary directory instead. This is mostly used by tests that need to write
|
| +// output files to disk.
|
| +std::string IOSOutputPath() {
|
| + @autoreleasepool {
|
| + NSString* tempDir = NSTemporaryDirectory();
|
| + if (tempDir == nil)
|
| + tempDir = @"/tmp";
|
| + return StdStringFromNSString(tempDir);
|
| + }
|
| +}
|
| +
|
| } // namespace test
|
| } // namespace webrtc
|
|
|
|
|