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

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

Issue 8502033: Add Windows desktop shortcut for multiple profiles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: rebase Created 9 years, 1 month 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/setup/install.cc ('k') | chrome/installer/util/shell_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/browser_distribution_unittest.cc
===================================================================
--- chrome/installer/util/browser_distribution_unittest.cc (revision 111142)
+++ chrome/installer/util/browser_distribution_unittest.cc (working copy)
@@ -43,10 +43,21 @@
TEST(BrowserDistributionTest, AlternateAndNormalShortcutName) {
std::wstring normal_name;
std::wstring alternate_name;
+ std::wstring appended_name_one;
+ std::wstring appended_name_two;
BrowserDistribution* dist = BrowserDistribution::GetDistribution();
- EXPECT_TRUE(ShellUtil::GetChromeShortcutName(dist, &normal_name, false));
- EXPECT_TRUE(ShellUtil::GetChromeShortcutName(dist, &alternate_name, true));
+ EXPECT_TRUE(ShellUtil::GetChromeShortcutName(dist, false, L"",
+ &normal_name));
+ EXPECT_TRUE(ShellUtil::GetChromeShortcutName(dist, true, L"",
+ &alternate_name));
+ EXPECT_TRUE(ShellUtil::GetChromeShortcutName(dist, true, L"Sparky",
+ &appended_name_one));
+ EXPECT_TRUE(ShellUtil::GetChromeShortcutName(dist, true, L"Sparkles",
+ &appended_name_two));
EXPECT_NE(normal_name, alternate_name);
+ EXPECT_NE(appended_name_one, appended_name_two);
EXPECT_FALSE(normal_name.empty());
EXPECT_FALSE(alternate_name.empty());
+ EXPECT_FALSE(appended_name_one.empty());
+ EXPECT_FALSE(appended_name_two.empty());
}
« no previous file with comments | « chrome/installer/setup/install.cc ('k') | chrome/installer/util/shell_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698