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 "base/memory/scoped_ptr.h" | 5 #include "base/memory/scoped_ptr.h" |
6 #include "base/utf_string_conversions.h" | 6 #include "base/strings/utf_string_conversions.h" |
7 #include "content/renderer/media/media_stream_extra_data.h" | 7 #include "content/renderer/media/media_stream_extra_data.h" |
8 #include "content/renderer/media/media_stream_impl.h" | 8 #include "content/renderer/media/media_stream_impl.h" |
9 #include "content/renderer/media/mock_media_stream_dependency_factory.h" | 9 #include "content/renderer/media/mock_media_stream_dependency_factory.h" |
10 #include "content/renderer/media/mock_media_stream_dispatcher.h" | 10 #include "content/renderer/media/mock_media_stream_dispatcher.h" |
11 #include "content/renderer/media/video_capture_impl_manager.h" | 11 #include "content/renderer/media/video_capture_impl_manager.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 #include "third_party/WebKit/public/platform/WebMediaStream.h" | 13 #include "third_party/WebKit/public/platform/WebMediaStream.h" |
14 #include "third_party/WebKit/public/platform/WebMediaStreamSource.h" | 14 #include "third_party/WebKit/public/platform/WebMediaStreamSource.h" |
15 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" | 15 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" |
16 #include "third_party/WebKit/public/platform/WebString.h" | 16 #include "third_party/WebKit/public/platform/WebString.h" |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 WebKit::WebMediaStream mixed_desc = RequestLocalMediaStream(true, true); | 230 WebKit::WebMediaStream mixed_desc = RequestLocalMediaStream(true, true); |
231 EXPECT_EQ(0, ms_dispatcher_->stop_stream_counter()); | 231 EXPECT_EQ(0, ms_dispatcher_->stop_stream_counter()); |
232 EXPECT_EQ(1, ms_dispatcher_->request_stream_counter()); | 232 EXPECT_EQ(1, ms_dispatcher_->request_stream_counter()); |
233 ms_impl_->FrameWillClose(NULL); | 233 ms_impl_->FrameWillClose(NULL); |
234 EXPECT_EQ(1, ms_dispatcher_->stop_stream_counter()); | 234 EXPECT_EQ(1, ms_dispatcher_->stop_stream_counter()); |
235 ms_impl_->OnLocalMediaStreamStop(mixed_desc.label().utf8()); | 235 ms_impl_->OnLocalMediaStreamStop(mixed_desc.label().utf8()); |
236 EXPECT_EQ(1, ms_dispatcher_->stop_stream_counter()); | 236 EXPECT_EQ(1, ms_dispatcher_->stop_stream_counter()); |
237 } | 237 } |
238 | 238 |
239 } // namespace content | 239 } // namespace content |
OLD | NEW |