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

Side by Side Diff: media/filters/bitstream_converter_unittest.cc

Issue 555087: Refactor some code that depends on FFmpeg (Closed)
Patch Set: 2010 Created 10 years, 11 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
« no previous file with comments | « media/filters/bitstream_converter.cc ('k') | media/filters/ffmpeg_audio_decoder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "media/base/mock_ffmpeg.h" 7 #include "media/base/mock_ffmpeg.h"
8 #include "media/ffmpeg/ffmpeg_common.h"
8 #include "media/filters/bitstream_converter.h" 9 #include "media/filters/bitstream_converter.h"
9 #include "media/filters/ffmpeg_common.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 using ::testing::DoAll; 12 using ::testing::DoAll;
13 using ::testing::Mock; 13 using ::testing::Mock;
14 using ::testing::Return; 14 using ::testing::Return;
15 using ::testing::ReturnNull; 15 using ::testing::ReturnNull;
16 using ::testing::SetArgumentPointee; 16 using ::testing::SetArgumentPointee;
17 using ::testing::StrEq; 17 using ::testing::StrEq;
18 using ::testing::StrictMock; 18 using ::testing::StrictMock;
19 using ::testing::_; 19 using ::testing::_;
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 EXPECT_EQ(kData1, test_packet_.data); 160 EXPECT_EQ(kData1, test_packet_.data);
161 EXPECT_EQ(kTestSize1, test_packet_.size); 161 EXPECT_EQ(kTestSize1, test_packet_.size);
162 EXPECT_TRUE(test_packet_.destruct == NULL); 162 EXPECT_TRUE(test_packet_.destruct == NULL);
163 163
164 // Uninject mock filter instance to avoid cleanup code on destruction of 164 // Uninject mock filter instance to avoid cleanup code on destruction of
165 // converter. 165 // converter.
166 converter.stream_filter_ = NULL; 166 converter.stream_filter_ = NULL;
167 } 167 }
168 168
169 } // namespace media 169 } // namespace media
OLDNEW
« no previous file with comments | « media/filters/bitstream_converter.cc ('k') | media/filters/ffmpeg_audio_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698