blob: 8d8a9c694a28984119fb59dec94388945bc16e32 [file] [log] [blame]
// Copyright (c) 2012 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 CONTENT_BROWSER_RENDERER_HOST_MEDIA_MOCK_MEDIA_OBSERVER_H_
#define CONTENT_BROWSER_RENDERER_HOST_MEDIA_MOCK_MEDIA_OBSERVER_H_
#include <string>
#include "base/basictypes.h"
#include "content/public/browser/media_observer.h"
#include "media/base/media_log_event.h"
#include "testing/gmock/include/gmock/gmock.h"
class MockMediaObserver : public content::MediaObserver {
public:
MockMediaObserver();
virtual ~MockMediaObserver();
MOCK_METHOD2(OnDeleteAudioStream,
void(void* host, int stream_id));
MOCK_METHOD3(OnSetAudioStreamPlaying,
void(void* host, int stream_id, bool playing));
MOCK_METHOD3(OnSetAudioStreamStatus,
void(void* host, int stream_id, const std::string& status));
MOCK_METHOD3(OnSetAudioStreamVolume,
void(void* host, int stream_id, double volume));
MOCK_METHOD2(OnMediaEvent,
void(int source, const media::MediaLogEvent& event));
MOCK_METHOD3(OnCaptureDevicesOpened,
void(int render_process_id, int render_view_id,
const content::MediaStreamDevices& devices));
MOCK_METHOD3(OnCaptureDevicesClosed,
void(int render_process_id, int render_view_id,
const content::MediaStreamDevices& devices));
};
#endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MOCK_MEDIA_OBSERVER_H_