Battery Status API: add UMA logging for Linux.
[chromium-blink-merge.git] / content / browser / renderer_host / media / mock_media_observer.h
blobae4e7e61f28ed70acf29d2521b059cdeeeed1d19
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_MOCK_MEDIA_OBSERVER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_MOCK_MEDIA_OBSERVER_H_
8 #include <string>
10 #include "base/basictypes.h"
11 #include "content/public/browser/media_observer.h"
12 #include "media/audio/audio_parameters.h"
13 #include "media/base/media_log_event.h"
14 #include "testing/gmock/include/gmock/gmock.h"
16 namespace content {
18 class MockMediaObserver : public MediaObserver {
19 public:
20 MockMediaObserver();
21 virtual ~MockMediaObserver();
23 MOCK_METHOD6(OnMediaRequestStateChanged,
24 void(int render_process_id, int render_frame_id,
25 int page_request_id, const GURL& security_origin,
26 MediaStreamType stream_type,
27 const MediaRequestState state));
30 } // namespace content
32 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MOCK_MEDIA_OBSERVER_H_