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> | 5 #include <stddef.h> |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
11 #include "media/audio/audio_parameters.h" | 11 #include "media/base/audio_parameters.h" |
12 #include "media/base/fake_audio_render_callback.h" | 12 #include "media/base/fake_audio_render_callback.h" |
13 #include "media/base/mock_audio_renderer_sink.h" | 13 #include "media/base/mock_audio_renderer_sink.h" |
14 #include "media/blink/webaudiosourceprovider_impl.h" | 14 #include "media/blink/webaudiosourceprovider_impl.h" |
15 #include "testing/gmock/include/gmock/gmock.h" | 15 #include "testing/gmock/include/gmock/gmock.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 #include "third_party/WebKit/public/platform/WebAudioSourceProviderClient.h" | 17 #include "third_party/WebKit/public/platform/WebAudioSourceProviderClient.h" |
18 | 18 |
19 using ::testing::_; | 19 using ::testing::_; |
20 | 20 |
21 namespace media { | 21 namespace media { |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 Render(bus1.get()); | 267 Render(bus1.get()); |
268 | 268 |
269 wasp_impl_->ClearCopyAudioCallback(); | 269 wasp_impl_->ClearCopyAudioCallback(); |
270 EXPECT_CALL(*this, DoCopyAudioCB(_, _, _)).Times(0); | 270 EXPECT_CALL(*this, DoCopyAudioCB(_, _, _)).Times(0); |
271 Render(bus1.get()); | 271 Render(bus1.get()); |
272 | 272 |
273 testing::Mock::VerifyAndClear(mock_sink_.get()); | 273 testing::Mock::VerifyAndClear(mock_sink_.get()); |
274 } | 274 } |
275 | 275 |
276 } // namespace media | 276 } // namespace media |
OLD | NEW |