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

Side by Side Diff: chromecast/media/cma/backend/alsa/mock_alsa_wrapper.h

Issue 2133293003: [Chromecast] Make ALSA rendering delay either accurate or kNoTimestamp (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Fix ALSA unit tests Created 4 years, 5 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef CHROMECAST_MEDIA_CMA_BACKEND_ALSA_MOCK_ALSA_WRAPPER_H_ 5 #ifndef CHROMECAST_MEDIA_CMA_BACKEND_ALSA_MOCK_ALSA_WRAPPER_H_
6 #define CHROMECAST_MEDIA_CMA_BACKEND_ALSA_MOCK_ALSA_WRAPPER_H_ 6 #define CHROMECAST_MEDIA_CMA_BACKEND_ALSA_MOCK_ALSA_WRAPPER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 MOCK_METHOD2(PcmPause, int(snd_pcm_t* handle, int enable)); 66 MOCK_METHOD2(PcmPause, int(snd_pcm_t* handle, int enable));
67 67
68 MOCK_METHOD1(PcmStatusMalloc, int(snd_pcm_status_t** ptr)); 68 MOCK_METHOD1(PcmStatusMalloc, int(snd_pcm_status_t** ptr));
69 MOCK_METHOD1(PcmStatusFree, void(snd_pcm_status_t* obj)); 69 MOCK_METHOD1(PcmStatusFree, void(snd_pcm_status_t* obj));
70 MOCK_METHOD2(PcmStatus, int(snd_pcm_t* handle, snd_pcm_status_t* status)); 70 MOCK_METHOD2(PcmStatus, int(snd_pcm_t* handle, snd_pcm_status_t* status));
71 MOCK_METHOD1(PcmStatusGetDelay, 71 MOCK_METHOD1(PcmStatusGetDelay,
72 snd_pcm_sframes_t(const snd_pcm_status_t* obj)); 72 snd_pcm_sframes_t(const snd_pcm_status_t* obj));
73 MOCK_METHOD2(PcmStatusGetHtstamp, 73 MOCK_METHOD2(PcmStatusGetHtstamp,
74 void(const snd_pcm_status_t* obj, snd_htimestamp_t* ptr)); 74 void(const snd_pcm_status_t* obj, snd_htimestamp_t* ptr));
75 MOCK_METHOD1(PcmStatusGetState, snd_pcm_state_t(const snd_pcm_status_t* obj));
75 76
76 MOCK_METHOD1(PcmHwParamsMalloc, int(snd_pcm_hw_params_t** ptr)); 77 MOCK_METHOD1(PcmHwParamsMalloc, int(snd_pcm_hw_params_t** ptr));
77 MOCK_METHOD1(PcmHwParamsFree, void(snd_pcm_hw_params_t* obj)); 78 MOCK_METHOD1(PcmHwParamsFree, void(snd_pcm_hw_params_t* obj));
78 MOCK_METHOD2(PcmHwParamsCurrent, 79 MOCK_METHOD2(PcmHwParamsCurrent,
79 int(snd_pcm_t* handle, snd_pcm_hw_params_t* params)); 80 int(snd_pcm_t* handle, snd_pcm_hw_params_t* params));
80 MOCK_METHOD1(PcmHwParamsCanPause, int(const snd_pcm_hw_params_t* params)); 81 MOCK_METHOD1(PcmHwParamsCanPause, int(const snd_pcm_hw_params_t* params));
81 MOCK_METHOD2(PcmHwParamsAny, 82 MOCK_METHOD2(PcmHwParamsAny,
82 int(snd_pcm_t* handle, snd_pcm_hw_params_t* params)); 83 int(snd_pcm_t* handle, snd_pcm_hw_params_t* params));
83 MOCK_METHOD3(PcmHwParamsSetRateResample, 84 MOCK_METHOD3(PcmHwParamsSetRateResample,
84 int(snd_pcm_t* handle, snd_pcm_hw_params_t* params, bool val)); 85 int(snd_pcm_t* handle, snd_pcm_hw_params_t* params, bool val));
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 // Certain calls will be delegated to this class. 151 // Certain calls will be delegated to this class.
151 std::unique_ptr<FakeAlsaWrapper> fake_; 152 std::unique_ptr<FakeAlsaWrapper> fake_;
152 153
153 DISALLOW_COPY_AND_ASSIGN(MockAlsaWrapper); 154 DISALLOW_COPY_AND_ASSIGN(MockAlsaWrapper);
154 }; 155 };
155 156
156 } // namespace media 157 } // namespace media
157 } // namespace chromecast 158 } // namespace chromecast
158 159
159 #endif // CHROMECAST_MEDIA_CMA_BACKEND_ALSA_MOCK_ALSA_WRAPPER_H_ 160 #endif // CHROMECAST_MEDIA_CMA_BACKEND_ALSA_MOCK_ALSA_WRAPPER_H_
OLDNEW
« no previous file with comments | « chromecast/media/cma/backend/alsa/audio_decoder_alsa.cc ('k') | chromecast/media/cma/backend/alsa/mock_alsa_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698