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

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

Issue 609383004: Chromecast: adds test frame-segmenter code to support CMA unit tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cma-decrypt-context
Patch Set: fix includes 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/base/frame_generator_for_test.h" 5 #include "chromecast/media/cma/test/frame_generator_for_test.h"
6 6
7 #include "chromecast/media/cma/base/decoder_buffer_adapter.h" 7 #include "chromecast/media/cma/base/decoder_buffer_adapter.h"
8 #include "chromecast/media/cma/base/decoder_buffer_base.h" 8 #include "chromecast/media/cma/base/decoder_buffer_base.h"
9 #include "media/base/decoder_buffer.h" 9 #include "media/base/decoder_buffer.h"
10 #include "media/base/decrypt_config.h" 10 #include "media/base/decrypt_config.h"
11 11
12 namespace chromecast { 12 namespace chromecast {
13 namespace media { 13 namespace media {
14 14
15 FrameGeneratorForTest::FrameSpec::FrameSpec() 15 FrameGeneratorForTest::FrameSpec::FrameSpec()
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 return scoped_refptr<DecoderBufferBase>(new DecoderBufferAdapter(buffer)); 104 return scoped_refptr<DecoderBufferBase>(new DecoderBufferAdapter(buffer));
105 } 105 }
106 106
107 size_t FrameGeneratorForTest::RemainingFrameCount() const { 107 size_t FrameGeneratorForTest::RemainingFrameCount() const {
108 size_t count = frame_specs_.size() - frame_idx_; 108 size_t count = frame_specs_.size() - frame_idx_;
109 return count; 109 return count;
110 } 110 }
111 111
112 } // namespace media 112 } // namespace media
113 } // namespace chromecast 113 } // namespace chromecast
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698