Do not announce robot account token before account ID is available
[chromium-blink-merge.git] / chrome / installer / setup / run_all_unittests.cc
blobfa354085a79a4091f9486c3177f0f9fb9366c7a0
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/command_line.h"
6 #include "base/test/test_suite.h"
7 #include "chrome/common/chrome_paths.h"
8 #include "chrome/installer/setup/setup_util_unittest.h"
10 int main(int argc, char** argv) {
11 TestSuite test_suite(argc, argv);
13 // Handle the --adjust-process-priority switch, which is used to test the
14 // installer::AdjustProcessPriority() function in a subprocess.
15 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kAdjustProcessPriority))
16 return DoProcessPriorityAdjustment();
18 // Register Chrome Path provider so that we can get test data dir.
19 chrome::RegisterPathProvider();
21 return test_suite.Run();