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

Side by Side Diff: content/renderer/media/mock_media_stream_dispatcher.h

Issue 11232014: Move a bunch of code in content\renderer to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 2 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
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_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DISPATCHER_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DISPATCHER_H_
6 #define CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DISPATCHER_H_ 6 #define CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DISPATCHER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "content/renderer/media/media_stream_dispatcher.h" 10 #include "content/renderer/media/media_stream_dispatcher.h"
11 #include "googleurl/src/gurl.h" 11 #include "googleurl/src/gurl.h"
12 12
13 namespace content {
14
13 // This class is a mock implementation of MediaStreamDispatcher. 15 // This class is a mock implementation of MediaStreamDispatcher.
14 class MockMediaStreamDispatcher : public MediaStreamDispatcher { 16 class MockMediaStreamDispatcher : public MediaStreamDispatcher {
15 public: 17 public:
16 MockMediaStreamDispatcher(); 18 MockMediaStreamDispatcher();
17 virtual ~MockMediaStreamDispatcher(); 19 virtual ~MockMediaStreamDispatcher();
18 20
19 virtual void GenerateStream( 21 virtual void GenerateStream(
20 int request_id, 22 int request_id,
21 const base::WeakPtr<MediaStreamDispatcherEventHandler>&, 23 const base::WeakPtr<MediaStreamDispatcherEventHandler>&,
22 const media_stream::StreamOptions& components, 24 const media_stream::StreamOptions& components,
(...skipping 18 matching lines...) Expand all
41 base::WeakPtr<MediaStreamDispatcherEventHandler> event_handler_; 43 base::WeakPtr<MediaStreamDispatcherEventHandler> event_handler_;
42 int stop_stream_counter_; 44 int stop_stream_counter_;
43 45
44 std::string stream_label_; 46 std::string stream_label_;
45 media_stream::StreamDeviceInfoArray audio_array_; 47 media_stream::StreamDeviceInfoArray audio_array_;
46 media_stream::StreamDeviceInfoArray video_array_; 48 media_stream::StreamDeviceInfoArray video_array_;
47 49
48 DISALLOW_COPY_AND_ASSIGN(MockMediaStreamDispatcher); 50 DISALLOW_COPY_AND_ASSIGN(MockMediaStreamDispatcher);
49 }; 51 };
50 52
53 } // namespace content
54
51 #endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DISPATCHER_H_ 55 #endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/renderer/media/media_stream_impl_unittest.cc ('k') | content/renderer/media/mock_media_stream_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698