| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 // separate thread, to avoid blocking the main thread. | 58 // separate thread, to avoid blocking the main thread. |
| 59 TestRunner *testRunner = [[TestRunner alloc] init]; | 59 TestRunner *testRunner = [[TestRunner alloc] init]; |
| 60 TestBlock testBlock = functionToBlock(test); | 60 TestBlock testBlock = functionToBlock(test); |
| 61 [NSThread detachNewThreadSelector:@selector(runAllTests:) | 61 [NSThread detachNewThreadSelector:@selector(runAllTests:) |
| 62 toTarget:testRunner | 62 toTarget:testRunner |
| 63 withObject:testBlock]; | 63 withObject:testBlock]; |
| 64 | 64 |
| 65 NSRunLoop *runLoop = [NSRunLoop currentRunLoop]; | 65 NSRunLoop *runLoop = [NSRunLoop currentRunLoop]; |
| 66 while ([testRunner running] && | 66 while ([testRunner running] && |
| 67 [runLoop runMode:NSDefaultRunLoopMode | 67 [runLoop runMode:NSDefaultRunLoopMode |
| 68 beforeDate:[NSDate distantFuture]]); | 68 beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]); |
| 69 | 69 |
| 70 [testRunner release]; | 70 [testRunner release]; |
| 71 [pool release]; | 71 [pool release]; |
| 72 } | 72 } |
| 73 | 73 |
| 74 } // namespace test | 74 } // namespace test |
| 75 } // namespace webrtc | 75 } // namespace webrtc |
| OLD | NEW |