OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 <stddef.h> |
| 6 |
| 7 #include "base/macros.h" |
5 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
6 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
7 #include "media/audio/audio_parameters.h" | 10 #include "media/audio/audio_parameters.h" |
8 #include "media/base/fake_audio_render_callback.h" | 11 #include "media/base/fake_audio_render_callback.h" |
9 #include "media/base/mock_audio_renderer_sink.h" | 12 #include "media/base/mock_audio_renderer_sink.h" |
10 #include "media/blink/webaudiosourceprovider_impl.h" | 13 #include "media/blink/webaudiosourceprovider_impl.h" |
11 #include "testing/gmock/include/gmock/gmock.h" | 14 #include "testing/gmock/include/gmock/gmock.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
13 #include "third_party/WebKit/public/platform/WebAudioSourceProviderClient.h" | 16 #include "third_party/WebKit/public/platform/WebAudioSourceProviderClient.h" |
14 | 17 |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 | 234 |
232 // Stop() should return silence. | 235 // Stop() should return silence. |
233 wasp_impl_->Stop(); | 236 wasp_impl_->Stop(); |
234 bus1->channel(0)[0] = 1; | 237 bus1->channel(0)[0] = 1; |
235 bus2->Zero(); | 238 bus2->Zero(); |
236 wasp_impl_->provideInput(audio_data, params_.frames_per_buffer()); | 239 wasp_impl_->provideInput(audio_data, params_.frames_per_buffer()); |
237 ASSERT_TRUE(CompareBusses(bus1.get(), bus2.get())); | 240 ASSERT_TRUE(CompareBusses(bus1.get(), bus2.get())); |
238 } | 241 } |
239 | 242 |
240 } // namespace media | 243 } // namespace media |
OLD | NEW |