Chromium Code Reviews

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

Issue 5429002: Support for checking multiple keyfiles when removing an installation package.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « chrome/installer/util/delete_tree_work_item.cc ('k') | chrome/installer/util/package.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/delete_tree_work_item_unittest.cc
===================================================================
--- chrome/installer/util/delete_tree_work_item_unittest.cc (revision 67902)
+++ chrome/installer/util/delete_tree_work_item_unittest.cc (working copy)
@@ -85,9 +85,9 @@
ASSERT_TRUE(file_util::PathExists(file_name_delete_2));
// test Do()
+ std::vector<FilePath> key_files;
scoped_ptr<DeleteTreeWorkItem> work_item(
- WorkItem::CreateDeleteTreeWorkItem(dir_name_delete.ToWStringHack(),
- std::wstring()));
+ WorkItem::CreateDeleteTreeWorkItem(dir_name_delete, key_files));
EXPECT_TRUE(work_item->Do());
// everything should be gone
@@ -133,9 +133,9 @@
ASSERT_TRUE(file_util::PathExists(file_name_delete_2));
// test Do()
+ std::vector<FilePath> key_files(1, file_name_delete_1);
scoped_ptr<DeleteTreeWorkItem> work_item(
- WorkItem::CreateDeleteTreeWorkItem(dir_name_delete.ToWStringHack(),
- file_name_delete_1.ToWStringHack()));
+ WorkItem::CreateDeleteTreeWorkItem(dir_name_delete, key_files));
EXPECT_TRUE(work_item->Do());
// everything should be gone
@@ -202,9 +202,9 @@
// test Do().
{
+ std::vector<FilePath> key_paths(1, key_path);
scoped_ptr<DeleteTreeWorkItem> work_item(
- WorkItem::CreateDeleteTreeWorkItem(dir_name_delete.ToWStringHack(),
- key_path.ToWStringHack()));
+ WorkItem::CreateDeleteTreeWorkItem(dir_name_delete, key_paths));
// delete should fail as file in use.
EXPECT_FALSE(work_item->Do());
« no previous file with comments | « chrome/installer/util/delete_tree_work_item.cc ('k') | chrome/installer/util/package.cc » ('j') | no next file with comments »

Powered by Google App Engine