Lines Matching refs:mockBuffer
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()
121 const auto mockBuffer = MockBuffer::create(); in TEST() local
122 const auto buffer = Buffer::create(mockBuffer, kToken).value(); in TEST()
123 EXPECT_CALL(*mockBuffer, copyTo(_)) in TEST()
137 const auto mockBuffer = MockBuffer::create(); in TEST() local
138 const auto buffer = Buffer::create(mockBuffer, kToken).value(); in TEST()
139 EXPECT_CALL(*mockBuffer, copyTo(_)).Times(1).WillOnce(InvokeWithoutArgs(makeDeadObjectFailure)); in TEST()
151 const auto mockBuffer = MockBuffer::create(); in TEST() local
152 const auto buffer = Buffer::create(mockBuffer, kToken).value(); in TEST()
153 EXPECT_CALL(*mockBuffer, copyFrom(_, _)).Times(1).WillOnce(InvokeWithoutArgs(makeSuccessful)); in TEST()
164 const auto mockBuffer = MockBuffer::create(); in TEST() local
165 const auto buffer = Buffer::create(mockBuffer, kToken).value(); in TEST()
166 EXPECT_CALL(*mockBuffer, copyFrom(_, _)).Times(1).WillOnce(InvokeWithoutArgs(makeGeneralError)); in TEST()
178 const auto mockBuffer = MockBuffer::create(); in TEST() local
179 const auto buffer = Buffer::create(mockBuffer, kToken).value(); in TEST()
180 EXPECT_CALL(*mockBuffer, copyFrom(_, _)) in TEST()
194 const auto mockBuffer = MockBuffer::create(); in TEST() local
195 const auto buffer = Buffer::create(mockBuffer, kToken).value(); in TEST()
196 EXPECT_CALL(*mockBuffer, copyFrom(_, _)) in TEST()