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

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

Issue 15724019: Recreate shortcuts on app update. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 7 years, 6 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 f99dd4891ff6fe81707775729a77a8655df4b03c..1d45b7d505f17fc200f76d56edf5d2d6e34853c4 100644
--- a/chrome/browser/web_applications/web_app_mac_unittest.mm
+++ b/chrome/browser/web_applications/web_app_mac_unittest.mm
@@ -39,8 +39,6 @@ class WebAppShortcutCreatorMock : public web_app::WebAppShortcutCreator {
}
MOCK_CONST_METHOD0(GetDestinationPath, base::FilePath());
- MOCK_CONST_METHOD1(RevealGeneratedBundleInFinder,
- void (const base::FilePath&));
};
ShellIntegration::ShortcutInfo GetShortcutInfo() {
@@ -71,7 +69,6 @@ TEST(WebAppShortcutCreatorTest, CreateShortcut) {
NiceMock<WebAppShortcutCreatorMock> shortcut_creator(info);
EXPECT_CALL(shortcut_creator, GetDestinationPath())
.WillRepeatedly(Return(dst_folder));
- EXPECT_CALL(shortcut_creator, RevealGeneratedBundleInFinder(dst_path));
EXPECT_TRUE(shortcut_creator.CreateShortcut());
EXPECT_TRUE(file_util::PathExists(dst_path));
@@ -111,7 +108,6 @@ TEST(WebAppShortcutCreatorTest, RunShortcut) {
NiceMock<WebAppShortcutCreatorMock> shortcut_creator(info);
EXPECT_CALL(shortcut_creator, GetDestinationPath())
.WillRepeatedly(Return(dst_folder));
- EXPECT_CALL(shortcut_creator, RevealGeneratedBundleInFinder(dst_path));
EXPECT_TRUE(shortcut_creator.CreateShortcut());
EXPECT_TRUE(file_util::PathExists(dst_path));

Powered by Google App Engine
This is Rietveld 408576698