Lines Matching refs:oracle
25 const std::vector<NativeT>& oracle) { in WriteViaOperator() argument
27 for (size_t i = 0; i < oracle.size(); i++) { in WriteViaOperator()
28 (*aliasedBuffer)[i] = oracle[i]; in WriteViaOperator()
34 const std::vector<NativeT>& oracle) { in WriteViaSetValue() argument
36 for (size_t i = 0; i < oracle.size(); i++) { in WriteViaSetValue()
37 aliasedBuffer->SetValue(i, oracle[i]); in WriteViaSetValue()
45 const std::vector<NativeT>& oracle) { in ReadAndValidate() argument
47 for (size_t i = 0; i < oracle.size(); i++) { in ReadAndValidate()
50 EXPECT_TRUE(v1 == oracle[i]); in ReadAndValidate()
51 EXPECT_TRUE(v2 == oracle[i]); in ReadAndValidate()
55 EXPECT_TRUE(aliasedBuffer->GetJSArray()->Length() == oracle.size()); in ReadAndValidate()
58 (oracle.size() * sizeof(NativeT))); in ReadAndValidate()
64 for (size_t i = 0; i < oracle.size(); i++) { in ReadAndValidate()
73 EXPECT_TRUE(actualValue == oracle[i]); in ReadAndValidate()
86 std::vector<NativeT> oracle(size); in ReadWriteTest() local
87 CreateOracleValues(&oracle); in ReadWriteTest()
88 WriteViaOperator(&ab, oracle); in ReadWriteTest()
89 ReadAndValidate(isolate, context, &ab, oracle); in ReadWriteTest()
91 WriteViaSetValue(&ab, oracle); in ReadWriteTest()
96 ReadAndValidate(isolate, context, &ab2, oracle); in ReadWriteTest()
98 ReadAndValidate(isolate, context, &ab, oracle); in ReadWriteTest()