| Index: content/renderer/media/mock_constraint_factory.h
|
| diff --git a/content/renderer/media/mock_constraint_factory.h b/content/renderer/media/mock_constraint_factory.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e9d4da0503a42b6b6c8b5343ac05df946d1301f7
|
| --- /dev/null
|
| +++ b/content/renderer/media/mock_constraint_factory.h
|
| @@ -0,0 +1,33 @@
|
| +// Copyright 2016 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_CONSTRAINT_FACTORY_H_
|
| +#define CONTENT_RENDERER_MEDIA_MOCK_CONSTRAINT_FACTORY_H_
|
| +
|
| +#include <string>
|
| +#include <vector>
|
| +
|
| +#include "third_party/WebKit/public/platform/WebMediaConstraints.h"
|
| +
|
| +namespace content {
|
| +
|
| +class MockConstraintFactory {
|
| + public:
|
| + MockConstraintFactory();
|
| + ~MockConstraintFactory();
|
| +
|
| + blink::WebMediaConstraints CreateWebMediaConstraints() const;
|
| + blink::WebMediaTrackConstraintSet& basic() { return basic_; }
|
| + blink::WebMediaTrackConstraintSet& AddAdvanced();
|
| +
|
| + private:
|
| + blink::WebMediaTrackConstraintSet basic_;
|
| + std::vector<blink::WebMediaTrackConstraintSet> advanced_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(MockConstraintFactory);
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_RENDERER_MEDIA_MOCK_CONSTRAINT_FACTORY_H_
|
|
|