| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
| 9 #include "content/browser/browser_thread_impl.h" | 9 #include "content/browser/browser_thread_impl.h" |
| 10 #include "content/browser/mock_resource_context.h" | 10 #include "content/browser/mock_resource_context.h" |
| 11 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" | 11 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" |
| 12 #include "content/browser/renderer_host/media/media_stream_manager.h" | 12 #include "content/browser/renderer_host/media/media_stream_manager.h" |
| 13 #include "content/browser/renderer_host/media/video_capture_manager.h" | 13 #include "content/browser/renderer_host/media/video_capture_manager.h" |
| 14 #include "content/browser/resource_context.h" | |
| 15 #include "content/common/media/media_stream_messages.h" | 14 #include "content/common/media/media_stream_messages.h" |
| 16 #include "content/common/media/media_stream_options.h" | 15 #include "content/common/media/media_stream_options.h" |
| 17 #include "ipc/ipc_message_macros.h" | 16 #include "ipc/ipc_message_macros.h" |
| 18 #include "media/audio/audio_manager.h" | 17 #include "media/audio/audio_manager.h" |
| 19 #include "testing/gmock/include/gmock/gmock.h" | 18 #include "testing/gmock/include/gmock/gmock.h" |
| 20 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
| 21 | 20 |
| 22 using ::testing::_; | 21 using ::testing::_; |
| 23 using ::testing::DeleteArg; | 22 using ::testing::DeleteArg; |
| 24 using ::testing::DoAll; | 23 using ::testing::DoAll; |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 EXPECT_EQ(host_->video_devices_.size(), 0u); | 308 EXPECT_EQ(host_->video_devices_.size(), 0u); |
| 310 EXPECT_EQ(host_->NumberOfStreams(), 1u); | 309 EXPECT_EQ(host_->NumberOfStreams(), 1u); |
| 311 | 310 |
| 312 // TODO(perkj): test audio device failure? | 311 // TODO(perkj): test audio device failure? |
| 313 | 312 |
| 314 host_->OnStopGeneratedStream(label); | 313 host_->OnStopGeneratedStream(label); |
| 315 EXPECT_EQ(host_->NumberOfStreams(), 0u); | 314 EXPECT_EQ(host_->NumberOfStreams(), 0u); |
| 316 } | 315 } |
| 317 | 316 |
| 318 }; // namespace media_stream | 317 }; // namespace media_stream |
| OLD | NEW |