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 #ifndef MEDIA_BASE_MOCK_FFMPEG_H_ | 5 #ifndef MEDIA_BASE_MOCK_FFMPEG_H_ |
6 #define MEDIA_BASE_MOCK_FFMPEG_H_ | 6 #define MEDIA_BASE_MOCK_FFMPEG_H_ |
7 | 7 |
8 // TODO(scherkus): See if we can remove ffmpeg_common from this file. | 8 // TODO(scherkus): See if we can remove ffmpeg_common from this file. |
9 #include "media/filters/ffmpeg_common.h" | 9 #include "media/ffmpeg/ffmpeg_common.h" |
10 #include "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
11 | 11 |
12 namespace media { | 12 namespace media { |
13 | 13 |
14 class MockFFmpeg { | 14 class MockFFmpeg { |
15 public: | 15 public: |
16 MockFFmpeg(); | 16 MockFFmpeg(); |
17 virtual ~MockFFmpeg(); | 17 virtual ~MockFFmpeg(); |
18 | 18 |
19 // TODO(ajwong): Organize this class, and make sure that all mock entrypoints | 19 // TODO(ajwong): Organize this class, and make sure that all mock entrypoints |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 arg0->destruct(arg0); | 139 arg0->destruct(arg0); |
140 } | 140 } |
141 | 141 |
142 // Decrement number of packets allocated. | 142 // Decrement number of packets allocated. |
143 MockFFmpeg::get()->dec_outstanding_packets(); | 143 MockFFmpeg::get()->dec_outstanding_packets(); |
144 } | 144 } |
145 | 145 |
146 } // namespace media | 146 } // namespace media |
147 | 147 |
148 #endif // MEDIA_BASE_MOCK_FFMPEG_H_ | 148 #endif // MEDIA_BASE_MOCK_FFMPEG_H_ |
OLD | NEW |