Searched refs:mockBuffer (Results 1 – 6 of 6) sorted by relevance
/hardware/interfaces/neuralnetworks/aidl/utils/test/ |
D | BufferTest.cpp | 72 const auto mockBuffer = MockBuffer::create(); in TEST() local 75 const auto result = Buffer::create(mockBuffer, kInvalidToken); in TEST() 84 const auto mockBuffer = MockBuffer::create(); in TEST() local 85 const auto buffer = Buffer::create(mockBuffer, kToken).value(); in TEST() 96 const auto mockBuffer = MockBuffer::create(); in TEST() local 97 const auto buffer = Buffer::create(mockBuffer, kToken).value(); in TEST() 98 EXPECT_CALL(*mockBuffer, copyTo(_)).Times(1).WillOnce(InvokeWithoutArgs(makeStatusOk)); in TEST() 109 const auto mockBuffer = MockBuffer::create(); in TEST() local 110 const auto buffer = Buffer::create(mockBuffer, kToken).value(); in TEST() 111 EXPECT_CALL(*mockBuffer, copyTo(_)).Times(1).WillOnce(InvokeWithoutArgs(makeGeneralFailure)); in TEST() [all …]
|
D | DeviceTest.cpp | 814 const auto mockBuffer = DeviceBuffer{.buffer = MockBuffer::create(), .token = 1}; in TEST() 817 .WillOnce(DoAll(SetArgPointee<4>(mockBuffer), InvokeWithoutArgs(makeStatusOk))); in TEST()
|
/hardware/interfaces/neuralnetworks/1.3/utils/test/ |
D | BufferTest.cpp | 70 const auto mockBuffer = MockBuffer::create(); in TEST() local 73 const auto result = Buffer::create(mockBuffer, kInvalidToken); in TEST() 82 const auto mockBuffer = MockBuffer::create(); in TEST() local 83 const auto buffer = Buffer::create(mockBuffer, kToken).value(); in TEST() 94 const auto mockBuffer = MockBuffer::create(); in TEST() local 95 const auto buffer = Buffer::create(mockBuffer, kToken).value(); in TEST() 96 EXPECT_CALL(*mockBuffer, copyTo(_)).Times(1).WillOnce(InvokeWithoutArgs(makeSuccessful)); in TEST() 107 const auto mockBuffer = MockBuffer::create(); in TEST() local 108 const auto buffer = Buffer::create(mockBuffer, kToken).value(); in TEST() 109 EXPECT_CALL(*mockBuffer, copyTo(_)).Times(1).WillOnce(InvokeWithoutArgs(makeGeneralError)); in TEST() [all …]
|
D | DeviceTest.cpp | 905 const auto mockBuffer = MockBuffer::create(); in TEST() local 909 .WillOnce(Invoke(makeAllocateReturn(ErrorStatus::NONE, mockBuffer, token))); in TEST()
|
/hardware/interfaces/neuralnetworks/utils/common/test/ |
D | ResilientBufferTest.cpp | 46 auto mockBuffer = std::make_shared<const nn::MockBuffer>(); in setup() local 49 EXPECT_CALL(*mockBufferFactory, Call()).Times(1).WillOnce(Return(mockBuffer)); in setup() 52 return std::make_tuple(std::move(mockBuffer), std::move(mockBufferFactory), std::move(buffer)); in setup() 91 const auto [mockBuffer, mockBufferFactory, buffer] = setup(); in TEST() 97 EXPECT_TRUE(result == mockBuffer); in TEST() 102 const auto [mockBuffer, mockBufferFactory, buffer] = setup(); in TEST() 103 EXPECT_CALL(*mockBuffer, getToken()).Times(1).WillOnce(Return(kToken)); in TEST() 114 const auto [mockBuffer, mockBufferFactory, buffer] = setup(); in TEST() 115 EXPECT_CALL(*mockBuffer, copyTo(_)).Times(1).WillOnce(Return(kNoError)); in TEST() 128 const auto [mockBuffer, mockBufferFactory, buffer] = setup(); in TEST() [all …]
|
D | ResilientDeviceTest.cpp | 448 const auto mockBuffer = std::make_shared<const nn::MockBuffer>(); in TEST() local 449 EXPECT_CALL(*mockDevice, allocate(_, _, _, _)).Times(1).WillOnce(Return(mockBuffer)); in TEST() 491 const auto mockBuffer = std::make_shared<const nn::MockBuffer>(); in TEST() local 492 EXPECT_CALL(*recoveredMockDevice, allocate(_, _, _, _)).Times(1).WillOnce(Return(mockBuffer)); in TEST()
|