| Index: media/audio/mock_audio_output_ipc.h
|
| diff --git a/media/audio/mock_audio_output_ipc.h b/media/audio/mock_audio_output_ipc.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..23c264a76fbfbb7d26fb3c9dd9b12c969a0b41b2
|
| --- /dev/null
|
| +++ b/media/audio/mock_audio_output_ipc.h
|
| @@ -0,0 +1,33 @@
|
| +// Copyright (c) 2016 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 MEDIA_AUDIO_MOCK_AUDIO_OUTPUT_IPC_H_
|
| +#define MEDIA_AUDIO_MOCK_AUDIO_OUTPUT_IPC_H_
|
| +
|
| +#include "media/audio/audio_output_device.h"
|
| +#include "testing/gmock/include/gmock/gmock.h"
|
| +
|
| +namespace media {
|
| +
|
| +class MockAudioOutputIPC : public AudioOutputIPC {
|
| + public:
|
| + MockAudioOutputIPC();
|
| + virtual ~MockAudioOutputIPC();
|
| +
|
| + MOCK_METHOD4(RequestDeviceAuthorization,
|
| + void(AudioOutputIPCDelegate* delegate,
|
| + int session_id,
|
| + const std::string& device_id,
|
| + const url::Origin& security_origin));
|
| + MOCK_METHOD2(CreateStream,
|
| + void(AudioOutputIPCDelegate* delegate,
|
| + const AudioParameters& params));
|
| + MOCK_METHOD0(PlayStream, void());
|
| + MOCK_METHOD0(PauseStream, void());
|
| + MOCK_METHOD0(CloseStream, void());
|
| + MOCK_METHOD1(SetVolume, void(double volume));
|
| +};
|
| +
|
| +} // namespace media
|
| +
|
| +#endif // MEDIA_AUDIO_MOCK_AUDIO_OUTPUT_IPC_H_
|
|
|