Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Unified Diff: content/renderer/media/mock_constraint_factory.h

Issue 1617243005: Apply new-style constraints to video_source. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_
« no previous file with comments | « content/renderer/media/media_stream_video_source_unittest.cc ('k') | content/renderer/media/mock_constraint_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698