diff options
Diffstat (limited to 'cts/common/cts_common.h')
-rw-r--r-- | cts/common/cts_common.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/cts/common/cts_common.h b/cts/common/cts_common.h new file mode 100644 index 0000000000..eed93dccea --- /dev/null +++ b/cts/common/cts_common.h @@ -0,0 +1,26 @@ +/* Copyright 2016 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#ifndef __CTS_COMMON_H +#define __CTS_COMMON_H + +#include "console.h" + +/* Console output macros */ +#define CPUTS(outstr) cputs(CC_SYSTEM, outstr) +#define CPRINTF(format, args...) cprintf(CC_SYSTEM, format, ## args) +#define CPRINTS(format, args...) cprints(CC_SYSTEM, format, ## args) + +/* In a single test, only one board can return unknown, the other must + * return a useful result (i.e. success, failure, etc) + */ +enum cts_error_code { + SUCCESS, + FAILURE, + BAD_SYNC, + UNKNOWN +}; + +#endif |