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

Unified Diff: chrome/browser/web_applications/web_app_mac_unittest.mm

Issue 9423048: Add user data dir field to Mac platform apps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review comments Created 8 years, 10 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
Index: chrome/browser/web_applications/web_app_mac_unittest.mm
diff --git a/chrome/browser/web_applications/web_app_mac_unittest.mm b/chrome/browser/web_applications/web_app_mac_unittest.mm
index 6c2a35031c06d6e91696a4bf8c79a49f1bcd8514..a9b3b49ef4551bfce4bb8d38ce44da0d765528ea 100644
--- a/chrome/browser/web_applications/web_app_mac_unittest.mm
+++ b/chrome/browser/web_applications/web_app_mac_unittest.mm
@@ -30,8 +30,9 @@ class WebAppShortcutCreatorMock : public web_app::WebAppShortcutCreator {
public:
explicit WebAppShortcutCreatorMock(
const ShellIntegration::ShortcutInfo& shortcut_info)
- : WebAppShortcutCreator(shortcut_info,
- UTF8ToUTF16("fake.cfbundleidentifier")) {
+ : WebAppShortcutCreator(FilePath(),
+ shortcut_info,
+ UTF8ToUTF16("fake.cfbundleidentifier")) {
}
MOCK_CONST_METHOD1(GetDestinationPath, FilePath(const FilePath&));
@@ -100,7 +101,7 @@ TEST(WebAppShortcutCreatorTest, UpdateIcon) {
ShellIntegration::ShortcutInfo info = GetShortcutInfo();
info.favicon = *ui::ResourceBundle::GetSharedInstance().GetImageNamed(
IDR_PRODUCT_LOGO_32).ToSkBitmap();
- web_app::WebAppShortcutCreator shortcut_creator(info, string16());
+ WebAppShortcutCreatorMock shortcut_creator(info);
shortcut_creator.UpdateIcon(dst_path);
FilePath icon_path =

Powered by Google App Engine
This is Rietveld 408576698