| 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 "content/browser/renderer_host/media/audio_renderer_host.h" | 5 #include "content/browser/renderer_host/media/audio_renderer_host.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 } | 510 } |
| 511 | 511 |
| 512 private: | 512 private: |
| 513 // MediaStreamManager uses a DestructionObserver, so it must outlive the | 513 // MediaStreamManager uses a DestructionObserver, so it must outlive the |
| 514 // TestBrowserThreadBundle. | 514 // TestBrowserThreadBundle. |
| 515 std::unique_ptr<MediaStreamManager> media_stream_manager_; | 515 std::unique_ptr<MediaStreamManager> media_stream_manager_; |
| 516 TestBrowserThreadBundle thread_bundle_; | 516 TestBrowserThreadBundle thread_bundle_; |
| 517 TestBrowserContext browser_context_; | 517 TestBrowserContext browser_context_; |
| 518 std::unique_ptr<media::FakeAudioLogFactory> log_factory; | 518 std::unique_ptr<media::FakeAudioLogFactory> log_factory; |
| 519 std::unique_ptr<FakeAudioManagerWithAssociations> audio_manager_; | 519 std::unique_ptr<FakeAudioManagerWithAssociations> audio_manager_; |
| 520 std::unique_ptr<media::AudioSystem> audio_system_; | 520 media::AudioSystem::UniquePtr audio_system_; |
| 521 MockAudioMirroringManager mirroring_manager_; | 521 MockAudioMirroringManager mirroring_manager_; |
| 522 base::RunLoop auth_run_loop_; | 522 base::RunLoop auth_run_loop_; |
| 523 MockRenderProcessHostWithSignaling render_process_host_; | 523 MockRenderProcessHostWithSignaling render_process_host_; |
| 524 scoped_refptr<MockAudioRendererHost> host_; | 524 scoped_refptr<MockAudioRendererHost> host_; |
| 525 | 525 |
| 526 DISALLOW_COPY_AND_ASSIGN(AudioRendererHostTest); | 526 DISALLOW_COPY_AND_ASSIGN(AudioRendererHostTest); |
| 527 }; | 527 }; |
| 528 | 528 |
| 529 TEST_F(AudioRendererHostTest, CreateAndClose) { | 529 TEST_F(AudioRendererHostTest, CreateAndClose) { |
| 530 Create(); | 530 Create(); |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 623 } | 623 } |
| 624 | 624 |
| 625 TEST_F(AudioRendererHostTest, CreateFailsForInvalidRenderFrame) { | 625 TEST_F(AudioRendererHostTest, CreateFailsForInvalidRenderFrame) { |
| 626 CreateWithInvalidRenderFrameId(); | 626 CreateWithInvalidRenderFrameId(); |
| 627 Close(); | 627 Close(); |
| 628 } | 628 } |
| 629 | 629 |
| 630 // TODO(hclam): Add tests for data conversation in low latency mode. | 630 // TODO(hclam): Add tests for data conversation in low latency mode. |
| 631 | 631 |
| 632 } // namespace content | 632 } // namespace content |
| OLD | NEW |