Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(299)

Side by Side Diff: webrtc/test/mac/run_test.mm

Issue 1415033005: Don't wait until distant future to shut down video app. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698