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

Unified Diff: webrtc/test/fake_audio_device.h

Issue 1674413004: Added A/V sync tests with drifting clocks. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/test/drifting_clock.cc ('k') | webrtc/test/fake_audio_device.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/test/fake_audio_device.h
diff --git a/webrtc/test/fake_audio_device.h b/webrtc/test/fake_audio_device.h
index ce480c1554dac7038d1b3c6cedb57dd1b9649732..180abf6c924c7a2e57e5be17a9cd9dc138218049 100644
--- a/webrtc/test/fake_audio_device.h
+++ b/webrtc/test/fake_audio_device.h
@@ -16,6 +16,7 @@
#include "webrtc/base/platform_thread.h"
#include "webrtc/base/scoped_ptr.h"
#include "webrtc/modules/audio_device/include/fake_audio_device.h"
+#include "webrtc/test/drifting_clock.h"
#include "webrtc/typedefs.h"
namespace webrtc {
@@ -29,7 +30,7 @@ namespace test {
class FakeAudioDevice : public FakeAudioDeviceModule {
public:
- FakeAudioDevice(Clock* clock, const std::string& filename);
+ FakeAudioDevice(Clock* clock, const std::string& filename, float speed);
virtual ~FakeAudioDevice();
@@ -54,9 +55,10 @@ class FakeAudioDevice : public FakeAudioDeviceModule {
bool capturing_;
int8_t captured_audio_[kBufferSizeBytes];
int8_t playout_buffer_[kBufferSizeBytes];
+ const float speed_;
int64_t last_playout_ms_;
- Clock* clock_;
+ DriftingClock clock_;
rtc::scoped_ptr<EventTimerWrapper> tick_;
rtc::CriticalSection lock_;
rtc::PlatformThread thread_;
« no previous file with comments | « webrtc/test/drifting_clock.cc ('k') | webrtc/test/fake_audio_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698