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

Side by Side Diff: content/renderer/media/webrtc/mock_peer_connection_dependency_factory.h

Issue 1584433002: Delete MockVideoRenderer::SetSize. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_WEBRTC_MOCK_PEER_CONNECTION_DEPENDENCY_FACTORY_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_MOCK_PEER_CONNECTION_DEPENDENCY_FACTORY_H_
6 #define CONTENT_RENDERER_MEDIA_WEBRTC_MOCK_PEER_CONNECTION_DEPENDENCY_FACTORY_H_ 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_MOCK_PEER_CONNECTION_DEPENDENCY_FACTORY_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "content/renderer/media/webrtc/peer_connection_dependency_factory.h" 14 #include "content/renderer/media/webrtc/peer_connection_dependency_factory.h"
15 #include "third_party/libjingle/source/talk/app/webrtc/mediaconstraintsinterface .h" 15 #include "third_party/libjingle/source/talk/app/webrtc/mediaconstraintsinterface .h"
16 #include "third_party/libjingle/source/talk/media/base/videorenderer.h" 16 #include "third_party/libjingle/source/talk/media/base/videorenderer.h"
17 17
18 namespace content { 18 namespace content {
19 19
20 class WebAudioCapturerSource; 20 class WebAudioCapturerSource;
21 typedef std::set<webrtc::ObserverInterface*> ObserverSet; 21 typedef std::set<webrtc::ObserverInterface*> ObserverSet;
22 22
23 class MockVideoRenderer : public cricket::VideoRenderer { 23 class MockVideoRenderer : public cricket::VideoRenderer {
24 public: 24 public:
25 MockVideoRenderer(); 25 MockVideoRenderer();
26 ~MockVideoRenderer() override; 26 ~MockVideoRenderer() override;
27 bool SetSize(int width, int height, int reserved) override;
28 bool RenderFrame(const cricket::VideoFrame* frame) override; 27 bool RenderFrame(const cricket::VideoFrame* frame) override;
29 28
30 int width() const { return width_; } 29 int width() const { return width_; }
31 int height() const { return height_; } 30 int height() const { return height_; }
32 int num() const { return num_; } 31 int num() const { return num_; }
33 32
34 private: 33 private:
35 int width_; 34 int width_;
36 int height_; 35 int height_;
37 int num_; 36 int num_;
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 bool fail_to_create_next_audio_capturer_; 228 bool fail_to_create_next_audio_capturer_;
230 scoped_refptr <MockAudioSource> last_audio_source_; 229 scoped_refptr <MockAudioSource> last_audio_source_;
231 scoped_refptr <MockVideoSource> last_video_source_; 230 scoped_refptr <MockVideoSource> last_video_source_;
232 231
233 DISALLOW_COPY_AND_ASSIGN(MockPeerConnectionDependencyFactory); 232 DISALLOW_COPY_AND_ASSIGN(MockPeerConnectionDependencyFactory);
234 }; 233 };
235 234
236 } // namespace content 235 } // namespace content
237 236
238 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_MOCK_PEER_CONNECTION_DEPENDENCY_FACTORY _H_ 237 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_MOCK_PEER_CONNECTION_DEPENDENCY_FACTORY _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698