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

Side by Side Diff: chrome/installer/util/shell_util_unittest.cc

Issue 7048007: Move scoped_temp_dir and scoped_native_library back from base/memory to base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: unknwn Created 9 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/installer/util/self_cleaning_temp_dir_unittest.cc ('k') | chrome/installer/util/work_item_list_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698