OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "content/browser/media/capture/web_contents_audio_input_stream.h" | 5 #include "content/browser/media/capture/web_contents_audio_input_stream.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <list> | 9 #include <list> |
10 #include <memory> | 10 #include <memory> |
(...skipping 25 matching lines...) Expand all Loading... |
36 using ::testing::SaveArg; | 36 using ::testing::SaveArg; |
37 using ::testing::WithArgs; | 37 using ::testing::WithArgs; |
38 | 38 |
39 using media::AudioBus; | 39 using media::AudioBus; |
40 using media::AudioInputStream; | 40 using media::AudioInputStream; |
41 using media::AudioOutputStream; | 41 using media::AudioOutputStream; |
42 using media::AudioParameters; | 42 using media::AudioParameters; |
43 using media::AudioPushSink; | 43 using media::AudioPushSink; |
44 using media::SineWaveAudioSource; | 44 using media::SineWaveAudioSource; |
45 using media::VirtualAudioInputStream; | 45 using media::VirtualAudioInputStream; |
46 using media::VirtualAudioOutputStream; | |
47 | 46 |
48 namespace content { | 47 namespace content { |
49 | 48 |
50 namespace { | 49 namespace { |
51 | 50 |
52 const int kRenderProcessId = 123; | 51 const int kRenderProcessId = 123; |
53 const int kRenderFrameId = 456; | 52 const int kRenderFrameId = 456; |
54 const int kAnotherRenderProcessId = 789; | 53 const int kAnotherRenderProcessId = 789; |
55 const int kAnotherRenderFrameId = 1; | 54 const int kAnotherRenderFrameId = 1; |
56 | 55 |
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 WaitForData(); | 539 WaitForData(); |
541 RUN_ON_AUDIO_THREAD(ChangeMirroringTarget); | 540 RUN_ON_AUDIO_THREAD(ChangeMirroringTarget); |
542 RUN_ON_AUDIO_THREAD(RemoveOneInputInFIFOOrder); | 541 RUN_ON_AUDIO_THREAD(RemoveOneInputInFIFOOrder); |
543 RUN_ON_AUDIO_THREAD(Stop); | 542 RUN_ON_AUDIO_THREAD(Stop); |
544 RUN_ON_AUDIO_THREAD(Close); | 543 RUN_ON_AUDIO_THREAD(Close); |
545 } | 544 } |
546 | 545 |
547 INSTANTIATE_TEST_CASE_P(, WebContentsAudioInputStreamTest, ::testing::Bool()); | 546 INSTANTIATE_TEST_CASE_P(, WebContentsAudioInputStreamTest, ::testing::Bool()); |
548 | 547 |
549 } // namespace content | 548 } // namespace content |
OLD | NEW |