Chromium Code Reviews| 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 <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| 11 #include "content/browser/browser_thread_impl.h" | 11 #include "content/browser/browser_thread_impl.h" |
| 12 #include "content/browser/renderer_host/media/audio_input_device_manager.h" | 12 #include "content/browser/renderer_host/media/audio_input_device_manager.h" |
| 13 #include "content/public/common/media_stream_request.h" | 13 #include "content/public/common/media_stream_request.h" |
| 14 #include "media/audio/audio_manager_base.h" | 14 #include "media/audio/audio_manager_base.h" |
| 15 #include "media/audio/audio_manager_base.h" | |
|
tommi (sloooow) - chröme
2013/10/25 14:15:34
remove. (no other change in this file?)
mcasas
2013/10/28 12:50:08
Removed.
This file mocks a MediaStreamProviderLi
| |
| 15 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 17 | 18 |
| 18 using testing::_; | 19 using testing::_; |
| 19 using testing::InSequence; | 20 using testing::InSequence; |
| 20 using testing::SaveArg; | 21 using testing::SaveArg; |
| 21 using testing::Return; | 22 using testing::Return; |
| 22 | 23 |
| 23 namespace content { | 24 namespace content { |
| 24 | 25 |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 282 DCHECK(!info); | 283 DCHECK(!info); |
| 283 | 284 |
| 284 manager_->Close(session_id); | 285 manager_->Close(session_id); |
| 285 EXPECT_CALL(*audio_input_listener_, | 286 EXPECT_CALL(*audio_input_listener_, |
| 286 Closed(MEDIA_DEVICE_AUDIO_CAPTURE, session_id)) | 287 Closed(MEDIA_DEVICE_AUDIO_CAPTURE, session_id)) |
| 287 .Times(1); | 288 .Times(1); |
| 288 message_loop_->RunUntilIdle(); | 289 message_loop_->RunUntilIdle(); |
| 289 } | 290 } |
| 290 | 291 |
| 291 } // namespace content | 292 } // namespace content |
| OLD | NEW |