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

Side by Side Diff: chromecast/media/cma/ipc_streamer/av_streamer_unittest.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: address damien's 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 <list> 5 #include <list>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/threading/thread.h" 12 #include "base/threading/thread.h"
13 #include "base/time/time.h" 13 #include "base/time/time.h"
14 #include "chromecast/media/cma/base/decoder_buffer_base.h" 14 #include "chromecast/media/cma/base/decoder_buffer_base.h"
15 #include "chromecast/media/cma/base/frame_generator_for_test.h"
16 #include "chromecast/media/cma/base/mock_frame_consumer.h"
17 #include "chromecast/media/cma/base/mock_frame_provider.h"
18 #include "chromecast/media/cma/ipc/media_memory_chunk.h" 15 #include "chromecast/media/cma/ipc/media_memory_chunk.h"
19 #include "chromecast/media/cma/ipc/media_message_fifo.h" 16 #include "chromecast/media/cma/ipc/media_message_fifo.h"
20 #include "chromecast/media/cma/ipc_streamer/av_streamer_proxy.h" 17 #include "chromecast/media/cma/ipc_streamer/av_streamer_proxy.h"
21 #include "chromecast/media/cma/ipc_streamer/coded_frame_provider_host.h" 18 #include "chromecast/media/cma/ipc_streamer/coded_frame_provider_host.h"
19 #include "chromecast/media/cma/test/frame_generator_for_test.h"
20 #include "chromecast/media/cma/test/mock_frame_consumer.h"
21 #include "chromecast/media/cma/test/mock_frame_provider.h"
22 #include "media/base/audio_decoder_config.h" 22 #include "media/base/audio_decoder_config.h"
23 #include "media/base/decoder_buffer.h" 23 #include "media/base/decoder_buffer.h"
24 #include "media/base/video_decoder_config.h" 24 #include "media/base/video_decoder_config.h"
25 #include "testing/gtest/include/gtest/gtest.h" 25 #include "testing/gtest/include/gtest/gtest.h"
26 26
27 namespace chromecast { 27 namespace chromecast {
28 namespace media { 28 namespace media {
29 29
30 namespace { 30 namespace {
31 31
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 244
245 scoped_ptr<base::MessageLoop> message_loop(new base::MessageLoop()); 245 scoped_ptr<base::MessageLoop> message_loop(new base::MessageLoop());
246 message_loop->PostTask( 246 message_loop->PostTask(
247 FROM_HERE, 247 FROM_HERE,
248 base::Bind(&AvStreamerTest::Start, base::Unretained(this))); 248 base::Bind(&AvStreamerTest::Start, base::Unretained(this)));
249 message_loop->Run(); 249 message_loop->Run();
250 }; 250 };
251 251
252 } // namespace media 252 } // namespace media
253 } // namespace chromecast 253 } // namespace chromecast
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698