| Index: content/renderer/media/mock_media_stream_dependency_factory.h
|
| diff --git a/content/renderer/media/mock_media_stream_dependency_factory.h b/content/renderer/media/mock_media_stream_dependency_factory.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..af86e8eed0b78b7f8b4e1e1d3c9217af28449776
|
| --- /dev/null
|
| +++ b/content/renderer/media/mock_media_stream_dependency_factory.h
|
| @@ -0,0 +1,33 @@
|
| +// Copyright (c) 2011 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_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DEPENDENCY_FACTORY_H_
|
| +#define CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DEPENDENCY_FACTORY_H_
|
| +
|
| +#include "base/compiler_specific.h"
|
| +#include "content/renderer/media/media_stream_dependency_factory.h"
|
| +
|
| +// A mock factory for creating different objects for MediaStreamImpl.
|
| +class MockMediaStreamDependencyFactory : public MediaStreamDependencyFactory {
|
| + public:
|
| + MockMediaStreamDependencyFactory();
|
| + virtual ~MockMediaStreamDependencyFactory() {}
|
| +
|
| + virtual cricket::WebRtcMediaEngine* CreateWebRtcMediaEngine() OVERRIDE;
|
| + virtual bool CreatePeerConnectionFactory(
|
| + cricket::PortAllocator* port_allocator,
|
| + cricket::MediaEngineInterface* media_engine,
|
| + talk_base::Thread* worker_thread) OVERRIDE;
|
| + virtual void DeletePeerConnectionFactory() OVERRIDE;
|
| + virtual bool PeerConnectionFactoryCreated() OVERRIDE;
|
| + virtual webrtc::PeerConnection* CreatePeerConnection(
|
| + talk_base::Thread* signaling_thread) OVERRIDE;
|
| +
|
| + private:
|
| + bool mock_pc_factory_created_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(MockMediaStreamDependencyFactory);
|
| +};
|
| +
|
| +#endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DEPENDENCY_FACTORY_H_
|
|
|