Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Unified Diff: third_party/qcms/src/tests/qcms_test_main.c

Issue 1734423002: [qcms] Fix build issue of qcms_tests for MIPS Linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Including third_party/WebKit/LayoutTests/whitespace.txt Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« third_party/qcms/qcms.gyp ('K') | « third_party/qcms/qcms.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/qcms/src/tests/qcms_test_main.c
diff --git a/third_party/qcms/src/tests/qcms_test_main.c b/third_party/qcms/src/tests/qcms_test_main.c
index 9eb866539780056adbb17dd1edb30029a8d681df..6c8a8ff1cc9ce3c38c986475fa75340e2e1cbaa1 100644
--- a/third_party/qcms/src/tests/qcms_test_main.c
+++ b/third_party/qcms/src/tests/qcms_test_main.c
@@ -12,20 +12,33 @@
#include <string.h>
// Manually update the items below to add more tests.
+#ifdef SSE2_ENABLE
radu.velea 2016/03/04 13:33:08 These look like too many ifdef's to me. Maybe we s
lmilko 2016/03/08 13:21:59 Done.
extern struct qcms_test_case qcms_test_tetra_clut_rgba_info;
+#endif
extern struct qcms_test_case qcms_test_munsell_info;
extern struct qcms_test_case qcms_test_internal_srgb_info;
extern struct qcms_test_case qcms_test_ntsc_gamut_info;
+#ifdef SSE2_ENABLE
struct qcms_test_case qcms_test[4];
+#else
+struct qcms_test_case qcms_test[3];
+#endif
+
#define TEST_CASES (sizeof(qcms_test) / sizeof(qcms_test[0]))
static void initialize_tests()
{
+#ifdef SSE2_ENABLE
qcms_test[0] = qcms_test_tetra_clut_rgba_info;
qcms_test[1] = qcms_test_munsell_info;
qcms_test[2] = qcms_test_internal_srgb_info;
qcms_test[3] = qcms_test_ntsc_gamut_info;
+#else
+ qcms_test[0] = qcms_test_munsell_info;
+ qcms_test[1] = qcms_test_internal_srgb_info;
+ qcms_test[2] = qcms_test_ntsc_gamut_info;
+#endif
}
static void list_tests()
« third_party/qcms/qcms.gyp ('K') | « third_party/qcms/qcms.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698