diff options
author | gab@chromium.org <gab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-06 19:23:11 +0000 |
---|---|---|
committer | gab@chromium.org <gab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-06 19:23:11 +0000 |
commit | 2e1a4a80ce1c1f986beb6d9ab38bb1a166ccb6d8 (patch) | |
tree | 50a44ed10db0ef30ed1a3c315ea72f77ad07c094 /base/file_util_unittest.cc | |
parent | 4d3ec0fa36368b7534a35400e75e00910f296a58 (diff) | |
download | chromium_src-2e1a4a80ce1c1f986beb6d9ab38bb1a166ccb6d8.zip chromium_src-2e1a4a80ce1c1f986beb6d9ab38bb1a166ccb6d8.tar.gz chromium_src-2e1a4a80ce1c1f986beb6d9ab38bb1a166ccb6d8.tar.bz2 |
Win 8 Start Menu shortcut changes
BUG=119242
TEST=Test DualModeApp properties are correctly set in Windows 8 on Start Menu shortcut.
Review URL: http://codereview.chromium.org/9837120
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131163 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util_unittest.cc')
-rw-r--r-- | base/file_util_unittest.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/base/file_util_unittest.cc b/base/file_util_unittest.cc index 4542af4..30db82c 100644 --- a/base/file_util_unittest.cc +++ b/base/file_util_unittest.cc @@ -1458,16 +1458,17 @@ TEST_F(FileUtilTest, ResolveShortcutTest) { } TEST_F(FileUtilTest, CreateShortcutTest) { - const wchar_t file_contents[] = L"This is another target."; + const wchar_t* file_contents = L"This is another target."; FilePath target_file = temp_dir_.path().Append(L"Target1.txt"); CreateTextFile(target_file, file_contents); FilePath link_file = temp_dir_.path().Append(L"Link1.lnk"); CoInitialize(NULL); - EXPECT_TRUE(file_util::CreateShortcutLink(target_file.value().c_str(), - link_file.value().c_str(), - NULL, NULL, NULL, NULL, 0, NULL)); + EXPECT_TRUE(file_util::CreateOrUpdateShortcutLink( + target_file.value().c_str(), link_file.value().c_str(), NULL, + NULL, NULL, NULL, 0, NULL, + file_util::SHORTCUT_CREATE_ALWAYS)); FilePath resolved_name = link_file; EXPECT_TRUE(file_util::ResolveShortcut(&resolved_name)); std::wstring read_contents = ReadTextFile(resolved_name); |