OLD | NEW |
(Empty) | |
| 1 // Copyright 2013 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. |
| 4 |
| 5 #ifndef CHROME_INSTALLER_SETUP_SETUP_UTIL_UNITTEST_H_ |
| 6 #define CHROME_INSTALLER_SETUP_SETUP_UTIL_UNITTEST_H_ |
| 7 |
| 8 // A command line switch that causes the test harness to exit with the result of |
| 9 // DoProcessPriorityAdjustment rather than executing all tests. |
| 10 extern const char kAdjustProcessPriority[]; |
| 11 |
| 12 // Process exit codes when the test harness is run with the |
| 13 // kAdjustProcessPriority switch. |
| 14 enum PriorityClassChangeResult { |
| 15 PCCR_UNKNOWN, |
| 16 PCCR_UNCHANGED, |
| 17 PCCR_CHANGED, |
| 18 }; |
| 19 |
| 20 // Calls AdjustProcessPriority() and returns PCCR_CHANGED or PCCR_UNCHANGED |
| 21 // based on its true or false result (respectively). |
| 22 PriorityClassChangeResult DoProcessPriorityAdjustment(); |
| 23 |
| 24 #endif // CHROME_INSTALLER_SETUP_SETUP_UTIL_UNITTEST_H_ |
OLD | NEW |