MockJniApi.hpp 841 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2023-04-07
  6. * Changed: 2023-04-08
  7. *
  8. * */
  9. #ifndef LS_STD_MOCK_JNI_API_HPP
  10. #define LS_STD_MOCK_JNI_API_HPP
  11. #include <gmock/gmock.h>
  12. #include <ls-std/core/interface/IJniApi.hpp>
  13. namespace test::core::jni
  14. {
  15. class MockJniApi : public ls::std::core::interface_type::IJniApi
  16. {
  17. public:
  18. MockJniApi();
  19. ~MockJniApi() noexcept override;
  20. MOCK_METHOD(jbyte, callByteMethod, (jobject _javaObject, jmethodID _methodId), (override));
  21. MOCK_METHOD(jclass, findClass, (const ::std::string &_classPath), (override));
  22. MOCK_METHOD(jmethodID, getMethodId, (jclass _javaClass, const char *_methodIdentifier, const char *_methodSignature), (override));
  23. };
  24. }
  25. #endif