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

Side by Side Diff: content/renderer/media/mock_media_constraint_factory.h

Issue 190643003: Fix/Add content_unittests to work for the code behind --enable-audio-track-processing (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: removed an empty line. Created 6 years, 9 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_CONSTRAINT_H_
6 #define CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_CONSTRAINT_H_
7
8 #include <string>
9 #include <vector>
10
11 #include "third_party/WebKit/public/platform/WebMediaConstraints.h"
12
13 namespace content {
14
15 class MockMediaConstraintFactory {
16 public:
17 MockMediaConstraintFactory();
18 ~MockMediaConstraintFactory();
19
20 blink::WebMediaConstraints CreateWebMediaConstraints();
21 void AddMandatory(const std::string& key, int value);
22 void AddMandatory(const std::string& key, double value);
23 void AddOptional(const std::string& key, int value);
24 void AddOptional(const std::string& key, double value);
25 void DisableDefaultAudioConstraints();
26
27 private:
28 std::vector<blink::WebMediaConstraint> mandatory_;
29 std::vector<blink::WebMediaConstraint> optional_;
30 };
31
32 } // namespace content
33
34 #endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_CONSTRAINT_H_
OLDNEW
« no previous file with comments | « content/renderer/media/media_stream_video_source_unittest.cc ('k') | content/renderer/media/mock_media_constraint_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698