| Index: components/copresence/mediums/audio/audio_recorder_stub.h
|
| diff --git a/components/copresence/mediums/audio/audio_recorder_stub.h b/components/copresence/mediums/audio/audio_recorder_stub.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d589d02628f99cb55d413d1e3103bd160128ed57
|
| --- /dev/null
|
| +++ b/components/copresence/mediums/audio/audio_recorder_stub.h
|
| @@ -0,0 +1,36 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef COMPONENTS_COPRESENCE_MEDIUMS_AUDIO_AUDIO_RECORDER_STUB_H_
|
| +#define COMPONENTS_COPRESENCE_MEDIUMS_AUDIO_AUDIO_RECORDER_STUB_H_
|
| +
|
| +#include "base/macros.h"
|
| +#include "components/copresence/mediums/audio/audio_recorder.h"
|
| +
|
| +namespace copresence {
|
| +
|
| +class AudioRecorderStub final : public AudioRecorder {
|
| + public:
|
| + AudioRecorderStub();
|
| + virtual ~AudioRecorderStub();
|
| +
|
| + // AudioRecorder overrides:
|
| + virtual void Initialize(const RecordedSamplesCallback& cb) override;
|
| + virtual void Record() override;
|
| + virtual void Stop() override;
|
| + virtual void Finalize() override;
|
| + virtual bool IsRecording() override;
|
| +
|
| + void TriggerDecodeRequest();
|
| +
|
| + private:
|
| + RecordedSamplesCallback cb_;
|
| + bool is_recording_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(AudioRecorderStub);
|
| +};
|
| +
|
| +} // namespace copresence
|
| +
|
| +#endif // COMPONENTS_COPRESENCE_MEDIUMS_AUDIO_AUDIO_RECORDER_STUB_H_
|
|
|