Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Side by Side Diff: media/audio/audio_output_controller_unittest.cc

Issue 2900043002: Added initial set of logging for AudioOutputController. (Closed)
Patch Set: impliciticity Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/audio/audio_output_controller.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « media/audio/audio_output_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698