OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_RENDERER_MEDIA_MOCK_CONSTRAINT_FACTORY_H_ | |
6 #define CONTENT_RENDERER_MEDIA_MOCK_CONSTRAINT_FACTORY_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 MockConstraintFactory { | |
16 public: | |
17 MockConstraintFactory(); | |
18 ~MockConstraintFactory(); | |
19 | |
20 blink::WebMediaConstraints CreateWebMediaConstraints() const; | |
21 blink::WebMediaTrackConstraintSet& basic() { return basic_; } | |
22 blink::WebMediaTrackConstraintSet& AddAdvanced(); | |
23 | |
24 private: | |
25 blink::WebMediaTrackConstraintSet basic_; | |
mcasas
2016/01/28 01:57:57
const?
hta - Chromium
2016/01/28 08:51:40
No. The whole point of it is that it can be change
| |
26 std::vector<blink::WebMediaTrackConstraintSet> advanced_; | |
27 | |
28 DISALLOW_COPY_AND_ASSIGN(MockConstraintFactory); | |
29 }; | |
30 | |
31 } // namespace content | |
32 | |
33 #endif // CONTENT_RENDERER_MEDIA_MOCK_CONSTRAINT_FACTORY_H_ | |
OLD | NEW |