chromium/third_party/webrtc/modules/desktop_capture/fake_desktop_capturer.cc

/*
 *  Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
 *
 *  Use of this source code is governed by a BSD-style license
 *  that can be found in the LICENSE file in the root of the source
 *  tree. An additional intellectual property rights grant can be found
 *  in the file PATENTS.  All contributing project authors may
 *  be found in the AUTHORS file in the root of the source tree.
 */

#include "modules/desktop_capture/fake_desktop_capturer.h"

#include <utility>

#include "modules/desktop_capture/desktop_capture_types.h"
#include "modules/desktop_capture/desktop_frame.h"

namespace webrtc {

FakeDesktopCapturer::FakeDesktopCapturer() = default;
FakeDesktopCapturer::~FakeDesktopCapturer() = default;

void FakeDesktopCapturer::set_result(DesktopCapturer::Result result) {}

int FakeDesktopCapturer::num_frames_captured() const {}

int FakeDesktopCapturer::num_capture_attempts() const {}

// Uses the `generator` provided as DesktopFrameGenerator, FakeDesktopCapturer
// does
// not take the ownership of `generator`.
void FakeDesktopCapturer::set_frame_generator(
    DesktopFrameGenerator* generator) {}

void FakeDesktopCapturer::Start(DesktopCapturer::Callback* callback) {}

void FakeDesktopCapturer::CaptureFrame() {}

void FakeDesktopCapturer::SetSharedMemoryFactory(
    std::unique_ptr<SharedMemoryFactory> shared_memory_factory) {}

bool FakeDesktopCapturer::GetSourceList(DesktopCapturer::SourceList* sources) {}

bool FakeDesktopCapturer::SelectSource(DesktopCapturer::SourceId id) {}

}  // namespace webrtc