Chromium Code Reviews| Index: third_party/qcms/src/tests/qcms_test_util.h |
| diff --git a/third_party/qcms/src/tests/qcms_test_util.h b/third_party/qcms/src/tests/qcms_test_util.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..33632f69e874490fd155894e1eb3903ad83fef88 |
| --- /dev/null |
| +++ b/third_party/qcms/src/tests/qcms_test_util.h |
| @@ -0,0 +1,26 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the Chromium LICENSE file. |
| + |
|
Noel Gordon
2015/10/08 03:12:49
Globally use spaces instead of tabs in this file.
radu.velea
2015/10/08 09:39:13
Done.
radu.velea
2015/10/08 09:39:13
Done.
|
| +#include "qcmsint.h" |
| +#include "qcmstypes.h" |
| + |
| +typedef int (*qcms_test_function)(size_t width, |
| + size_t height, |
| + int iterations, |
| + const char *in_profile, |
| + const char *out_profile, |
| + const int force_software); |
| + |
| +enum QCMS_TEST_STATUS { |
| + QCMS_TEST_DISABLED = 0, |
| + QCMS_TEST_ENABLED = 1, |
| +}; |
| + |
| +struct qcms_test_case { |
| + char test_name[256]; |
| + qcms_test_function test_fn; |
| + enum QCMS_TEST_STATUS status; |
| +}; |
| + |
| +void generate_source_uint8_t(unsigned char *src, const size_t length, const size_t pixel_size); |