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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 56 |
| 57 MOCK_METHOD1(OnLog, void(const std::string&)); |
| 58 |
57 private: | 59 private: |
58 DISALLOW_COPY_AND_ASSIGN(MockAudioOutputControllerEventHandler); | 60 DISALLOW_COPY_AND_ASSIGN(MockAudioOutputControllerEventHandler); |
59 }; | 61 }; |
60 | 62 |
61 class MockAudioOutputControllerSyncReader | 63 class MockAudioOutputControllerSyncReader |
62 : public AudioOutputController::SyncReader { | 64 : public AudioOutputController::SyncReader { |
63 public: | 65 public: |
64 MockAudioOutputControllerSyncReader() {} | 66 MockAudioOutputControllerSyncReader() {} |
65 | 67 |
66 MOCK_METHOD3(RequestMoreData, | 68 MOCK_METHOD3(RequestMoreData, |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 // When diverted stream pulls data, it would trigger a push to sink. | 382 // When diverted stream pulls data, it would trigger a push to sink. |
381 EXPECT_CALL(mock_sink, OnDataCheck(kBufferNonZeroData)); | 383 EXPECT_CALL(mock_sink, OnDataCheck(kBufferNonZeroData)); |
382 ReadDivertedAudioData(); | 384 ReadDivertedAudioData(); |
383 | 385 |
384 StopDuplicating(&mock_sink); | 386 StopDuplicating(&mock_sink); |
385 RevertWhilePlaying(); | 387 RevertWhilePlaying(); |
386 Close(); | 388 Close(); |
387 } | 389 } |
388 | 390 |
389 } // namespace media | 391 } // namespace media |
OLD | NEW |