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

Unified Diff: content/browser/download/download_item_impl_unittest.cc

Issue 11711003: Remove the DownloadItem::TogglePause() interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/download/download_item_impl_unittest.cc
diff --git a/content/browser/download/download_item_impl_unittest.cc b/content/browser/download/download_item_impl_unittest.cc
index 12f8f9b8d01bf208386a65b4f7457a6416552d05..8f6e4f9dbc725e1851f078f38396cf472570affa 100644
--- a/content/browser/download/download_item_impl_unittest.cc
+++ b/content/browser/download/download_item_impl_unittest.cc
@@ -401,10 +401,12 @@ TEST_F(DownloadItemTest, NotificationAfterTogglePause) {
DownloadItemImpl* item = CreateDownloadItem(DownloadItem::IN_PROGRESS);
MockObserver observer(item);
- item->TogglePause();
+ item->Pause();
ASSERT_TRUE(observer.CheckUpdated());
- item->TogglePause();
+ ASSERT_TRUE(item->IsPaused());
+
+ item->Resume();
ASSERT_TRUE(observer.CheckUpdated());
}

Powered by Google App Engine
This is Rietveld 408576698