blob: cf0aa7e1bd8517f4063c86f65085c7f1cd72de32 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_TEST_TEST_MEDIA_STREAM_RENDERER_FACTORY_H_
#define CONTENT_TEST_TEST_MEDIA_STREAM_RENDERER_FACTORY_H_
#include "base/callback_forward.h"
#include "content/renderer/media/media_stream_renderer_factory.h"
#include "third_party/WebKit/public/platform/WebURL.h"
namespace content {
// TestMediaStreamClient is a mock implementation of MediaStreamClient used when
// running layout tests.
class TestMediaStreamRendererFactory : public MediaStreamRendererFactory {
public:
TestMediaStreamRendererFactory();
virtual ~TestMediaStreamRendererFactory();
// MediaStreamRendererFactory implementation.
virtual scoped_refptr<VideoFrameProvider> GetVideoFrameProvider(
const GURL& url,
const base::Closure& error_cb,
const VideoFrameProvider::RepaintCB& repaint_cb) OVERRIDE;
virtual scoped_refptr<MediaStreamAudioRenderer> GetAudioRenderer(
const GURL& url,
int render_view_id,
int render_frame_id) OVERRIDE;
};
} // namespace content
#endif // CONTENT_TEST_TEST_MEDIA_STREAM_RENDERER_FACTORY_H_