summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 093b77f)
raw | patch | inline | side by side (parent: 093b77f)
author | Tomi Valkeinen <tomi.valkeinen@iki.fi> | |
Thu, 1 Oct 2015 18:49:43 +0000 (21:49 +0300) | ||
committer | Tomi Valkeinen <tomi.valkeinen@iki.fi> | |
Thu, 1 Oct 2015 18:49:43 +0000 (21:49 +0300) |
libkmstest/test.h | [moved from tests/test.h with 81% similarity] | patch | blob | history |
tests/db.cpp | patch | blob | history | |
tests/testpat.cpp | patch | blob | history |
diff --git a/tests/test.h b/libkmstest/test.h
similarity index 81%
rename from tests/test.h
rename to libkmstest/test.h
index 090ff38eab013d18b7ebec3ca4c8379e2392e023..0913e79b8058ccc9b3abaaa32a827954e11de370 100644 (file)
rename from tests/test.h
rename to libkmstest/test.h
index 090ff38eab013d18b7ebec3ca4c8379e2392e023..0913e79b8058ccc9b3abaaa32a827954e11de370 100644 (file)
--- a/tests/test.h
+++ b/libkmstest/test.h
#pragma once
+#include "color.h"
+#include "conv.h"
+#include "testpat.h"
+
#define unlikely(x) __builtin_expect(!!(x), 0)
static void ASSERT_FAIL(const char *cond, const char *file,
}
#define ASSERT(x) if (unlikely(!(x))) { ASSERT_FAIL( __STRING(x), __FILE__, __LINE__, __PRETTY_FUNCTION__); }
+
+#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
diff --git a/tests/db.cpp b/tests/db.cpp
index 9b7c973f58aedfceea8feace8dcf04bc9a51752d..d70f917fb44596a81948a6af34b92e3cc459041f 100644 (file)
--- a/tests/db.cpp
+++ b/tests/db.cpp
#include <drm_fourcc.h>
#include "kms++.h"
-#include "color.h"
#include "test.h"
static void main_loop(Card& card);
-#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
-
class OutputFlipHandler
{
public:
diff --git a/tests/testpat.cpp b/tests/testpat.cpp
index 419df5df37a3fd1782187fe9b1ff2b69ba088b72..eaf1091efd7187c349bd72085317a823d4a372e7 100644 (file)
--- a/tests/testpat.cpp
+++ b/tests/testpat.cpp
#include <algorithm>
#include "kms++.h"
-#include "testpat.h"
#include "test.h"