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

Unified Diff: chrome/installer/util/conditional_work_item_list_unittest.cc

Issue 1976443005: Revert of Add best-effort/allow rollback flags on WorkItem. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@simple_list_tests
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/installer/util/conditional_work_item_list.cc ('k') | chrome/installer/util/copy_tree_work_item.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/conditional_work_item_list_unittest.cc
diff --git a/chrome/installer/util/conditional_work_item_list_unittest.cc b/chrome/installer/util/conditional_work_item_list_unittest.cc
index cf38d3434ed81609b4044c0b501c984b59ac3bea..1268f5dfbea1e54b5b2eb8eb46281d1a3d23aed5 100644
--- a/chrome/installer/util/conditional_work_item_list_unittest.cc
+++ b/chrome/installer/util/conditional_work_item_list_unittest.cc
@@ -33,12 +33,12 @@
// Expect all three items to be done in order then undone.
InSequence s;
- EXPECT_CALL(*item1, DoImpl()).WillOnce(Return(true));
- EXPECT_CALL(*item2, DoImpl()).WillOnce(Return(true));
- EXPECT_CALL(*item3, DoImpl()).WillOnce(Return(true));
- EXPECT_CALL(*item3, RollbackImpl());
- EXPECT_CALL(*item2, RollbackImpl());
- EXPECT_CALL(*item1, RollbackImpl());
+ EXPECT_CALL(*item1, Do()).WillOnce(Return(true));
+ EXPECT_CALL(*item2, Do()).WillOnce(Return(true));
+ EXPECT_CALL(*item3, Do()).WillOnce(Return(true));
+ EXPECT_CALL(*item3, Rollback());
+ EXPECT_CALL(*item2, Rollback());
+ EXPECT_CALL(*item1, Rollback());
}
// Add the items to the list.
@@ -68,10 +68,10 @@
// Expect the two first work items to be done in order then undone.
InSequence s;
- EXPECT_CALL(*item1, DoImpl()).WillOnce(Return(true));
- EXPECT_CALL(*item2, DoImpl()).WillOnce(Return(false));
- EXPECT_CALL(*item2, RollbackImpl());
- EXPECT_CALL(*item1, RollbackImpl());
+ EXPECT_CALL(*item1, Do()).WillOnce(Return(true));
+ EXPECT_CALL(*item2, Do()).WillOnce(Return(false));
+ EXPECT_CALL(*item2, Rollback());
+ EXPECT_CALL(*item1, Rollback());
}
// Add the items to the list.
« no previous file with comments | « chrome/installer/util/conditional_work_item_list.cc ('k') | chrome/installer/util/copy_tree_work_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698