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

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

Issue 1494713002: [Chromecast] Move CastAudioDecoder out to chromecast/media/cma/decoder (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 5 years 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/mock_frame_consumer.h" 5 #include "chromecast/media/cma/test/mock_frame_consumer.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "base/thread_task_runner_handle.h" 10 #include "base/thread_task_runner_handle.h"
11 #include "base/time/time.h" 11 #include "base/time/time.h"
12 #include "chromecast/media/base/decoder_buffer_base.h"
12 #include "chromecast/media/cma/base/coded_frame_provider.h" 13 #include "chromecast/media/cma/base/coded_frame_provider.h"
13 #include "chromecast/media/cma/base/decoder_buffer_base.h"
14 #include "chromecast/media/cma/test/frame_generator_for_test.h" 14 #include "chromecast/media/cma/test/frame_generator_for_test.h"
15 #include "media/base/video_decoder_config.h" 15 #include "media/base/video_decoder_config.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 17
18 namespace chromecast { 18 namespace chromecast {
19 namespace media { 19 namespace media {
20 20
21 MockFrameConsumer::MockFrameConsumer( 21 MockFrameConsumer::MockFrameConsumer(
22 CodedFrameProvider* coded_frame_provider) 22 CodedFrameProvider* coded_frame_provider)
23 : coded_frame_provider_(coded_frame_provider), 23 : coded_frame_provider_(coded_frame_provider),
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 } 106 }
107 } 107 }
108 108
109 void MockFrameConsumer::OnFlushCompleted() { 109 void MockFrameConsumer::OnFlushCompleted() {
110 EXPECT_EQ(frame_generator_->RemainingFrameCount(), 0u); 110 EXPECT_EQ(frame_generator_->RemainingFrameCount(), 0u);
111 done_cb_.Run(); 111 done_cb_.Run();
112 } 112 }
113 113
114 } // namespace media 114 } // namespace media
115 } // namespace chromecast 115 } // namespace chromecast
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698