• Home
  • Raw
  • Download

Lines Matching refs:mockDevice

112   id mockDevice = OCMClassMock([AVCaptureDevice class]);
117 OCMStub([mockDevice formats]).andReturn(@[ mock ]);
121 webrtc::GetSupportedVideoFormatsForDevice(mockDevice);
129 id mockDevice = OCMClassMock([AVCaptureDevice class]);
134 OCMStub([mockDevice formats]).andReturn(@[ mock ]);
138 webrtc::GetSupportedVideoFormatsForDevice(mockDevice);
146 id mockDevice = OCMClassMock([AVCaptureDevice class]);
150 OCMStub([mockDevice formats]).andReturn(@[ mock ]);
154 webrtc::GetSupportedVideoFormatsForDevice(mockDevice);
164 id mockDevice = OCMClassMock([AVCaptureDevice class]);
177 OCMStub([mockDevice lockForConfiguration:[OCMArg setTo:nil]]).andReturn(YES);
178 OCMStub([mockDevice unlockForConfiguration]);
180 OCMStub([mockDevice formats]).andReturn(array);
183 OCMExpect([mockDevice setActiveFormat:(AVCaptureDeviceFormat*)mockTwo]);
185 [mockDevice setActiveVideoMinFrameDuration:CMTimeMake(1, kFramerate)]);
189 webrtc::SetFormatForCaptureDevice(mockDevice, nil, expectedFormat);
193 [mockDevice verify];
198 id mockDevice = OCMClassMock([AVCaptureDevice class]);
199 [[[mockDevice stub] andReturnValue:@(NO)]
201 [[[mockDevice stub] andReturn:@[]] formats];
204 bool resultFormat = webrtc::SetFormatForCaptureDevice(mockDevice, nil,
213 id mockDevice = OCMClassMock([AVCaptureDevice class]);
214 OCMStub([mockDevice formats]).andReturn(@[]);
215 OCMStub([mockDevice lockForConfiguration:[OCMArg setTo:nil]]).andReturn(YES);
220 OCMStub([mockDevice setActiveFormat:[OCMArg any]]).andThrow(testException);
221 OCMExpect([mockDevice unlockForConfiguration]);
224 bool resultFormat = webrtc::SetFormatForCaptureDevice(mockDevice, nil,
236 [mockDevice verify];