// Copyright 2018 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef MEDIA_CAPTURE_VIDEO_MOCK_DEVICE_H_ #define MEDIA_CAPTURE_VIDEO_MOCK_DEVICE_H_ #include "media/capture/video/video_capture_device.h" #include "testing/gmock/include/gmock/gmock.h" namespace media { // To ensure correct operation, this mock device holds on to the |client| // that is passed to it in AllocateAndStart() and releases it on // StopAndDeAllocate(). class MockDevice : public media::VideoCaptureDevice { … }; } // namespace media #endif // MEDIA_CAPTURE_VIDEO_MOCK_DEVICE_H_