| 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 <list> | 7 #include <list> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 mock_tracker_(new MockWebContentsTracker()), | 181 mock_tracker_(new MockWebContentsTracker()), |
| 182 mock_vais_(NULL), | 182 mock_vais_(NULL), |
| 183 wcais_(NULL), | 183 wcais_(NULL), |
| 184 destination_(NULL), | 184 destination_(NULL), |
| 185 current_render_process_id_(kRenderProcessId), | 185 current_render_process_id_(kRenderProcessId), |
| 186 current_render_frame_id_(kRenderFrameId), | 186 current_render_frame_id_(kRenderFrameId), |
| 187 on_data_event_(false, false) { | 187 on_data_event_(false, false) { |
| 188 audio_thread_.Start(); | 188 audio_thread_.Start(); |
| 189 } | 189 } |
| 190 | 190 |
| 191 virtual ~WebContentsAudioInputStreamTest() { | 191 ~WebContentsAudioInputStreamTest() override { |
| 192 audio_thread_.Stop(); | 192 audio_thread_.Stop(); |
| 193 thread_bundle_.reset(); | 193 thread_bundle_.reset(); |
| 194 | 194 |
| 195 DCHECK(!mock_vais_); | 195 DCHECK(!mock_vais_); |
| 196 DCHECK(!wcais_); | 196 DCHECK(!wcais_); |
| 197 EXPECT_FALSE(destination_); | 197 EXPECT_FALSE(destination_); |
| 198 DCHECK(streams_.empty()); | 198 DCHECK(streams_.empty()); |
| 199 DCHECK(sources_.empty()); | 199 DCHECK(sources_.empty()); |
| 200 } | 200 } |
| 201 | 201 |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 WaitForData(); | 499 WaitForData(); |
| 500 RUN_ON_AUDIO_THREAD(RemoveOneInputInFIFOOrder); | 500 RUN_ON_AUDIO_THREAD(RemoveOneInputInFIFOOrder); |
| 501 WaitForData(); | 501 WaitForData(); |
| 502 RUN_ON_AUDIO_THREAD(ChangeMirroringTarget); | 502 RUN_ON_AUDIO_THREAD(ChangeMirroringTarget); |
| 503 RUN_ON_AUDIO_THREAD(RemoveOneInputInFIFOOrder); | 503 RUN_ON_AUDIO_THREAD(RemoveOneInputInFIFOOrder); |
| 504 RUN_ON_AUDIO_THREAD(Stop); | 504 RUN_ON_AUDIO_THREAD(Stop); |
| 505 RUN_ON_AUDIO_THREAD(Close); | 505 RUN_ON_AUDIO_THREAD(Close); |
| 506 } | 506 } |
| 507 | 507 |
| 508 } // namespace content | 508 } // namespace content |
| OLD | NEW |