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 #include "content/renderer/media/rtc_video_decoder.h" | 5 #include "content/renderer/media/rtc_video_decoder.h" |
6 | 6 |
7 #include <deque> | 7 #include <deque> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/memory/singleton.h" | 10 #include "base/memory/singleton.h" |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 class MockVideoTrack : public webrtc::VideoTrackInterface { | 119 class MockVideoTrack : public webrtc::VideoTrackInterface { |
120 public: | 120 public: |
121 static MockVideoTrack* Create() { | 121 static MockVideoTrack* Create() { |
122 return new talk_base::RefCountedObject<MockVideoTrack>(); | 122 return new talk_base::RefCountedObject<MockVideoTrack>(); |
123 } | 123 } |
124 | 124 |
125 virtual std::string kind() const OVERRIDE { | 125 virtual std::string kind() const OVERRIDE { |
126 NOTIMPLEMENTED(); | 126 NOTIMPLEMENTED(); |
127 return ""; | 127 return ""; |
128 } | 128 } |
129 virtual std::string label() const OVERRIDE { | 129 virtual std::string id() const OVERRIDE { |
130 NOTIMPLEMENTED(); | 130 NOTIMPLEMENTED(); |
131 return ""; | 131 return ""; |
132 } | 132 } |
133 virtual bool enabled() const OVERRIDE { | 133 virtual bool enabled() const OVERRIDE { |
134 NOTIMPLEMENTED(); | 134 NOTIMPLEMENTED(); |
135 return false; | 135 return false; |
136 } | 136 } |
137 virtual TrackState state() const OVERRIDE { | 137 virtual TrackState state() const OVERRIDE { |
138 NOTIMPLEMENTED(); | 138 NOTIMPLEMENTED(); |
139 return kEnded; | 139 return kEnded; |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 Stop(); | 331 Stop(); |
332 | 332 |
333 // Any read after stopping should be immediately satisfied. | 333 // Any read after stopping should be immediately satisfied. |
334 EXPECT_CALL(*this, FrameReady(media::VideoDecoder::kOk, | 334 EXPECT_CALL(*this, FrameReady(media::VideoDecoder::kOk, |
335 scoped_refptr<media::VideoFrame>())); | 335 scoped_refptr<media::VideoFrame>())); |
336 decoder_->Read(read_cb_); | 336 decoder_->Read(read_cb_); |
337 message_loop_.RunUntilIdle(); | 337 message_loop_.RunUntilIdle(); |
338 } | 338 } |
339 | 339 |
340 } // namespace content | 340 } // namespace content |
OLD | NEW |