OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_RENDERER_MEDIA_MOCK_CONSTRAINT_FACTORY_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_MOCK_CONSTRAINT_FACTORY_H_ |
6 #define CONTENT_RENDERER_MEDIA_MOCK_CONSTRAINT_FACTORY_H_ | 6 #define CONTENT_RENDERER_MEDIA_MOCK_CONSTRAINT_FACTORY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "third_party/WebKit/public/platform/WebMediaConstraints.h" | 12 #include "third_party/WebKit/public/platform/WebMediaConstraints.h" |
13 | 13 |
14 namespace content { | 14 namespace content { |
15 | 15 |
16 class MockConstraintFactory { | 16 class MockConstraintFactory { |
17 public: | 17 public: |
18 MockConstraintFactory(); | 18 MockConstraintFactory(); |
19 ~MockConstraintFactory(); | 19 ~MockConstraintFactory(); |
20 | 20 |
21 blink::WebMediaConstraints CreateWebMediaConstraints() const; | 21 blink::WebMediaConstraints CreateWebMediaConstraints() const; |
22 blink::WebMediaTrackConstraintSet& basic() { return basic_; } | 22 blink::WebMediaTrackConstraintSet& basic() { return basic_; } |
23 blink::WebMediaTrackConstraintSet& AddAdvanced(); | 23 blink::WebMediaTrackConstraintSet& AddAdvanced(); |
24 | 24 |
25 void DisableDefaultAudioConstraints(); | 25 void DisableDefaultAudioConstraints(); |
| 26 void DisableAecAudioConstraints(); |
26 void Reset(); | 27 void Reset(); |
27 | 28 |
28 private: | 29 private: |
29 blink::WebMediaTrackConstraintSet basic_; | 30 blink::WebMediaTrackConstraintSet basic_; |
30 std::vector<blink::WebMediaTrackConstraintSet> advanced_; | 31 std::vector<blink::WebMediaTrackConstraintSet> advanced_; |
31 | 32 |
32 DISALLOW_COPY_AND_ASSIGN(MockConstraintFactory); | 33 DISALLOW_COPY_AND_ASSIGN(MockConstraintFactory); |
33 }; | 34 }; |
34 | 35 |
35 } // namespace content | 36 } // namespace content |
36 | 37 |
37 #endif // CONTENT_RENDERER_MEDIA_MOCK_CONSTRAINT_FACTORY_H_ | 38 #endif // CONTENT_RENDERER_MEDIA_MOCK_CONSTRAINT_FACTORY_H_ |
OLD | NEW |