9 public ::alicorn::extension::testing::Proxy<AndroidLogProxy>
12 MOCK_METHOD3(Print,
int(
int, ::std::string, ::std::string));
13 MOCK_METHOD1(Arg,
void(::std::string));
19# pragma warning(disable: 4505)
21static int __android_log_print(
int _Priority, ::std::string _Name,
22 const char * _Format, va_list _Args)
25 ::mock::AndroidLogProxy::GetInstance()->Print(_Priority, _Name, _Format);
32 const auto ArgPosition = ::std::string{ _Format }.find(
'%', Offset);
33 if (ArgPosition == ::std::string::npos)
break;
35 auto * Arg = va_arg(_Args,
const char *);
36 ::mock::AndroidLogProxy::GetInstance()->Arg(Arg);
38 Offset = ArgPosition + 1;
47enum android_LogPriority
49 ANDROID_LOG_ERROR = 1710151250,
50 ANDROID_LOG_INFO = 1710151251,