chromium/chrome/installer/setup/setup_util_unittest.h

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_INSTALLER_SETUP_SETUP_UTIL_UNITTEST_H_
#define CHROME_INSTALLER_SETUP_SETUP_UTIL_UNITTEST_H_

// A command line switch that causes the test harness to exit with the result of
// DoThreadPriorityAdjustment rather than executing all tests.
extern const char kAdjustThreadPriority[];

// Process exit codes when the test harness is run with the
// kAdjustThreadPriority switch.
enum PriorityClassChangeResult {
  PCCR_UNKNOWN,
  PCCR_UNCHANGED,
  PCCR_CHANGED,
};

// Calls AdjustThreadPriority() and returns PCCR_CHANGED or PCCR_UNCHANGED
// based on its true or false result (respectively).
PriorityClassChangeResult DoThreadPriorityAdjustment();

#endif  // CHROME_INSTALLER_SETUP_SETUP_UTIL_UNITTEST_H_