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

Side by Side Diff: chrome/installer/test/upgrade_test.cc

Issue 18584011: Rename base::Delete to base::DeleteFile (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 // Boilerplate for an upgrade scenario test. The mini_installer.exe residing in 5 // Boilerplate for an upgrade scenario test. The mini_installer.exe residing in
6 // the same directory as the host executable is re-versioned. 6 // the same directory as the host executable is re-versioned.
7 7
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 14 matching lines...) Expand all
25 ASSERT_TRUE(file_util::CreateTemporaryFile(&next_mini_installer_path_)); 25 ASSERT_TRUE(file_util::CreateTemporaryFile(&next_mini_installer_path_));
26 ASSERT_TRUE( 26 ASSERT_TRUE(
27 upgrade_test::GenerateAlternateVersion( 27 upgrade_test::GenerateAlternateVersion(
28 dir_exe.Append(&kMiniInstallerExe[0]), 28 dir_exe.Append(&kMiniInstallerExe[0]),
29 next_mini_installer_path_, 29 next_mini_installer_path_,
30 upgrade_test::NEXT_VERSION, NULL, NULL)); 30 upgrade_test::NEXT_VERSION, NULL, NULL));
31 } 31 }
32 32
33 // Clean up by deleting the created newer version of mini_installer.exe. 33 // Clean up by deleting the created newer version of mini_installer.exe.
34 static void TearDownTestCase() { 34 static void TearDownTestCase() {
35 EXPECT_TRUE(base::Delete(next_mini_installer_path_, false)); 35 EXPECT_TRUE(base::DeleteFile(next_mini_installer_path_, false));
36 } 36 }
37 private: 37 private:
38 static base::FilePath next_mini_installer_path_; 38 static base::FilePath next_mini_installer_path_;
39 }; // class UpgradeTest 39 }; // class UpgradeTest
40 40
41 base::FilePath UpgradeTest::next_mini_installer_path_; 41 base::FilePath UpgradeTest::next_mini_installer_path_;
42 42
43 TEST_F(UpgradeTest, DoNothing) { 43 TEST_F(UpgradeTest, DoNothing) {
44 } 44 }
OLDNEW
« no previous file with comments | « chrome/installer/test/alternate_version_generator.cc ('k') | chrome/installer/tools/validate_installation_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698