test: replace MOCK_CONST_METHOD with MOCK_METHOD

Replaced deprecated MOCK_CONST_METHOD macros with modern MOCK_METHOD
to resolve below build failures.

'''
src/gpioplus/test/handle.hpp:15:5: error: There is an unknown macro here somewhere.
    Configuration is required. If GMOCK_PP_CAT is a macro then please configure it. [unknownMacro]
    MOCK_CONST_METHOD1(getValues, void(std::vector<uint8_t>&));

src/gpioplus/test/sys.hpp:14:5: error: There is an unknown macro here somewhere.
    Configuration is required. If GMOCK_PP_CAT is a macro then please configure it. [unknownMacro]
    MOCK_CONST_METHOD2(open, int(const char*, int));
'''

Change-Id: Ib8c0af210ec8477eebd849f658aeca43ea67c9fb
Signed-off-by: Jayanth Othayoth <ojayanth@gmail.com>
2 files changed
tree: ad841497c576f158f01e9ddf9f2dd6ac3011ab7f
  1. example/
  2. src/
  3. subprojects/
  4. test/
  5. .clang-format
  6. .gitignore
  7. .lcovrc
  8. LICENSE
  9. meson.build
  10. meson.options
  11. OWNERS
  12. README.md
README.md

gpioplus

gpioplus is a c++ wrapper around the linux gpio ioctl interface. It aims to provide c++ ergonomics to the usage.

Building

For a standard release build, you want something like:

meson setup -Dexamples=false -Dtests=disabled builddir
ninja -C builddir
ninja -C builddir install

For a test / debug build, a typical configuration is

meson setup -Dtests=enabled builddir
meson test -C builddir