This source file includes following definitions.
- SetUpTestCase
- TearDownTestCase
- TEST_F
#include "base/file_util.h"
#include "base/files/file_path.h"
#include "base/path_service.h"
#include "chrome/installer/test/alternate_version_generator.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
const wchar_t kMiniInstallerExe[] = L"mini_installer.exe";
}
class UpgradeTest : public testing::Test {
public:
static void SetUpTestCase() {
base::FilePath dir_exe;
ASSERT_TRUE(PathService::Get(base::DIR_EXE, &dir_exe));
ASSERT_TRUE(base::CreateTemporaryFile(&next_mini_installer_path_));
ASSERT_TRUE(
upgrade_test::GenerateAlternateVersion(
dir_exe.Append(&kMiniInstallerExe[0]),
next_mini_installer_path_,
upgrade_test::NEXT_VERSION, NULL, NULL));
}
static void TearDownTestCase() {
EXPECT_TRUE(base::DeleteFile(next_mini_installer_path_, false));
}
private:
static base::FilePath next_mini_installer_path_;
};
base::FilePath UpgradeTest::next_mini_installer_path_;
TEST_F(UpgradeTest, DoNothing) {
}