OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <windows.h> | 5 #include <windows.h> |
6 #include <shellapi.h> | 6 #include <shellapi.h> |
7 #include <shlobj.h> | 7 #include <shlobj.h> |
8 | 8 |
9 #include <fstream> | 9 #include <fstream> |
10 | 10 |
11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
12 #include "base/path_service.h" | 12 #include "base/path_service.h" |
13 #include "base/memory/scoped_temp_dir.h" | 13 #include "base/scoped_temp_dir.h" |
14 #include "base/win/scoped_comptr.h" | 14 #include "base/win/scoped_comptr.h" |
15 #include "base/win/windows_version.h" | 15 #include "base/win/windows_version.h" |
16 #include "chrome/installer/util/browser_distribution.h" | 16 #include "chrome/installer/util/browser_distribution.h" |
17 #include "chrome/installer/util/master_preferences.h" | 17 #include "chrome/installer/util/master_preferences.h" |
18 #include "chrome/installer/util/shell_util.h" | 18 #include "chrome/installer/util/shell_util.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
20 | 20 |
21 namespace { | 21 namespace { |
22 bool VerifyChromeShortcut(const std::wstring& exe_path, | 22 bool VerifyChromeShortcut(const std::wstring& exe_path, |
23 const std::wstring& shortcut, | 23 const std::wstring& shortcut, |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 system_shortcut_path.value(), | 253 system_shortcut_path.value(), |
254 description, | 254 description, |
255 0)); | 255 0)); |
256 EXPECT_TRUE(ShellUtil::RemoveChromeDesktopShortcut(dist, | 256 EXPECT_TRUE(ShellUtil::RemoveChromeDesktopShortcut(dist, |
257 ShellUtil::CURRENT_USER, | 257 ShellUtil::CURRENT_USER, |
258 false)); | 258 false)); |
259 EXPECT_TRUE(ShellUtil::RemoveChromeDesktopShortcut(dist, | 259 EXPECT_TRUE(ShellUtil::RemoveChromeDesktopShortcut(dist, |
260 ShellUtil::SYSTEM_LEVEL, | 260 ShellUtil::SYSTEM_LEVEL, |
261 false)); | 261 false)); |
262 } | 262 } |
OLD | NEW |