| 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 // 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" | |
| 9 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/files/file_util.h" |
| 10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| 11 #include "chrome/installer/test/alternate_version_generator.h" | 11 #include "chrome/installer/test/alternate_version_generator.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 const wchar_t kMiniInstallerExe[] = L"mini_installer.exe"; | 15 const wchar_t kMiniInstallerExe[] = L"mini_installer.exe"; |
| 16 } // namespace | 16 } // namespace |
| 17 | 17 |
| 18 // Boilerplate for a future upgrade scenario test. | 18 // Boilerplate for a future upgrade scenario test. |
| 19 class UpgradeTest : public testing::Test { | 19 class UpgradeTest : public testing::Test { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 35 EXPECT_TRUE(base::DeleteFile(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 } |
| OLD | NEW |