OLD | NEW |
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 "url/gurl.h" |
12 | 12 |
13 namespace content { | 13 namespace content { |
14 | 14 |
15 // This class is a mock implementation of MediaStreamDispatcher. | 15 // This class is a mock implementation of MediaStreamDispatcher. |
16 class MockMediaStreamDispatcher : public MediaStreamDispatcher { | 16 class MockMediaStreamDispatcher : public MediaStreamDispatcher { |
17 public: | 17 public: |
18 MockMediaStreamDispatcher(); | 18 MockMediaStreamDispatcher(); |
19 virtual ~MockMediaStreamDispatcher(); | 19 virtual ~MockMediaStreamDispatcher(); |
20 | 20 |
21 virtual void GenerateStream( | 21 virtual void GenerateStream( |
(...skipping 26 matching lines...) Expand all Loading... |
48 std::string stream_label_; | 48 std::string stream_label_; |
49 StreamDeviceInfoArray audio_array_; | 49 StreamDeviceInfoArray audio_array_; |
50 StreamDeviceInfoArray video_array_; | 50 StreamDeviceInfoArray video_array_; |
51 | 51 |
52 DISALLOW_COPY_AND_ASSIGN(MockMediaStreamDispatcher); | 52 DISALLOW_COPY_AND_ASSIGN(MockMediaStreamDispatcher); |
53 }; | 53 }; |
54 | 54 |
55 } // namespace content | 55 } // namespace content |
56 | 56 |
57 #endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DISPATCHER_H_ | 57 #endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DISPATCHER_H_ |
OLD | NEW |