mac: Fix DownloadItemControllerTest on Yosemite.
commitb842fc9762bebeec24ad93c422ac45fa44cff109
authorerikchen <erikchen@chromium.org>
Fri, 17 Jul 2015 20:20:32 +0000 (17 13:20 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 17 Jul 2015 20:22:29 +0000 (17 20:22 +0000)
treeb20292a2daa9625fcf59ec21438488605d46cc42
parent5c753e41f31fe7f9acb0a3793bd08cc0cda3607d
mac: Fix DownloadItemControllerTest on Yosemite.

The previous version of the test exited the run loop as soon as the nib was
loaded. This prevented tasks that AppKit had queued from finishing, including
one that retained a reference to the DownloadItemController (the
-[NSViewController viewDidAppear] callback is posted onto the run loop).

BUG=463170

Review URL: https://codereview.chromium.org/1237163004

Cr-Commit-Position: refs/heads/master@{#339316}
chrome/browser/ui/cocoa/download/download_item_controller_unittest.mm