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

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

Issue 2801853005: Create a private API for controlling WebRTC's AEC3 (Closed)
Patch Set: Fixing typo Created 3 years, 8 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
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_
OLDNEW
« no previous file with comments | « content/renderer/media/media_stream_audio_processor_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