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

Side by Side Diff: content/browser/renderer_host/media/mock_media_observer.h

Issue 23533039: Re-enables three WebRTC unit tests in content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disabled Android and improved tests for all other platforms Created 7 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | content/renderer/media/webrtc_audio_device_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_MOCK_MEDIA_OBSERVER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_MOCK_MEDIA_OBSERVER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_MOCK_MEDIA_OBSERVER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_MOCK_MEDIA_OBSERVER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "content/browser/media/media_internals.h" 11 #include "content/browser/media/media_internals.h"
12 #include "content/public/browser/media_observer.h" 12 #include "content/public/browser/media_observer.h"
13 #include "media/audio/audio_parameters.h"
13 #include "media/base/media_log_event.h" 14 #include "media/base/media_log_event.h"
14 #include "testing/gmock/include/gmock/gmock.h" 15 #include "testing/gmock/include/gmock/gmock.h"
15 16
16 namespace content { 17 namespace content {
17 18
18 class MockMediaObserver : public MediaObserver { 19 class MockMediaObserver : public MediaObserver {
19 public: 20 public:
20 MockMediaObserver(); 21 MockMediaObserver();
21 virtual ~MockMediaObserver(); 22 virtual ~MockMediaObserver();
22 23
(...skipping 17 matching lines...) Expand all
40 41
41 class MockMediaInternals : public MediaInternals { 42 class MockMediaInternals : public MediaInternals {
42 public: 43 public:
43 MockMediaInternals(); 44 MockMediaInternals();
44 virtual ~MockMediaInternals(); 45 virtual ~MockMediaInternals();
45 46
46 MOCK_METHOD2(OnDeleteAudioStream, 47 MOCK_METHOD2(OnDeleteAudioStream,
47 void(void* host, int stream_id)); 48 void(void* host, int stream_id));
48 MOCK_METHOD3(OnSetAudioStreamPlaying, 49 MOCK_METHOD3(OnSetAudioStreamPlaying,
49 void(void* host, int stream_id, bool playing)); 50 void(void* host, int stream_id, bool playing));
51 MOCK_METHOD4(OnAudioStreamCreated,
52 void(void* host, int stream_id,
53 const media::AudioParameters& params,
54 const std::string& input_device_id));
50 MOCK_METHOD3(OnSetAudioStreamStatus, 55 MOCK_METHOD3(OnSetAudioStreamStatus,
51 void(void* host, int stream_id, const std::string& status)); 56 void(void* host, int stream_id, const std::string& status));
52 MOCK_METHOD3(OnSetAudioStreamVolume, 57 MOCK_METHOD3(OnSetAudioStreamVolume,
53 void(void* host, int stream_id, double volume)); 58 void(void* host, int stream_id, double volume));
54 MOCK_METHOD2(OnMediaEvent, 59 MOCK_METHOD2(OnMediaEvent,
55 void(int source, const media::MediaLogEvent& event)); 60 void(int source, const media::MediaLogEvent& event));
56 }; 61 };
57 62
58 } // namespace content 63 } // namespace content
59 64
60 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MOCK_MEDIA_OBSERVER_H_ 65 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MOCK_MEDIA_OBSERVER_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/webrtc_audio_device_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698