OLD | NEW |
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 Loading... |
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 |
OLD | NEW |