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

Side by Side Diff: chromecast/media/cma/test/frame_segmenter_for_test.cc

Issue 622853002: Chromecast: adds interfaces for hardware layer of CMA pipeline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cma-decrypt-context
Patch Set: damien comments Created 6 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
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 #include "chromecast/media/cma/test/frame_segmenter_for_test.h" 5 #include "chromecast/media/cma/test/frame_segmenter_for_test.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/port.h" 10 #include "base/port.h"
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 CHECK(buffer.get()); 276 CHECK(buffer.get());
277 CHECK(buffer_list); 277 CHECK(buffer_list);
278 buffer_list->push_back(new DecoderBufferAdapter(buffer)); 278 buffer_list->push_back(new DecoderBufferAdapter(buffer));
279 finished_cb.Run(); 279 finished_cb.Run();
280 } 280 }
281 281
282 class FakeDemuxerHost : public ::media::DemuxerHost { 282 class FakeDemuxerHost : public ::media::DemuxerHost {
283 public: 283 public:
284 // DemuxerHost implementation. 284 // DemuxerHost implementation.
285 virtual void AddBufferedTimeRange(base::TimeDelta start, 285 virtual void AddBufferedTimeRange(base::TimeDelta start,
286 base::TimeDelta end) OVERRIDE {} 286 base::TimeDelta end) override {}
287 virtual void SetDuration(base::TimeDelta duration) OVERRIDE {} 287 virtual void SetDuration(base::TimeDelta duration) override {}
288 virtual void OnDemuxerError(::media::PipelineStatus error) OVERRIDE { 288 virtual void OnDemuxerError(::media::PipelineStatus error) override {
289 LOG(FATAL) << "OnDemuxerError: " << error; 289 LOG(FATAL) << "OnDemuxerError: " << error;
290 } 290 }
291 virtual void AddTextStream(::media::DemuxerStream* text_stream, 291 virtual void AddTextStream(::media::DemuxerStream* text_stream,
292 const ::media::TextTrackConfig& config) OVERRIDE { 292 const ::media::TextTrackConfig& config) override {
293 } 293 }
294 virtual void RemoveTextStream(::media::DemuxerStream* text_stream) OVERRIDE { 294 virtual void RemoveTextStream(::media::DemuxerStream* text_stream) override {
295 } 295 }
296 }; 296 };
297 297
298 DemuxResult::DemuxResult() { 298 DemuxResult::DemuxResult() {
299 } 299 }
300 300
301 DemuxResult::~DemuxResult() { 301 DemuxResult::~DemuxResult() {
302 } 302 }
303 303
304 DemuxResult FFmpegDemuxForTest(const base::FilePath& filepath, 304 DemuxResult FFmpegDemuxForTest(const base::FilePath& filepath,
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 CHECK(!demux_result.frames.empty()); 338 CHECK(!demux_result.frames.empty());
339 end_of_stream = demux_result.frames.back()->end_of_stream(); 339 end_of_stream = demux_result.frames.back()->end_of_stream();
340 } 340 }
341 341
342 demuxer.Stop(); 342 demuxer.Stop();
343 return demux_result; 343 return demux_result;
344 } 344 }
345 345
346 } // namespace media 346 } // namespace media
347 } // namespace chromecast 347 } // namespace chromecast
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698