commit | f495263fc6548dffcca2472e9b74a30aead67d8b | [log] [tgz] |
---|---|---|
author | Brendan Higgins <brendanhiggins@google.com> | Tue Jul 24 15:03:27 2018 -0700 |
committer | Brendan Higgins <brendanhiggins@google.com> | Wed Oct 24 15:11:23 2018 -0700 |
tree | 8ddfe2b0b20fec3a688f7babb45886a8b1e82fd4 | |
parent | f5b5c08de4657984de7dc351590b94cf1bba5e8f [diff] |
kunit: mock: added support for arbitrary function mocking Up to this point KUnit only supported method style function mocking where there was some type of class or context object and the function was only accessed via a pointer. This adds support for mocking any function via the __mockable attribute. Change-Id: I22f325a0fda3d16f5fb22f07332848feaa196b41 Signed-off-by: Brendan Higgins <brendanhiggins@google.com>