#include "media/capture/video/linux/v4l2_gpu_memory_buffer_tracker.h"
#include "base/test/bind.h"
#include "base/test/task_environment.h"
#include "components/viz/test/test_context_provider.h"
#include "media/capture/video/mock_gpu_memory_buffer_manager.h"
#include "media/capture/video/video_capture_gpu_channel_host.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
_;
A;
AtLeast;
AtMost;
Invoke;
InvokeWithoutArgs;
namespace media {
class V4l2GpuMemoryBufferTrackerTest : public ::testing::Test { … };
TEST_F(V4l2GpuMemoryBufferTrackerTest, CreateSuccess) { … }
TEST_F(V4l2GpuMemoryBufferTrackerTest, GetMemorySizeInBytes) { … }
TEST_F(V4l2GpuMemoryBufferTrackerTest, InitFailedAsInvalidFormat) { … }
TEST_F(V4l2GpuMemoryBufferTrackerTest,
InitFailedAsEmptyTestSharedImageInterface) { … }
TEST_F(V4l2GpuMemoryBufferTrackerTest, ReusableFormat) { … }
TEST_F(V4l2GpuMemoryBufferTrackerTest, NotReusableAsGpuContextLost) { … }
TEST_F(V4l2GpuMemoryBufferTrackerTest, NotReusableAsDiffFormat) { … }
}