diff options
Diffstat (limited to 'chrome/browser/cocoa/download_shelf_mac_unittest.mm')
-rw-r--r-- | chrome/browser/cocoa/download_shelf_mac_unittest.mm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/cocoa/download_shelf_mac_unittest.mm b/chrome/browser/cocoa/download_shelf_mac_unittest.mm index 1df20e3..78ff52d 100644 --- a/chrome/browser/cocoa/download_shelf_mac_unittest.mm +++ b/chrome/browser/cocoa/download_shelf_mac_unittest.mm @@ -57,19 +57,19 @@ class DownloadShelfMacTest : public testing::Test { BrowserTestHelper browser_helper_; }; -TEST_F(DownloadShelfMacTest, CreationDoesNotCallShow) { +TEST_F(DownloadShelfMacTest, CreationCallsShow) { // Also make sure the DownloadShelfMacTest constructor doesn't crash. DownloadShelfMac shelf(browser_helper_.browser(), (DownloadShelfController*)shelf_controller_.get()); - EXPECT_EQ(0, shelf_controller_.get()->callCountShow); + EXPECT_EQ(1, shelf_controller_.get()->callCountShow); } TEST_F(DownloadShelfMacTest, ForwardsShow) { DownloadShelfMac shelf(browser_helper_.browser(), (DownloadShelfController*)shelf_controller_.get()); - EXPECT_EQ(0, shelf_controller_.get()->callCountShow); - shelf.Show(); EXPECT_EQ(1, shelf_controller_.get()->callCountShow); + shelf.Show(); + EXPECT_EQ(2, shelf_controller_.get()->callCountShow); } TEST_F(DownloadShelfMacTest, ForwardsHide) { |