Lines Matching refs:R
17 __orc_rt_CWrapperFunctionResult R; in TEST() local
18 __orc_rt_CWrapperFunctionResultInit(&R); in TEST()
20 EXPECT_EQ(R.Size, 0U); in TEST()
21 EXPECT_EQ(R.Data.ValuePtr, nullptr); in TEST()
24 EXPECT_EQ(__orc_rt_CWrapperFunctionResultGetOutOfBandError(&R), nullptr); in TEST()
27 __orc_rt_DisposeCWrapperFunctionResult(&R); in TEST()
33 auto R = __orc_rt_CWrapperFunctionResultAllocate(SmallAllocSize); in TEST() local
34 char *DataPtr = __orc_rt_CWrapperFunctionResultData(&R); in TEST()
41 EXPECT_EQ(R.Size, SmallAllocSize); in TEST()
43 EXPECT_EQ(R.Data.Value[I], (char)(0x55 + I)) in TEST()
47 EXPECT_EQ(__orc_rt_CWrapperFunctionResultGetOutOfBandError(&R), nullptr); in TEST()
51 EXPECT_EQ(__orc_rt_CWrapperFunctionResultData(&R), R.Data.Value); in TEST()
52 EXPECT_EQ(__orc_rt_CWrapperFunctionResultSize(&R), SmallAllocSize); in TEST()
53 EXPECT_FALSE(__orc_rt_CWrapperFunctionResultEmpty(&R)); in TEST()
54 EXPECT_EQ(__orc_rt_CWrapperFunctionResultGetOutOfBandError(&R), nullptr); in TEST()
57 __orc_rt_DisposeCWrapperFunctionResult(&R); in TEST()
63 auto R = __orc_rt_CWrapperFunctionResultAllocate(LargeAllocSize); in TEST() local
64 char *DataPtr = __orc_rt_CWrapperFunctionResultData(&R); in TEST()
71 EXPECT_EQ(R.Size, LargeAllocSize); in TEST()
72 EXPECT_EQ(R.Data.ValuePtr, DataPtr); in TEST()
74 EXPECT_EQ(R.Data.ValuePtr[I], (char)(0x55 + I)) in TEST()
78 EXPECT_EQ(__orc_rt_CWrapperFunctionResultGetOutOfBandError(&R), nullptr); in TEST()
82 EXPECT_EQ(__orc_rt_CWrapperFunctionResultData(&R), R.Data.ValuePtr); in TEST()
83 EXPECT_EQ(__orc_rt_CWrapperFunctionResultSize(&R), LargeAllocSize); in TEST()
84 EXPECT_FALSE(__orc_rt_CWrapperFunctionResultEmpty(&R)); in TEST()
85 EXPECT_EQ(__orc_rt_CWrapperFunctionResultGetOutOfBandError(&R), nullptr); in TEST()
88 __orc_rt_DisposeCWrapperFunctionResult(&R); in TEST()
98 __orc_rt_CWrapperFunctionResult R = in TEST() local
103 EXPECT_EQ(R.Size, SmallAllocSize); in TEST()
105 EXPECT_EQ(R.Data.Value[I], (char)(0x55 + I)) in TEST()
109 __orc_rt_DisposeCWrapperFunctionResult(&R); in TEST()
119 __orc_rt_CWrapperFunctionResult R = in TEST() local
124 EXPECT_EQ(R.Size, LargeAllocSize); in TEST()
126 EXPECT_EQ(R.Data.ValuePtr[I], (char)(0x55 + I)) in TEST()
130 __orc_rt_DisposeCWrapperFunctionResult(&R); in TEST()
141 __orc_rt_CWrapperFunctionResult R = in TEST() local
146 EXPECT_EQ(R.Size, SmallAllocSize); in TEST()
148 EXPECT_EQ(R.Data.Value[I], (char)('a' + I)) in TEST()
150 EXPECT_EQ(R.Data.Value[SmallAllocSize - 1], '\0') in TEST()
154 __orc_rt_DisposeCWrapperFunctionResult(&R); in TEST()
165 __orc_rt_CWrapperFunctionResult R = in TEST() local
170 EXPECT_EQ(R.Size, LargeAllocSize); in TEST()
172 EXPECT_EQ(R.Data.ValuePtr[I], (char)('a' + I)) in TEST()
174 EXPECT_EQ(R.Data.ValuePtr[LargeAllocSize - 1], '\0') in TEST()
178 __orc_rt_DisposeCWrapperFunctionResult(&R); in TEST()
183 __orc_rt_CWrapperFunctionResult R = in TEST() local
187 EXPECT_DEATH({ __orc_rt_CWrapperFunctionResultData(&R); }, in TEST()
189 EXPECT_DEATH({ __orc_rt_CWrapperFunctionResultSize(&R); }, in TEST()
193 EXPECT_FALSE(__orc_rt_CWrapperFunctionResultEmpty(&R)); in TEST()
194 const char *OOBErrMsg = __orc_rt_CWrapperFunctionResultGetOutOfBandError(&R); in TEST()
199 __orc_rt_DisposeCWrapperFunctionResult(&R); in TEST()