OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <stddef.h> |
| 6 |
5 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
6 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
7 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
8 #include "content/child/child_process.h" | 10 #include "content/child/child_process.h" |
9 #include "content/renderer/media/media_stream.h" | 11 #include "content/renderer/media/media_stream.h" |
10 #include "content/renderer/media/media_stream_track.h" | 12 #include "content/renderer/media/media_stream_track.h" |
11 #include "content/renderer/media/mock_media_stream_dispatcher.h" | 13 #include "content/renderer/media/mock_media_stream_dispatcher.h" |
12 #include "content/renderer/media/mock_media_stream_video_source.h" | 14 #include "content/renderer/media/mock_media_stream_video_source.h" |
13 #include "content/renderer/media/user_media_client_impl.h" | 15 #include "content/renderer/media/user_media_client_impl.h" |
14 #include "content/renderer/media/webrtc/mock_peer_connection_dependency_factory.
h" | 16 #include "content/renderer/media/webrtc/mock_peer_connection_dependency_factory.
h" |
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
565 | 567 |
566 // Video input device environment facing. | 568 // Video input device environment facing. |
567 source = &used_media_impl_->last_sources()[3]; | 569 source = &used_media_impl_->last_sources()[3]; |
568 EXPECT_FALSE(source->id().isEmpty()); | 570 EXPECT_FALSE(source->id().isEmpty()); |
569 EXPECT_EQ(blink::WebSourceInfo::SourceKindVideo, source->kind()); | 571 EXPECT_EQ(blink::WebSourceInfo::SourceKindVideo, source->kind()); |
570 EXPECT_FALSE(source->label().isEmpty()); | 572 EXPECT_FALSE(source->label().isEmpty()); |
571 EXPECT_EQ(blink::WebSourceInfo::VideoFacingModeEnvironment, source->facing()); | 573 EXPECT_EQ(blink::WebSourceInfo::VideoFacingModeEnvironment, source->facing()); |
572 } | 574 } |
573 | 575 |
574 } // namespace content | 576 } // namespace content |
OLD | NEW |