-
Notifications
You must be signed in to change notification settings - Fork 31
/
mock_jni_env.h
1998 lines (1987 loc) · 110 KB
/
mock_jni_env.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* Copyright 2016 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef JNI_BIND_MOCK_JNI_ENV_H_
#define JNI_BIND_MOCK_JNI_ENV_H_
#include <gmock/gmock.h>
#include "jni_dep.h"
namespace jni::test {
#if defined(__ANDROID__) && __NDK_MAJOR__ < 18
using InputJvalueArray = jvalue*;
#else
using InputJvalueArray = const jvalue*;
#endif
// This is the complete version of MockJNIEnv. Since there are about 200 virtual
// functions, the gmock object is too large to put on stack because the default
// stack frame size limit is 16k. You can either add "-Wframe-larger-than=32768"
// to copts of your test, or create the object from heap.
//
// Note that it also takes a long time to compile this class. If you want to
// have a faster test compilation time, consider moving the functions you need
// to MockJNIEnv.
class MockableJNIEnvFull : public JNIEnv {
public:
MockableJNIEnvFull() {
functions = &functions_;
functions_.AllocObject = &CallAllocObject;
functions_.CallBooleanMethodA = &CallCallBooleanMethodA;
functions_.CallBooleanMethodV = &CallCallBooleanMethodV;
functions_.CallByteMethodA = &CallCallByteMethodA;
functions_.CallByteMethodV = &CallCallByteMethodV;
functions_.CallCharMethodA = &CallCallCharMethodA;
functions_.CallCharMethodV = &CallCallCharMethodV;
functions_.CallDoubleMethodA = &CallCallDoubleMethodA;
functions_.CallDoubleMethodV = &CallCallDoubleMethodV;
functions_.CallFloatMethodA = &CallCallFloatMethodA;
functions_.CallFloatMethodV = &CallCallFloatMethodV;
functions_.CallIntMethodA = &CallCallIntMethodA;
functions_.CallIntMethodV = &CallCallIntMethodV;
functions_.CallLongMethodA = &CallCallLongMethodA;
functions_.CallLongMethodV = &CallCallLongMethodV;
functions_.CallNonvirtualBooleanMethodA = &CallCallNonvirtualBooleanMethodA;
functions_.CallNonvirtualBooleanMethodV = &CallCallNonvirtualBooleanMethodV;
functions_.CallNonvirtualByteMethodA = &CallCallNonvirtualByteMethodA;
functions_.CallNonvirtualByteMethodV = &CallCallNonvirtualByteMethodV;
functions_.CallNonvirtualCharMethodA = &CallCallNonvirtualCharMethodA;
functions_.CallNonvirtualCharMethodV = &CallCallNonvirtualCharMethodV;
functions_.CallNonvirtualDoubleMethodA = &CallCallNonvirtualDoubleMethodA;
functions_.CallNonvirtualDoubleMethodV = &CallCallNonvirtualDoubleMethodV;
functions_.CallNonvirtualFloatMethodA = &CallCallNonvirtualFloatMethodA;
functions_.CallNonvirtualFloatMethodV = &CallCallNonvirtualFloatMethodV;
functions_.CallNonvirtualIntMethodA = &CallCallNonvirtualIntMethodA;
functions_.CallNonvirtualIntMethodV = &CallCallNonvirtualIntMethodV;
functions_.CallNonvirtualLongMethodA = &CallCallNonvirtualLongMethodA;
functions_.CallNonvirtualLongMethodV = &CallCallNonvirtualLongMethodV;
functions_.CallNonvirtualObjectMethodA = &CallCallNonvirtualObjectMethodA;
functions_.CallNonvirtualObjectMethodV = &CallCallNonvirtualObjectMethodV;
functions_.CallNonvirtualShortMethodA = &CallCallNonvirtualShortMethodA;
functions_.CallNonvirtualShortMethodV = &CallCallNonvirtualShortMethodV;
functions_.CallNonvirtualVoidMethodA = &CallCallNonvirtualVoidMethodA;
functions_.CallNonvirtualVoidMethodV = &CallCallNonvirtualVoidMethodV;
functions_.CallObjectMethodA = &CallCallObjectMethodA;
functions_.CallObjectMethodV = &CallCallObjectMethodV;
functions_.CallShortMethodA = &CallCallShortMethodA;
functions_.CallShortMethodV = &CallCallShortMethodV;
functions_.CallStaticBooleanMethodA = &CallCallStaticBooleanMethodA;
functions_.CallStaticBooleanMethodV = &CallCallStaticBooleanMethodV;
functions_.CallStaticByteMethodA = &CallCallStaticByteMethodA;
functions_.CallStaticByteMethodV = &CallCallStaticByteMethodV;
functions_.CallStaticCharMethodA = &CallCallStaticCharMethodA;
functions_.CallStaticCharMethodV = &CallCallStaticCharMethodV;
functions_.CallStaticDoubleMethodA = &CallCallStaticDoubleMethodA;
functions_.CallStaticDoubleMethodV = &CallCallStaticDoubleMethodV;
functions_.CallStaticFloatMethodA = &CallCallStaticFloatMethodA;
functions_.CallStaticFloatMethodV = &CallCallStaticFloatMethodV;
functions_.CallStaticIntMethodA = &CallCallStaticIntMethodA;
functions_.CallStaticIntMethodV = &CallCallStaticIntMethodV;
functions_.CallStaticLongMethodA = &CallCallStaticLongMethodA;
functions_.CallStaticLongMethodV = &CallCallStaticLongMethodV;
functions_.CallStaticObjectMethodA = &CallCallStaticObjectMethodA;
functions_.CallStaticObjectMethodV = &CallCallStaticObjectMethodV;
functions_.CallStaticShortMethodA = &CallCallStaticShortMethodA;
functions_.CallStaticShortMethodV = &CallCallStaticShortMethodV;
functions_.CallStaticVoidMethodA = &CallCallStaticVoidMethodA;
functions_.CallStaticVoidMethodV = &CallCallStaticVoidMethodV;
functions_.CallVoidMethodA = &CallCallVoidMethodA;
functions_.CallVoidMethodV = &CallCallVoidMethodV;
functions_.DefineClass = &CallDefineClass;
functions_.DeleteGlobalRef = &CallDeleteGlobalRef;
functions_.DeleteLocalRef = &CallDeleteLocalRef;
functions_.DeleteWeakGlobalRef = &CallDeleteWeakGlobalRef;
functions_.EnsureLocalCapacity = &CallEnsureLocalCapacity;
functions_.ExceptionCheck = &CallExceptionCheck;
functions_.ExceptionClear = &CallExceptionClear;
functions_.ExceptionDescribe = &CallExceptionDescribe;
functions_.ExceptionOccurred = &CallExceptionOccurred;
functions_.FatalError = &CallFatalError;
functions_.FindClass = &CallFindClass;
functions_.FromReflectedField = &CallFromReflectedField;
functions_.FromReflectedMethod = &CallFromReflectedMethod;
functions_.GetArrayLength = &CallGetArrayLength;
functions_.GetBooleanArrayElements = &CallGetBooleanArrayElements;
functions_.GetBooleanArrayRegion = &CallGetBooleanArrayRegion;
functions_.GetBooleanField = &CallGetBooleanField;
functions_.GetByteArrayElements = &CallGetByteArrayElements;
functions_.GetByteArrayRegion = &CallGetByteArrayRegion;
functions_.GetByteField = &CallGetByteField;
functions_.GetCharArrayElements = &CallGetCharArrayElements;
functions_.GetCharArrayRegion = &CallGetCharArrayRegion;
functions_.GetCharField = &CallGetCharField;
functions_.GetDirectBufferAddress = &CallGetDirectBufferAddress;
functions_.GetDirectBufferCapacity = &CallGetDirectBufferCapacity;
functions_.GetDoubleArrayElements = &CallGetDoubleArrayElements;
functions_.GetDoubleArrayRegion = &CallGetDoubleArrayRegion;
functions_.GetDoubleField = &CallGetDoubleField;
functions_.GetFieldID = &CallGetFieldID;
functions_.GetFloatArrayElements = &CallGetFloatArrayElements;
functions_.GetFloatArrayRegion = &CallGetFloatArrayRegion;
functions_.GetFloatField = &CallGetFloatField;
functions_.GetIntArrayElements = &CallGetIntArrayElements;
functions_.GetIntArrayRegion = &CallGetIntArrayRegion;
functions_.GetIntField = &CallGetIntField;
functions_.GetJavaVM = &CallGetJavaVM;
functions_.GetLongArrayElements = &CallGetLongArrayElements;
functions_.GetLongArrayRegion = &CallGetLongArrayRegion;
functions_.GetLongField = &CallGetLongField;
functions_.GetMethodID = &CallGetMethodID;
functions_.GetObjectArrayElement = &CallGetObjectArrayElement;
functions_.GetObjectClass = &CallGetObjectClass;
functions_.GetObjectField = &CallGetObjectField;
functions_.GetObjectRefType = &CallGetObjectRefType;
functions_.GetPrimitiveArrayCritical = &CallGetPrimitiveArrayCritical;
functions_.GetShortArrayElements = &CallGetShortArrayElements;
functions_.GetShortArrayRegion = &CallGetShortArrayRegion;
functions_.GetShortField = &CallGetShortField;
functions_.GetStaticBooleanField = &CallGetStaticBooleanField;
functions_.GetStaticByteField = &CallGetStaticByteField;
functions_.GetStaticCharField = &CallGetStaticCharField;
functions_.GetStaticDoubleField = &CallGetStaticDoubleField;
functions_.GetStaticFieldID = &CallGetStaticFieldID;
functions_.GetStaticFloatField = &CallGetStaticFloatField;
functions_.GetStaticIntField = &CallGetStaticIntField;
functions_.GetStaticLongField = &CallGetStaticLongField;
functions_.GetStaticMethodID = &CallGetStaticMethodID;
functions_.GetStaticObjectField = &CallGetStaticObjectField;
functions_.GetStaticShortField = &CallGetStaticShortField;
functions_.GetStringChars = &CallGetStringChars;
functions_.GetStringCritical = &CallGetStringCritical;
functions_.GetStringLength = &CallGetStringLength;
functions_.GetStringRegion = &CallGetStringRegion;
functions_.GetStringUTFChars = &CallGetStringUTFChars;
functions_.GetStringUTFLength = &CallGetStringUTFLength;
functions_.GetStringUTFRegion = &CallGetStringUTFRegion;
functions_.GetSuperclass = &CallGetSuperclass;
functions_.GetVersion = &CallGetVersion;
functions_.IsAssignableFrom = &CallIsAssignableFrom;
functions_.IsInstanceOf = &CallIsInstanceOf;
functions_.IsSameObject = &CallIsSameObject;
functions_.MonitorEnter = &CallMonitorEnter;
functions_.MonitorExit = &CallMonitorExit;
functions_.NewBooleanArray = &CallNewBooleanArray;
functions_.NewByteArray = &CallNewByteArray;
functions_.NewCharArray = &CallNewCharArray;
functions_.NewDirectByteBuffer = &CallNewDirectByteBuffer;
functions_.NewDoubleArray = &CallNewDoubleArray;
functions_.NewFloatArray = &CallNewFloatArray;
functions_.NewGlobalRef = &CallNewGlobalRef;
functions_.NewIntArray = &CallNewIntArray;
functions_.NewLocalRef = &CallNewLocalRef;
functions_.NewLongArray = &CallNewLongArray;
functions_.NewObjectA = &CallNewObjectA;
functions_.NewObjectArray = &CallNewObjectArray;
functions_.NewObjectV = &CallNewObjectV;
functions_.NewShortArray = &CallNewShortArray;
functions_.NewString = &CallNewString;
functions_.NewStringUTF = &CallNewStringUTF;
functions_.NewWeakGlobalRef = &CallNewWeakGlobalRef;
functions_.PopLocalFrame = &CallPopLocalFrame;
functions_.PushLocalFrame = &CallPushLocalFrame;
functions_.RegisterNatives = &CallRegisterNatives;
functions_.ReleaseBooleanArrayElements = &CallReleaseBooleanArrayElements;
functions_.ReleaseByteArrayElements = &CallReleaseByteArrayElements;
functions_.ReleaseCharArrayElements = &CallReleaseCharArrayElements;
functions_.ReleaseDoubleArrayElements = &CallReleaseDoubleArrayElements;
functions_.ReleaseFloatArrayElements = &CallReleaseFloatArrayElements;
functions_.ReleaseIntArrayElements = &CallReleaseIntArrayElements;
functions_.ReleaseLongArrayElements = &CallReleaseLongArrayElements;
functions_.ReleasePrimitiveArrayCritical =
&CallReleasePrimitiveArrayCritical;
functions_.ReleaseShortArrayElements = &CallReleaseShortArrayElements;
functions_.ReleaseStringChars = &CallReleaseStringChars;
functions_.ReleaseStringCritical = &CallReleaseStringCritical;
functions_.ReleaseStringUTFChars = &CallReleaseStringUTFChars;
functions_.SetBooleanArrayRegion = &CallSetBooleanArrayRegion;
functions_.SetBooleanField = &CallSetBooleanField;
functions_.SetByteArrayRegion = &CallSetByteArrayRegion;
functions_.SetByteField = &CallSetByteField;
functions_.SetCharArrayRegion = &CallSetCharArrayRegion;
functions_.SetCharField = &CallSetCharField;
functions_.SetDoubleArrayRegion = &CallSetDoubleArrayRegion;
functions_.SetDoubleField = &CallSetDoubleField;
functions_.SetFloatArrayRegion = &CallSetFloatArrayRegion;
functions_.SetFloatField = &CallSetFloatField;
functions_.SetIntArrayRegion = &CallSetIntArrayRegion;
functions_.SetIntField = &CallSetIntField;
functions_.SetLongArrayRegion = &CallSetLongArrayRegion;
functions_.SetLongField = &CallSetLongField;
functions_.SetObjectArrayElement = &CallSetObjectArrayElement;
functions_.SetObjectField = &CallSetObjectField;
functions_.SetShortArrayRegion = &CallSetShortArrayRegion;
functions_.SetShortField = &CallSetShortField;
functions_.SetStaticBooleanField = &CallSetStaticBooleanField;
functions_.SetStaticByteField = &CallSetStaticByteField;
functions_.SetStaticCharField = &CallSetStaticCharField;
functions_.SetStaticDoubleField = &CallSetStaticDoubleField;
functions_.SetStaticFloatField = &CallSetStaticFloatField;
functions_.SetStaticIntField = &CallSetStaticIntField;
functions_.SetStaticLongField = &CallSetStaticLongField;
functions_.SetStaticObjectField = &CallSetStaticObjectField;
functions_.SetStaticShortField = &CallSetStaticShortField;
functions_.Throw = &CallThrow;
functions_.ThrowNew = &CallThrowNew;
functions_.ToReflectedField = &CallToReflectedField;
functions_.ToReflectedMethod = &CallToReflectedMethod;
functions_.UnregisterNatives = &CallUnregisterNatives;
}
virtual ~MockableJNIEnvFull() {}
virtual jobject AllocObject(jclass clazz) = 0;
virtual jboolean CallBooleanMethodA(jobject obj, jmethodID methodID,
InputJvalueArray args) = 0;
virtual jboolean CallBooleanMethodV(jobject obj, jmethodID methodID,
va_list args) = 0;
virtual jbyte CallByteMethodA(jobject obj, jmethodID methodID,
InputJvalueArray args) = 0;
virtual jbyte CallByteMethodV(jobject obj, jmethodID methodID,
va_list args) = 0;
virtual jchar CallCharMethodA(jobject obj, jmethodID methodID,
InputJvalueArray args) = 0;
virtual jchar CallCharMethodV(jobject obj, jmethodID methodID,
va_list args) = 0;
virtual jdouble CallDoubleMethodA(jobject obj, jmethodID methodID,
InputJvalueArray args) = 0;
virtual jdouble CallDoubleMethodV(jobject obj, jmethodID methodID,
va_list args) = 0;
virtual jfloat CallFloatMethodA(jobject obj, jmethodID methodID,
InputJvalueArray args) = 0;
virtual jfloat CallFloatMethodV(jobject obj, jmethodID methodID,
va_list args) = 0;
virtual jint CallIntMethodA(jobject obj, jmethodID methodID,
InputJvalueArray args) = 0;
virtual jint CallIntMethodV(jobject obj, jmethodID methodID,
va_list args) = 0;
virtual jlong CallLongMethodA(jobject obj, jmethodID methodID,
InputJvalueArray args) = 0;
virtual jlong CallLongMethodV(jobject obj, jmethodID methodID,
va_list args) = 0;
virtual jboolean CallNonvirtualBooleanMethodA(jobject obj, jclass clazz,
jmethodID methodID,
InputJvalueArray args) = 0;
virtual jboolean CallNonvirtualBooleanMethodV(jobject obj, jclass clazz,
jmethodID methodID,
va_list args) = 0;
virtual jbyte CallNonvirtualByteMethodA(jobject obj, jclass clazz,
jmethodID methodID,
InputJvalueArray args) = 0;
virtual jbyte CallNonvirtualByteMethodV(jobject obj, jclass clazz,
jmethodID methodID, va_list args) = 0;
virtual jchar CallNonvirtualCharMethodA(jobject obj, jclass clazz,
jmethodID methodID,
InputJvalueArray args) = 0;
virtual jchar CallNonvirtualCharMethodV(jobject obj, jclass clazz,
jmethodID methodID, va_list args) = 0;
virtual jdouble CallNonvirtualDoubleMethodA(jobject obj, jclass clazz,
jmethodID methodID,
InputJvalueArray args) = 0;
virtual jdouble CallNonvirtualDoubleMethodV(jobject obj, jclass clazz,
jmethodID methodID,
va_list args) = 0;
virtual jfloat CallNonvirtualFloatMethodA(jobject obj, jclass clazz,
jmethodID methodID,
InputJvalueArray args) = 0;
virtual jfloat CallNonvirtualFloatMethodV(jobject obj, jclass clazz,
jmethodID methodID,
va_list args) = 0;
virtual jint CallNonvirtualIntMethodA(jobject obj, jclass clazz,
jmethodID methodID,
InputJvalueArray args) = 0;
virtual jint CallNonvirtualIntMethodV(jobject obj, jclass clazz,
jmethodID methodID, va_list args) = 0;
virtual jlong CallNonvirtualLongMethodA(jobject obj, jclass clazz,
jmethodID methodID,
InputJvalueArray args) = 0;
virtual jlong CallNonvirtualLongMethodV(jobject obj, jclass clazz,
jmethodID methodID, va_list args) = 0;
virtual jobject CallNonvirtualObjectMethodA(jobject obj, jclass clazz,
jmethodID methodID,
InputJvalueArray args) = 0;
virtual jobject CallNonvirtualObjectMethodV(jobject obj, jclass clazz,
jmethodID methodID,
va_list args) = 0;
virtual jshort CallNonvirtualShortMethodA(jobject obj, jclass clazz,
jmethodID methodID,
InputJvalueArray args) = 0;
virtual jshort CallNonvirtualShortMethodV(jobject obj, jclass clazz,
jmethodID methodID,
va_list args) = 0;
virtual void CallNonvirtualVoidMethodA(jobject obj, jclass clazz,
jmethodID methodID,
InputJvalueArray args) = 0;
virtual void CallNonvirtualVoidMethodV(jobject obj, jclass clazz,
jmethodID methodID, va_list args) = 0;
virtual jobject CallObjectMethodA(jobject obj, jmethodID methodID,
InputJvalueArray args) = 0;
virtual jobject CallObjectMethodV(jobject obj, jmethodID methodID,
va_list args) = 0;
virtual jshort CallShortMethodA(jobject obj, jmethodID methodID,
InputJvalueArray args) = 0;
virtual jshort CallShortMethodV(jobject obj, jmethodID methodID,
va_list args) = 0;
virtual jboolean CallStaticBooleanMethodA(jclass clazz, jmethodID methodID,
InputJvalueArray args) = 0;
virtual jboolean CallStaticBooleanMethodV(jclass clazz, jmethodID methodID,
va_list args) = 0;
virtual jbyte CallStaticByteMethodA(jclass clazz, jmethodID methodID,
InputJvalueArray args) = 0;
virtual jbyte CallStaticByteMethodV(jclass clazz, jmethodID methodID,
va_list args) = 0;
virtual jchar CallStaticCharMethodA(jclass clazz, jmethodID methodID,
InputJvalueArray args) = 0;
virtual jchar CallStaticCharMethodV(jclass clazz, jmethodID methodID,
va_list args) = 0;
virtual jdouble CallStaticDoubleMethodA(jclass clazz, jmethodID methodID,
InputJvalueArray args) = 0;
virtual jdouble CallStaticDoubleMethodV(jclass clazz, jmethodID methodID,
va_list args) = 0;
virtual jfloat CallStaticFloatMethodA(jclass clazz, jmethodID methodID,
InputJvalueArray args) = 0;
virtual jfloat CallStaticFloatMethodV(jclass clazz, jmethodID methodID,
va_list args) = 0;
virtual jint CallStaticIntMethodA(jclass clazz, jmethodID methodID,
InputJvalueArray args) = 0;
virtual jint CallStaticIntMethodV(jclass clazz, jmethodID methodID,
va_list args) = 0;
virtual jlong CallStaticLongMethodA(jclass clazz, jmethodID methodID,
InputJvalueArray args) = 0;
virtual jlong CallStaticLongMethodV(jclass clazz, jmethodID methodID,
va_list args) = 0;
virtual jobject CallStaticObjectMethodA(jclass clazz, jmethodID methodID,
InputJvalueArray args) = 0;
virtual jobject CallStaticObjectMethodV(jclass clazz, jmethodID methodID,
va_list args) = 0;
virtual jshort CallStaticShortMethodA(jclass clazz, jmethodID methodID,
InputJvalueArray args) = 0;
virtual jshort CallStaticShortMethodV(jclass clazz, jmethodID methodID,
va_list args) = 0;
virtual void CallStaticVoidMethodA(jclass cls, jmethodID methodID,
InputJvalueArray args) = 0;
virtual void CallStaticVoidMethodV(jclass cls, jmethodID methodID,
va_list args) = 0;
virtual void CallVoidMethodA(jobject obj, jmethodID methodID,
InputJvalueArray args) = 0;
virtual void CallVoidMethodV(jobject obj, jmethodID methodID,
va_list args) = 0;
virtual jclass DefineClass(const char* name, jobject loader, const jbyte* buf,
jsize len) = 0;
virtual void DeleteGlobalRef(jobject gref) = 0;
virtual void DeleteLocalRef(jobject obj) = 0;
virtual void DeleteWeakGlobalRef(jweak ref) = 0;
virtual jint EnsureLocalCapacity(jint capacity) = 0;
virtual jboolean ExceptionCheck() = 0;
virtual void ExceptionClear() = 0;
virtual void ExceptionDescribe() = 0;
virtual jthrowable ExceptionOccurred() = 0;
virtual void FatalError(const char* msg) = 0;
virtual jclass FindClass(const char* name) = 0;
virtual jfieldID FromReflectedField(jobject field) = 0;
virtual jmethodID FromReflectedMethod(jobject method) = 0;
virtual jsize GetArrayLength(jarray array) = 0;
virtual jboolean* GetBooleanArrayElements(jbooleanArray array,
jboolean* isCopy) = 0;
virtual void GetBooleanArrayRegion(jbooleanArray array, jsize start,
jsize len, jboolean* buf) = 0;
virtual jboolean GetBooleanField(jobject obj, jfieldID fieldID) = 0;
virtual jbyte* GetByteArrayElements(jbyteArray array, jboolean* isCopy) = 0;
virtual void GetByteArrayRegion(jbyteArray array, jsize start, jsize len,
jbyte* buf) = 0;
virtual jbyte GetByteField(jobject obj, jfieldID fieldID) = 0;
virtual jchar* GetCharArrayElements(jcharArray array, jboolean* isCopy) = 0;
virtual void GetCharArrayRegion(jcharArray array, jsize start, jsize len,
jchar* buf) = 0;
virtual jchar GetCharField(jobject obj, jfieldID fieldID) = 0;
virtual void* GetDirectBufferAddress(jobject buf) = 0;
virtual jlong GetDirectBufferCapacity(jobject buf) = 0;
virtual jdouble* GetDoubleArrayElements(jdoubleArray array,
jboolean* isCopy) = 0;
virtual void GetDoubleArrayRegion(jdoubleArray array, jsize start, jsize len,
jdouble* buf) = 0;
virtual jdouble GetDoubleField(jobject obj, jfieldID fieldID) = 0;
virtual jfieldID GetFieldID(jclass clazz, const char* name,
const char* sig) = 0;
virtual jfloat* GetFloatArrayElements(jfloatArray array,
jboolean* isCopy) = 0;
virtual void GetFloatArrayRegion(jfloatArray array, jsize start, jsize len,
jfloat* buf) = 0;
virtual jfloat GetFloatField(jobject obj, jfieldID fieldID) = 0;
virtual jint* GetIntArrayElements(jintArray array, jboolean* isCopy) = 0;
virtual void GetIntArrayRegion(jintArray array, jsize start, jsize len,
jint* buf) = 0;
virtual jint GetIntField(jobject obj, jfieldID fieldID) = 0;
virtual jint GetJavaVM(JavaVM** vm) = 0;
virtual jlong* GetLongArrayElements(jlongArray array, jboolean* isCopy) = 0;
virtual void GetLongArrayRegion(jlongArray array, jsize start, jsize len,
jlong* buf) = 0;
virtual jlong GetLongField(jobject obj, jfieldID fieldID) = 0;
virtual jmethodID GetMethodID(jclass clazz, const char* name,
const char* sig) = 0;
virtual jobject GetObjectArrayElement(jobjectArray array, jsize index) = 0;
virtual jclass GetObjectClass(jobject obj) = 0;
virtual jobject GetObjectField(jobject obj, jfieldID fieldID) = 0;
virtual jobjectRefType GetObjectRefType(jobject obj) = 0;
virtual void* GetPrimitiveArrayCritical(jarray array, jboolean* isCopy) = 0;
virtual jshort* GetShortArrayElements(jshortArray array,
jboolean* isCopy) = 0;
virtual void GetShortArrayRegion(jshortArray array, jsize start, jsize len,
jshort* buf) = 0;
virtual jshort GetShortField(jobject obj, jfieldID fieldID) = 0;
virtual jboolean GetStaticBooleanField(jclass clazz, jfieldID fieldID) = 0;
virtual jbyte GetStaticByteField(jclass clazz, jfieldID fieldID) = 0;
virtual jchar GetStaticCharField(jclass clazz, jfieldID fieldID) = 0;
virtual jdouble GetStaticDoubleField(jclass clazz, jfieldID fieldID) = 0;
virtual jfieldID GetStaticFieldID(jclass clazz, const char* name,
const char* sig) = 0;
virtual jfloat GetStaticFloatField(jclass clazz, jfieldID fieldID) = 0;
virtual jint GetStaticIntField(jclass clazz, jfieldID fieldID) = 0;
virtual jlong GetStaticLongField(jclass clazz, jfieldID fieldID) = 0;
virtual jmethodID GetStaticMethodID(jclass clazz, const char* name,
const char* sig) = 0;
virtual jobject GetStaticObjectField(jclass clazz, jfieldID fieldID) = 0;
virtual jshort GetStaticShortField(jclass clazz, jfieldID fieldID) = 0;
virtual jsize GetStringLength(jstring str) = 0;
virtual void GetStringRegion(jstring str, jsize start, jsize len,
jchar* buf) = 0;
virtual const char* GetStringUTFChars(jstring str, jboolean* isCopy) = 0;
virtual jsize GetStringUTFLength(jstring str) = 0;
virtual void GetStringUTFRegion(jstring str, jsize start, jsize len,
char* buf) = 0;
virtual jclass GetSuperclass(jclass sub) = 0;
virtual jint GetVersion() = 0;
virtual jboolean IsAssignableFrom(jclass sub, jclass sup) = 0;
virtual jboolean IsInstanceOf(jobject obj, jclass clazz) = 0;
virtual jboolean IsSameObject(jobject obj1, jobject obj2) = 0;
virtual const jchar* GetStringChars(jstring str, jboolean* isCopy) = 0;
virtual const jchar* GetStringCritical(jstring str, jboolean* isCopy) = 0;
virtual jint MonitorEnter(jobject obj) = 0;
virtual jint MonitorExit(jobject obj) = 0;
virtual jbooleanArray NewBooleanArray(jsize len) = 0;
virtual jbyteArray NewByteArray(jsize len) = 0;
virtual jcharArray NewCharArray(jsize len) = 0;
virtual jobject NewDirectByteBuffer(void* address, jlong capacity) = 0;
virtual jdoubleArray NewDoubleArray(jsize len) = 0;
virtual jfloatArray NewFloatArray(jsize len) = 0;
virtual jobject NewGlobalRef(jobject lobj) = 0;
virtual jintArray NewIntArray(jsize len) = 0;
virtual jobject NewLocalRef(jobject ref) = 0;
virtual jlongArray NewLongArray(jsize len) = 0;
virtual jobject NewObjectA(jclass clazz, jmethodID methodID,
InputJvalueArray args) = 0;
virtual jobjectArray NewObjectArray(jsize len, jclass clazz,
jobject init) = 0;
virtual jobject NewObjectV(jclass clazz, jmethodID methodID,
va_list args) = 0;
virtual jshortArray NewShortArray(jsize len) = 0;
virtual jstring NewString(const jchar* unicode, jsize len) = 0;
virtual jstring NewStringUTF(const char* utf) = 0;
virtual jweak NewWeakGlobalRef(jobject obj) = 0;
virtual jobject PopLocalFrame(jobject result) = 0;
virtual jint PushLocalFrame(jint capacity) = 0;
virtual jint RegisterNatives(jclass clazz, const JNINativeMethod* methods,
jint nMethods) = 0;
virtual void ReleaseBooleanArrayElements(jbooleanArray array, jboolean* elems,
jint mode) = 0;
virtual void ReleaseByteArrayElements(jbyteArray array, jbyte* elems,
jint mode) = 0;
virtual void ReleaseCharArrayElements(jcharArray array, jchar* elems,
jint mode) = 0;
virtual void ReleaseDoubleArrayElements(jdoubleArray array, jdouble* elems,
jint mode) = 0;
virtual void ReleaseFloatArrayElements(jfloatArray array, jfloat* elems,
jint mode) = 0;
virtual void ReleaseIntArrayElements(jintArray array, jint* elems,
jint mode) = 0;
virtual void ReleaseLongArrayElements(jlongArray array, jlong* elems,
jint mode) = 0;
virtual void ReleasePrimitiveArrayCritical(jarray array, void* carray,
jint mode) = 0;
virtual void ReleaseShortArrayElements(jshortArray array, jshort* elems,
jint mode) = 0;
virtual void ReleaseStringChars(jstring str, const jchar* chars) = 0;
virtual void ReleaseStringCritical(jstring str, const jchar* cstring) = 0;
virtual void ReleaseStringUTFChars(jstring str, const char* chars) = 0;
virtual void SetBooleanArrayRegion(jbooleanArray array, jsize start,
jsize len, const jboolean* buf) = 0;
virtual void SetBooleanField(jobject obj, jfieldID fieldID, jboolean val) = 0;
virtual void SetByteArrayRegion(jbyteArray array, jsize start, jsize len,
const jbyte* buf) = 0;
virtual void SetByteField(jobject obj, jfieldID fieldID, jbyte val) = 0;
virtual void SetCharArrayRegion(jcharArray array, jsize start, jsize len,
const jchar* buf) = 0;
virtual void SetCharField(jobject obj, jfieldID fieldID, jchar val) = 0;
virtual void SetDoubleArrayRegion(jdoubleArray array, jsize start, jsize len,
const jdouble* buf) = 0;
virtual void SetDoubleField(jobject obj, jfieldID fieldID, jdouble val) = 0;
virtual void SetFloatArrayRegion(jfloatArray array, jsize start, jsize len,
const jfloat* buf) = 0;
virtual void SetFloatField(jobject obj, jfieldID fieldID, jfloat val) = 0;
virtual void SetIntArrayRegion(jintArray array, jsize start, jsize len,
const jint* buf) = 0;
virtual void SetIntField(jobject obj, jfieldID fieldID, jint val) = 0;
virtual void SetLongArrayRegion(jlongArray array, jsize start, jsize len,
const jlong* buf) = 0;
virtual void SetLongField(jobject obj, jfieldID fieldID, jlong val) = 0;
virtual void SetObjectArrayElement(jobjectArray array, jsize index,
jobject val) = 0;
virtual void SetObjectField(jobject obj, jfieldID fieldID, jobject val) = 0;
virtual void SetShortArrayRegion(jshortArray array, jsize start, jsize len,
const jshort* buf) = 0;
virtual void SetShortField(jobject obj, jfieldID fieldID, jshort val) = 0;
virtual void SetStaticBooleanField(jclass clazz, jfieldID fieldID,
jboolean value) = 0;
virtual void SetStaticByteField(jclass clazz, jfieldID fieldID,
jbyte value) = 0;
virtual void SetStaticCharField(jclass clazz, jfieldID fieldID,
jchar value) = 0;
virtual void SetStaticDoubleField(jclass clazz, jfieldID fieldID,
jdouble value) = 0;
virtual void SetStaticFloatField(jclass clazz, jfieldID fieldID,
jfloat value) = 0;
virtual void SetStaticIntField(jclass clazz, jfieldID fieldID,
jint value) = 0;
virtual void SetStaticLongField(jclass clazz, jfieldID fieldID,
jlong value) = 0;
virtual void SetStaticObjectField(jclass clazz, jfieldID fieldID,
jobject value) = 0;
virtual void SetStaticShortField(jclass clazz, jfieldID fieldID,
jshort value) = 0;
virtual jint Throw(jthrowable obj) = 0;
virtual jint ThrowNew(jclass clazz, const char* msg) = 0;
virtual jobject ToReflectedField(jclass cls, jfieldID fieldID,
jboolean isStatic) = 0;
virtual jobject ToReflectedMethod(jclass cls, jmethodID methodID,
jboolean isStatic) = 0;
virtual jint UnregisterNatives(jclass clazz) = 0;
private:
static jobject JNICALL CallAllocObject(JNIEnv* env, jclass clazz) {
return static_cast<MockableJNIEnvFull*>(env)->AllocObject(clazz);
}
static jboolean JNICALL CallCallBooleanMethodA(JNIEnv* env, jobject obj,
jmethodID methodID,
InputJvalueArray args) {
return static_cast<MockableJNIEnvFull*>(env)->CallBooleanMethodA(
obj, methodID, args);
}
static jboolean JNICALL CallCallBooleanMethodV(JNIEnv* env, jobject obj,
jmethodID methodID,
va_list args) {
return static_cast<MockableJNIEnvFull*>(env)->CallBooleanMethodV(
obj, methodID, args);
}
static jbyte JNICALL CallCallByteMethodA(JNIEnv* env, jobject obj,
jmethodID methodID,
InputJvalueArray args) {
return static_cast<MockableJNIEnvFull*>(env)->CallByteMethodA(obj, methodID,
args);
}
static jbyte JNICALL CallCallByteMethodV(JNIEnv* env, jobject obj,
jmethodID methodID, va_list args) {
return static_cast<MockableJNIEnvFull*>(env)->CallByteMethodV(obj, methodID,
args);
}
static jchar JNICALL CallCallCharMethodA(JNIEnv* env, jobject obj,
jmethodID methodID,
InputJvalueArray args) {
return static_cast<MockableJNIEnvFull*>(env)->CallCharMethodA(obj, methodID,
args);
}
static jchar JNICALL CallCallCharMethodV(JNIEnv* env, jobject obj,
jmethodID methodID, va_list args) {
return static_cast<MockableJNIEnvFull*>(env)->CallCharMethodV(obj, methodID,
args);
}
static jdouble JNICALL CallCallDoubleMethodA(JNIEnv* env, jobject obj,
jmethodID methodID,
InputJvalueArray args) {
return static_cast<MockableJNIEnvFull*>(env)->CallDoubleMethodA(
obj, methodID, args);
}
static jdouble JNICALL CallCallDoubleMethodV(JNIEnv* env, jobject obj,
jmethodID methodID,
va_list args) {
return static_cast<MockableJNIEnvFull*>(env)->CallDoubleMethodV(
obj, methodID, args);
}
static jfloat JNICALL CallCallFloatMethodA(JNIEnv* env, jobject obj,
jmethodID methodID,
InputJvalueArray args) {
return static_cast<MockableJNIEnvFull*>(env)->CallFloatMethodA(
obj, methodID, args);
}
static jfloat JNICALL CallCallFloatMethodV(JNIEnv* env, jobject obj,
jmethodID methodID, va_list args) {
return static_cast<MockableJNIEnvFull*>(env)->CallFloatMethodV(
obj, methodID, args);
}
static jint JNICALL CallCallIntMethodA(JNIEnv* env, jobject obj,
jmethodID methodID,
InputJvalueArray args) {
return static_cast<MockableJNIEnvFull*>(env)->CallIntMethodA(obj, methodID,
args);
}
static jint JNICALL CallCallIntMethodV(JNIEnv* env, jobject obj,
jmethodID methodID, va_list args) {
return static_cast<MockableJNIEnvFull*>(env)->CallIntMethodV(obj, methodID,
args);
}
static jlong JNICALL CallCallLongMethodA(JNIEnv* env, jobject obj,
jmethodID methodID,
InputJvalueArray args) {
return static_cast<MockableJNIEnvFull*>(env)->CallLongMethodA(obj, methodID,
args);
}
static jlong JNICALL CallCallLongMethodV(JNIEnv* env, jobject obj,
jmethodID methodID, va_list args) {
return static_cast<MockableJNIEnvFull*>(env)->CallLongMethodV(obj, methodID,
args);
}
static jboolean JNICALL
CallCallNonvirtualBooleanMethodA(JNIEnv* env, jobject obj, jclass clazz,
jmethodID methodID, InputJvalueArray args) {
return static_cast<MockableJNIEnvFull*>(env)->CallNonvirtualBooleanMethodA(
obj, clazz, methodID, args);
}
static jboolean JNICALL CallCallNonvirtualBooleanMethodV(JNIEnv* env,
jobject obj,
jclass clazz,
jmethodID methodID,
va_list args) {
return static_cast<MockableJNIEnvFull*>(env)->CallNonvirtualBooleanMethodV(
obj, clazz, methodID, args);
}
static jbyte JNICALL CallCallNonvirtualByteMethodA(JNIEnv* env, jobject obj,
jclass clazz,
jmethodID methodID,
InputJvalueArray args) {
return static_cast<MockableJNIEnvFull*>(env)->CallNonvirtualByteMethodA(
obj, clazz, methodID, args);
}
static jbyte JNICALL CallCallNonvirtualByteMethodV(JNIEnv* env, jobject obj,
jclass clazz,
jmethodID methodID,
va_list args) {
return static_cast<MockableJNIEnvFull*>(env)->CallNonvirtualByteMethodV(
obj, clazz, methodID, args);
}
static jchar JNICALL CallCallNonvirtualCharMethodA(JNIEnv* env, jobject obj,
jclass clazz,
jmethodID methodID,
InputJvalueArray args) {
return static_cast<MockableJNIEnvFull*>(env)->CallNonvirtualCharMethodA(
obj, clazz, methodID, args);
}
static jchar JNICALL CallCallNonvirtualCharMethodV(JNIEnv* env, jobject obj,
jclass clazz,
jmethodID methodID,
va_list args) {
return static_cast<MockableJNIEnvFull*>(env)->CallNonvirtualCharMethodV(
obj, clazz, methodID, args);
}
static jdouble JNICALL
CallCallNonvirtualDoubleMethodA(JNIEnv* env, jobject obj, jclass clazz,
jmethodID methodID, InputJvalueArray args) {
return static_cast<MockableJNIEnvFull*>(env)->CallNonvirtualDoubleMethodA(
obj, clazz, methodID, args);
}
static jdouble JNICALL CallCallNonvirtualDoubleMethodV(JNIEnv* env,
jobject obj,
jclass clazz,
jmethodID methodID,
va_list args) {
return static_cast<MockableJNIEnvFull*>(env)->CallNonvirtualDoubleMethodV(
obj, clazz, methodID, args);
}
static jfloat JNICALL CallCallNonvirtualFloatMethodA(JNIEnv* env, jobject obj,
jclass clazz,
jmethodID methodID,
InputJvalueArray args) {
return static_cast<MockableJNIEnvFull*>(env)->CallNonvirtualFloatMethodA(
obj, clazz, methodID, args);
}
static jfloat JNICALL CallCallNonvirtualFloatMethodV(JNIEnv* env, jobject obj,
jclass clazz,
jmethodID methodID,
va_list args) {
return static_cast<MockableJNIEnvFull*>(env)->CallNonvirtualFloatMethodV(
obj, clazz, methodID, args);
}
static jint JNICALL CallCallNonvirtualIntMethodA(JNIEnv* env, jobject obj,
jclass clazz,
jmethodID methodID,
InputJvalueArray args) {
return static_cast<MockableJNIEnvFull*>(env)->CallNonvirtualIntMethodA(
obj, clazz, methodID, args);
}
static jint JNICALL CallCallNonvirtualIntMethodV(JNIEnv* env, jobject obj,
jclass clazz,
jmethodID methodID,
va_list args) {
return static_cast<MockableJNIEnvFull*>(env)->CallNonvirtualIntMethodV(
obj, clazz, methodID, args);
}
static jlong JNICALL CallCallNonvirtualLongMethodA(JNIEnv* env, jobject obj,
jclass clazz,
jmethodID methodID,
InputJvalueArray args) {
return static_cast<MockableJNIEnvFull*>(env)->CallNonvirtualLongMethodA(
obj, clazz, methodID, args);
}
static jlong JNICALL CallCallNonvirtualLongMethodV(JNIEnv* env, jobject obj,
jclass clazz,
jmethodID methodID,
va_list args) {
return static_cast<MockableJNIEnvFull*>(env)->CallNonvirtualLongMethodV(
obj, clazz, methodID, args);
}
static jobject JNICALL
CallCallNonvirtualObjectMethodA(JNIEnv* env, jobject obj, jclass clazz,
jmethodID methodID, InputJvalueArray args) {
return static_cast<MockableJNIEnvFull*>(env)->CallNonvirtualObjectMethodA(
obj, clazz, methodID, args);
}
static jobject JNICALL CallCallNonvirtualObjectMethodV(JNIEnv* env,
jobject obj,
jclass clazz,
jmethodID methodID,
va_list args) {
return static_cast<MockableJNIEnvFull*>(env)->CallNonvirtualObjectMethodV(
obj, clazz, methodID, args);
}
static jshort JNICALL CallCallNonvirtualShortMethodA(JNIEnv* env, jobject obj,
jclass clazz,
jmethodID methodID,
InputJvalueArray args) {
return static_cast<MockableJNIEnvFull*>(env)->CallNonvirtualShortMethodA(
obj, clazz, methodID, args);
}
static jshort JNICALL CallCallNonvirtualShortMethodV(JNIEnv* env, jobject obj,
jclass clazz,
jmethodID methodID,
va_list args) {
return static_cast<MockableJNIEnvFull*>(env)->CallNonvirtualShortMethodV(
obj, clazz, methodID, args);
}
static void JNICALL CallCallNonvirtualVoidMethodA(JNIEnv* env, jobject obj,
jclass clazz,
jmethodID methodID,
InputJvalueArray args) {
static_cast<MockableJNIEnvFull*>(env)->CallNonvirtualVoidMethodA(
obj, clazz, methodID, args);
}
static void JNICALL CallCallNonvirtualVoidMethodV(JNIEnv* env, jobject obj,
jclass clazz,
jmethodID methodID,
va_list args) {
static_cast<MockableJNIEnvFull*>(env)->CallNonvirtualVoidMethodV(
obj, clazz, methodID, args);
}
static jobject JNICALL CallCallObjectMethodA(JNIEnv* env, jobject obj,
jmethodID methodID,
InputJvalueArray args) {
return static_cast<MockableJNIEnvFull*>(env)->CallObjectMethodA(
obj, methodID, args);
}
static jobject JNICALL CallCallObjectMethodV(JNIEnv* env, jobject obj,
jmethodID methodID,
va_list args) {
return static_cast<MockableJNIEnvFull*>(env)->CallObjectMethodV(
obj, methodID, args);
}
static jshort JNICALL CallCallShortMethodA(JNIEnv* env, jobject obj,
jmethodID methodID,
InputJvalueArray args) {
return static_cast<MockableJNIEnvFull*>(env)->CallShortMethodA(
obj, methodID, args);
}
static jshort JNICALL CallCallShortMethodV(JNIEnv* env, jobject obj,
jmethodID methodID, va_list args) {
return static_cast<MockableJNIEnvFull*>(env)->CallShortMethodV(
obj, methodID, args);
}
static jboolean JNICALL CallCallStaticBooleanMethodA(JNIEnv* env,
jclass clazz,
jmethodID methodID,
InputJvalueArray args) {
return static_cast<MockableJNIEnvFull*>(env)->CallStaticBooleanMethodA(
clazz, methodID, args);
}
static jboolean JNICALL CallCallStaticBooleanMethodV(JNIEnv* env,
jclass clazz,
jmethodID methodID,
va_list args) {
return static_cast<MockableJNIEnvFull*>(env)->CallStaticBooleanMethodV(
clazz, methodID, args);
}
static jbyte JNICALL CallCallStaticByteMethodA(JNIEnv* env, jclass clazz,
jmethodID methodID,
InputJvalueArray args) {
return static_cast<MockableJNIEnvFull*>(env)->CallStaticByteMethodA(
clazz, methodID, args);
}
static jbyte JNICALL CallCallStaticByteMethodV(JNIEnv* env, jclass clazz,
jmethodID methodID,
va_list args) {
return static_cast<MockableJNIEnvFull*>(env)->CallStaticByteMethodV(
clazz, methodID, args);
}
static jchar JNICALL CallCallStaticCharMethodA(JNIEnv* env, jclass clazz,
jmethodID methodID,
InputJvalueArray args) {
return static_cast<MockableJNIEnvFull*>(env)->CallStaticCharMethodA(
clazz, methodID, args);
}
static jchar JNICALL CallCallStaticCharMethodV(JNIEnv* env, jclass clazz,
jmethodID methodID,
va_list args) {
return static_cast<MockableJNIEnvFull*>(env)->CallStaticCharMethodV(
clazz, methodID, args);
}
static jdouble JNICALL CallCallStaticDoubleMethodA(JNIEnv* env, jclass clazz,
jmethodID methodID,
InputJvalueArray args) {
return static_cast<MockableJNIEnvFull*>(env)->CallStaticDoubleMethodA(
clazz, methodID, args);
}
static jdouble JNICALL CallCallStaticDoubleMethodV(JNIEnv* env, jclass clazz,
jmethodID methodID,
va_list args) {
return static_cast<MockableJNIEnvFull*>(env)->CallStaticDoubleMethodV(
clazz, methodID, args);
}
static jfloat JNICALL CallCallStaticFloatMethodA(JNIEnv* env, jclass clazz,
jmethodID methodID,
InputJvalueArray args) {
return static_cast<MockableJNIEnvFull*>(env)->CallStaticFloatMethodA(
clazz, methodID, args);
}
static jfloat JNICALL CallCallStaticFloatMethodV(JNIEnv* env, jclass clazz,
jmethodID methodID,
va_list args) {
return static_cast<MockableJNIEnvFull*>(env)->CallStaticFloatMethodV(
clazz, methodID, args);
}
static jint JNICALL CallCallStaticIntMethodA(JNIEnv* env, jclass clazz,
jmethodID methodID,
InputJvalueArray args) {
return static_cast<MockableJNIEnvFull*>(env)->CallStaticIntMethodA(
clazz, methodID, args);
}
static jint JNICALL CallCallStaticIntMethodV(JNIEnv* env, jclass clazz,
jmethodID methodID,
va_list args) {
return static_cast<MockableJNIEnvFull*>(env)->CallStaticIntMethodV(
clazz, methodID, args);
}
static jlong JNICALL CallCallStaticLongMethodA(JNIEnv* env, jclass clazz,
jmethodID methodID,
InputJvalueArray args) {
return static_cast<MockableJNIEnvFull*>(env)->CallStaticLongMethodA(
clazz, methodID, args);
}
static jlong JNICALL CallCallStaticLongMethodV(JNIEnv* env, jclass clazz,
jmethodID methodID,
va_list args) {
return static_cast<MockableJNIEnvFull*>(env)->CallStaticLongMethodV(
clazz, methodID, args);
}
static jobject JNICALL CallCallStaticObjectMethodA(JNIEnv* env, jclass clazz,
jmethodID methodID,
InputJvalueArray args) {
return static_cast<MockableJNIEnvFull*>(env)->CallStaticObjectMethodA(
clazz, methodID, args);
}
static jobject JNICALL CallCallStaticObjectMethodV(JNIEnv* env, jclass clazz,
jmethodID methodID,
va_list args) {
return static_cast<MockableJNIEnvFull*>(env)->CallStaticObjectMethodV(
clazz, methodID, args);
}
static jshort JNICALL CallCallStaticShortMethodA(JNIEnv* env, jclass clazz,
jmethodID methodID,
InputJvalueArray args) {
return static_cast<MockableJNIEnvFull*>(env)->CallStaticShortMethodA(
clazz, methodID, args);
}
static jshort JNICALL CallCallStaticShortMethodV(JNIEnv* env, jclass clazz,
jmethodID methodID,
va_list args) {
return static_cast<MockableJNIEnvFull*>(env)->CallStaticShortMethodV(
clazz, methodID, args);
}
static void JNICALL CallCallStaticVoidMethodA(JNIEnv* env, jclass cls,
jmethodID methodID,
InputJvalueArray args) {
static_cast<MockableJNIEnvFull*>(env)->CallStaticVoidMethodA(cls, methodID,
args);
}
static void JNICALL CallCallStaticVoidMethodV(JNIEnv* env, jclass cls,
jmethodID methodID,
va_list args) {
static_cast<MockableJNIEnvFull*>(env)->CallStaticVoidMethodV(cls, methodID,
args);
}
static void JNICALL CallCallVoidMethodA(JNIEnv* env, jobject obj,
jmethodID methodID,
InputJvalueArray args) {
static_cast<MockableJNIEnvFull*>(env)->CallVoidMethodA(obj, methodID, args);
}
static void JNICALL CallCallVoidMethodV(JNIEnv* env, jobject obj,
jmethodID methodID, va_list args) {
static_cast<MockableJNIEnvFull*>(env)->CallVoidMethodV(obj, methodID, args);
}
static jclass JNICALL CallDefineClass(JNIEnv* env, const char* name,
jobject loader, const jbyte* buf,
jsize len) {
return static_cast<MockableJNIEnvFull*>(env)->DefineClass(name, loader, buf,
len);
}
static void JNICALL CallDeleteGlobalRef(JNIEnv* env, jobject gref) {
static_cast<MockableJNIEnvFull*>(env)->DeleteGlobalRef(gref);
}
static void JNICALL CallDeleteLocalRef(JNIEnv* env, jobject obj) {
static_cast<MockableJNIEnvFull*>(env)->DeleteLocalRef(obj);
}
static void JNICALL CallDeleteWeakGlobalRef(JNIEnv* env, jweak ref) {
static_cast<MockableJNIEnvFull*>(env)->DeleteWeakGlobalRef(ref);
}
static jint JNICALL CallEnsureLocalCapacity(JNIEnv* env, jint capacity) {
return static_cast<MockableJNIEnvFull*>(env)->EnsureLocalCapacity(capacity);
}
static jboolean JNICALL CallExceptionCheck(JNIEnv* env) {
return static_cast<MockableJNIEnvFull*>(env)->ExceptionCheck();
}
static void JNICALL CallExceptionClear(JNIEnv* env) {
static_cast<MockableJNIEnvFull*>(env)->ExceptionClear();
}
static void JNICALL CallExceptionDescribe(JNIEnv* env) {
static_cast<MockableJNIEnvFull*>(env)->ExceptionDescribe();
}
static jthrowable JNICALL CallExceptionOccurred(JNIEnv* env) {
return static_cast<MockableJNIEnvFull*>(env)->ExceptionOccurred();
}
static void JNICALL CallFatalError(JNIEnv* env, const char* msg) {
static_cast<MockableJNIEnvFull*>(env)->FatalError(msg);
}
static jclass JNICALL CallFindClass(JNIEnv* env, const char* name) {
return static_cast<MockableJNIEnvFull*>(env)->FindClass(name);
}
static jfieldID JNICALL CallFromReflectedField(JNIEnv* env, jobject field) {
return static_cast<MockableJNIEnvFull*>(env)->FromReflectedField(field);
}
static jmethodID JNICALL CallFromReflectedMethod(JNIEnv* env,
jobject method) {
return static_cast<MockableJNIEnvFull*>(env)->FromReflectedMethod(method);
}
static jsize JNICALL CallGetArrayLength(JNIEnv* env, jarray array) {
return static_cast<MockableJNIEnvFull*>(env)->GetArrayLength(array);
}
static jboolean* JNICALL CallGetBooleanArrayElements(JNIEnv* env,
jbooleanArray array,
jboolean* isCopy) {
return static_cast<MockableJNIEnvFull*>(env)->GetBooleanArrayElements(
array, isCopy);
}
static void JNICALL CallGetBooleanArrayRegion(JNIEnv* env,