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 <dawnhan@google.com> Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org> Tested-by: Dawn Han <dawnhan@google.com>
16 lines
358 B
C
16 lines
358 B
C
/*
|
|
* 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,
|
|
};
|