Update CrOS OOBE throbber to MD throbber; delete old asset
[chromium-blink-merge.git] / chrome / installer / setup / run_all_unittests.cc
blob97b4d93914f44a9a4680a6f88a146fc2513a4ea3
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.
5 #include "base/bind.h"
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(
24 argc,
25 argv,
26 base::Bind(&base::TestSuite::Run, base::Unretained(&test_suite)));