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

Side by Side Diff: content/renderer/media/rtc_video_decoder_unittest.cc

Issue 7193001: Move rtc_video_decoder* from media/filter/ to content/renderer/media/. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <deque> 5 #include <deque>
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/singleton.h" 8 #include "base/memory/singleton.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "content/renderer/media/rtc_video_decoder.h"
10 #include "media/base/data_buffer.h" 11 #include "media/base/data_buffer.h"
11 #include "media/base/filters.h" 12 #include "media/base/filters.h"
12 #include "media/base/limits.h" 13 #include "media/base/limits.h"
13 #include "media/base/mock_callback.h" 14 #include "media/base/mock_callback.h"
14 #include "media/base/mock_filter_host.h" 15 #include "media/base/mock_filter_host.h"
15 #include "media/base/mock_filters.h" 16 #include "media/base/mock_filters.h"
16 #include "media/base/mock_task.h" 17 #include "media/base/mock_task.h"
17 #include "media/base/video_frame.h" 18 #include "media/base/video_frame.h"
18 #include "media/filters/rtc_video_decoder.h"
19 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
20 20
21 using ::testing::_; 21 using ::testing::_;
22 using ::testing::AnyNumber; 22 using ::testing::AnyNumber;
23 using ::testing::DoAll; 23 using ::testing::DoAll;
24 using ::testing::Message; 24 using ::testing::Message;
25 using ::testing::Return; 25 using ::testing::Return;
26 using ::testing::ReturnNull; 26 using ::testing::ReturnNull;
27 using ::testing::SetArgumentPointee; 27 using ::testing::SetArgumentPointee;
28 using ::testing::StrictMock; 28 using ::testing::StrictMock;
29 using ::testing::WithArg; 29 using ::testing::WithArg;
30 using ::testing::Invoke; 30 using ::testing::Invoke;
31 31
32 namespace media { 32 namespace media {
scherkus (not reviewing) 2011/06/17 00:31:46 ditto
Ronghua 2011/06/24 21:08:51 Done.
33 33
34 class RTCVideoDecoderTest : public testing::Test { 34 class RTCVideoDecoderTest : public testing::Test {
35 protected: 35 protected:
36 static const int kWidth; 36 static const int kWidth;
37 static const int kHeight; 37 static const int kHeight;
38 static const char* kUrl; 38 static const char* kUrl;
39 static const PipelineStatistics kStatistics; 39 static const PipelineStatistics kStatistics;
40 40
41 RTCVideoDecoderTest() { 41 RTCVideoDecoderTest() {
42 MediaFormat media_format; 42 MediaFormat media_format;
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 EXPECT_TRUE(media_format.GetAsInteger(MediaFormat::kWidth, &width)); 165 EXPECT_TRUE(media_format.GetAsInteger(MediaFormat::kWidth, &width));
166 EXPECT_EQ(new_width, width); 166 EXPECT_EQ(new_width, width);
167 EXPECT_TRUE(media_format.GetAsInteger(MediaFormat::kHeight, &height)); 167 EXPECT_TRUE(media_format.GetAsInteger(MediaFormat::kHeight, &height));
168 EXPECT_EQ(new_height, height); 168 EXPECT_EQ(new_height, height);
169 169
170 message_loop_.RunAllPending(); 170 message_loop_.RunAllPending();
171 } 171 }
172 172
173 173
174 } // namespace media 174 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698