Index: chrome/test/mini_installer_test/run_all_unittests.cc |
diff --git a/chrome/test/mini_installer_test/run_all_unittests.cc b/chrome/test/mini_installer_test/run_all_unittests.cc |
index cbcdf78c46bda016d3c30031a4cc89bc0a0192c3..0549e1aba71b7d495f0a71ad16611b04e104b477 100644 |
--- a/chrome/test/mini_installer_test/run_all_unittests.cc |
+++ b/chrome/test/mini_installer_test/run_all_unittests.cc |
@@ -1,15 +1,15 @@ |
-// Copyright (c) 2009 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2010 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
#include "base/command_line.h" |
#include "base/file_util.h" |
#include "base/test/test_suite.h" |
+#include "chrome/common/chrome_switches.h" |
#include "chrome/installer/util/util_constants.h" |
#include "chrome/test/mini_installer_test/mini_installer_test_constants.h" |
#include "chrome_mini_installer.h" |
- |
void BackUpProfile(bool chrome_frame) { |
if (base::GetProcessCount(L"chrome.exe", NULL) > 0) { |
printf("Chrome is currently running and cannot backup the profile." |
@@ -45,10 +45,10 @@ int main(int argc, char** argv) { |
CommandLine::Init(argc, argv); |
const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
TestSuite test_suite = TestSuite(argc, argv); |
- if (command_line.HasSwitch("clean")) { |
+ if (command_line.HasSwitch(switches::kInstallerTestClean)) { |
printf("Current version of Chrome will be uninstalled " |
"from all levels before proceeding with tests.\n"); |
- } else if (command_line.HasSwitch("backup")) { |
+ } else if (command_line.HasSwitch(switches::kInstallerTestForce)) { |
BackUpProfile(command_line.HasSwitch( |
installer_util::switches::kChromeFrame)); |
} else { |