minigbm: add unit test for minigbm public apis

This is the first change to add unit tests for the public APIs in
minigbm.
Only tests 3 APIs here for now, and just added some very simple input
for each api testing.

The ultimate goal would be cover more APIs and the input combinations.

BUG=b:304380938
TEST=cros_workon_make --board=guybrush minigbm --test
TEST=cros_run_unit_tests --board guybrush --packages "minigbm"
TEST=CQ

Change-Id: Id15806b7bc6cd9c4764bf08becec6546d72bb117
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/4923791
Commit-Queue: Dawn Han <[email protected]>
Reviewed-by: Yiwei Zhang <[email protected]>
Tested-by: Dawn Han <[email protected]>
diff --git a/backend_mock.c b/backend_mock.c
new file mode 100644
index 0000000..ae0d758
--- /dev/null
+++ b/backend_mock.c
@@ -0,0 +1,16 @@
+/*
+ * Copyright 2023 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.
+ */
+
+#include "drv_priv.h"
+
+static int backend_mock_init(struct driver *drv) {
+	return 0;
+}
+
+const struct backend backend_mock = {
+	.name = "Mock Backend",
+	.init = backend_mock_init,
+};