: manual_get_supported_formats_(manual_get_supported_formats),
max_requested_height_(0),
max_requested_width_(0),
+ max_requested_frame_rate_(0.0),
attempted_to_start_(false) {
supported_formats_.push_back(
media::VideoCaptureFormat(
void MockMediaStreamVideoSource::StartMockedSource() {
DCHECK(attempted_to_start_);
attempted_to_start_ = false;
- OnStartDone(true);
+ OnStartDone(MEDIA_DEVICE_OK);
}
void MockMediaStreamVideoSource::FailToStartMockedSource() {
DCHECK(attempted_to_start_);
attempted_to_start_ = false;
- OnStartDone(false);
+ OnStartDone(MEDIA_DEVICE_TRACK_START_FAILURE);
}
void MockMediaStreamVideoSource::CompleteGetSupportedFormats() {
void MockMediaStreamVideoSource::GetCurrentSupportedFormats(
int max_requested_height,
int max_requested_width,
+ double max_requested_frame_rate,
const VideoCaptureDeviceFormatsCB& callback) {
DCHECK(formats_callback_.is_null());
max_requested_height_ = max_requested_height;
max_requested_width_ = max_requested_width;
+ max_requested_frame_rate_ = max_requested_frame_rate;
if (manual_get_supported_formats_) {
formats_callback_ = callback;