OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 #include <algorithm> | 5 #include <algorithm> |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/message_loop/message_loop.h" |
8 #include "base/optional.h" | 9 #include "base/optional.h" |
9 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
10 #include "content/child/child_process.h" | 11 #include "content/child/child_process.h" |
11 #include "content/renderer/media/webrtc/webrtc_video_capturer_adapter.h" | 12 #include "content/renderer/media/webrtc/webrtc_video_capturer_adapter.h" |
12 #include "gpu/command_buffer/common/mailbox_holder.h" | 13 #include "gpu/command_buffer/common/mailbox_holder.h" |
13 #include "media/base/video_frame.h" | 14 #include "media/base/video_frame.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
15 | 16 |
16 namespace { | 17 namespace { |
17 static void ReleaseMailboxCB(const gpu::SyncToken& sync_token) {} | 18 static void ReleaseMailboxCB(const gpu::SyncToken& sync_token) {} |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 | 192 |
192 TEST_F(WebRtcVideoCapturerAdapterTest, RespectsConstructionTimeContentHint) { | 193 TEST_F(WebRtcVideoCapturerAdapterTest, RespectsConstructionTimeContentHint) { |
193 // Non-screenshare adapter constructed with detail content hint should not | 194 // Non-screenshare adapter constructed with detail content hint should not |
194 // adapt before SetContentHint is run. | 195 // adapt before SetContentHint is run. |
195 TestContentHintResolutionAdaptation( | 196 TestContentHintResolutionAdaptation( |
196 false, blink::WebMediaStreamTrack::ContentHintType::kVideoDetail, false, | 197 false, blink::WebMediaStreamTrack::ContentHintType::kVideoDetail, false, |
197 blink::WebMediaStreamTrack::ContentHintType::kVideoMotion, true); | 198 blink::WebMediaStreamTrack::ContentHintType::kVideoMotion, true); |
198 } | 199 } |
199 | 200 |
200 } // namespace content | 201 } // namespace content |
OLD | NEW |