1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
6 #include "base/command_line.h"
7 #include "base/test/launcher/unit_test_launcher.h"
8 #include "base/test/test_suite.h"
9 #include "chrome/common/chrome_paths.h"
10 #include "chrome/installer/setup/setup_util_unittest.h"
12 int main(int argc
, char** argv
) {
13 base::TestSuite
test_suite(argc
, argv
);
15 // Handle the --adjust-process-priority switch, which is used to test the
16 // installer::AdjustProcessPriority() function in a subprocess.
17 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kAdjustProcessPriority
))
18 return DoProcessPriorityAdjustment();
20 // Register Chrome Path provider so that we can get test data dir.
21 chrome::RegisterPathProvider();
23 return base::LaunchUnitTests(
26 base::Bind(&base::TestSuite::Run
, base::Unretained(&test_suite
)));