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 "media/audio/audio_output_controller.h" | 5 #include "media/audio/audio_output_controller.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <vector> | 10 #include <vector> |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 | 46 |
47 class MockAudioOutputControllerEventHandler | 47 class MockAudioOutputControllerEventHandler |
48 : public AudioOutputController::EventHandler { | 48 : public AudioOutputController::EventHandler { |
49 public: | 49 public: |
50 MockAudioOutputControllerEventHandler() {} | 50 MockAudioOutputControllerEventHandler() {} |
51 | 51 |
52 MOCK_METHOD0(OnControllerCreated, void()); | 52 MOCK_METHOD0(OnControllerCreated, void()); |
53 MOCK_METHOD0(OnControllerPlaying, void()); | 53 MOCK_METHOD0(OnControllerPlaying, void()); |
54 MOCK_METHOD0(OnControllerPaused, void()); | 54 MOCK_METHOD0(OnControllerPaused, void()); |
55 MOCK_METHOD0(OnControllerError, void()); | 55 MOCK_METHOD0(OnControllerError, void()); |
| 56 MOCK_METHOD1(OnLog, void(const std::string&)); |
56 | 57 |
57 private: | 58 private: |
58 DISALLOW_COPY_AND_ASSIGN(MockAudioOutputControllerEventHandler); | 59 DISALLOW_COPY_AND_ASSIGN(MockAudioOutputControllerEventHandler); |
59 }; | 60 }; |
60 | 61 |
61 class MockAudioOutputControllerSyncReader | 62 class MockAudioOutputControllerSyncReader |
62 : public AudioOutputController::SyncReader { | 63 : public AudioOutputController::SyncReader { |
63 public: | 64 public: |
64 MockAudioOutputControllerSyncReader() {} | 65 MockAudioOutputControllerSyncReader() {} |
65 | 66 |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 // When diverted stream pulls data, it would trigger a push to sink. | 381 // When diverted stream pulls data, it would trigger a push to sink. |
381 EXPECT_CALL(mock_sink, OnDataCheck(kBufferNonZeroData)); | 382 EXPECT_CALL(mock_sink, OnDataCheck(kBufferNonZeroData)); |
382 ReadDivertedAudioData(); | 383 ReadDivertedAudioData(); |
383 | 384 |
384 StopDuplicating(&mock_sink); | 385 StopDuplicating(&mock_sink); |
385 RevertWhilePlaying(); | 386 RevertWhilePlaying(); |
386 Close(); | 387 Close(); |
387 } | 388 } |
388 | 389 |
389 } // namespace media | 390 } // namespace media |
OLD | NEW |