| Index: chrome/browser/ui/cocoa/download/download_item_controller_unittest.mm
|
| diff --git a/chrome/browser/ui/cocoa/download/download_item_controller_unittest.mm b/chrome/browser/ui/cocoa/download/download_item_controller_unittest.mm
|
| index ebe8e59caccd4228500bcc2dc7a4248928f3fcfd..33b7ee7fa8397e699eb2b1a399939169bb6f0551 100644
|
| --- a/chrome/browser/ui/cocoa/download/download_item_controller_unittest.mm
|
| +++ b/chrome/browser/ui/cocoa/download/download_item_controller_unittest.mm
|
| @@ -104,10 +104,16 @@ class DownloadItemControllerTest : public CocoaProfileTest {
|
|
|
| TEST_F(DownloadItemControllerTest, ShelfNotifiedOfOpenedDownload) {
|
| base::scoped_nsobject<DownloadItemController> item(CreateItemController());
|
| - [[(id)shelf_ expect] downloadWasOpened:[OCMArg any]];
|
| + [[(id)shelf_ expect] downloadWasOpenedOrShown:[OCMArg any]];
|
| download_item_->NotifyObserversDownloadOpened();
|
| }
|
|
|
| +TEST_F(DownloadItemControllerTest, ShelfNotifiedOfShownDownload) {
|
| + base::scoped_nsobject<DownloadItemController> item(CreateItemController());
|
| + [[(id)shelf_ expect] downloadWasOpenedOrShown:[OCMArg any]];
|
| + download_item_->NotifyObserversDownloadShown();
|
| +}
|
| +
|
| TEST_F(DownloadItemControllerTest, RemovesSelfWhenDownloadIsDestroyed) {
|
| base::scoped_nsobject<DownloadItemController> item(CreateItemController());
|
| [[(id)shelf_ expect] remove:[OCMArg any]];
|
|
|