| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_TEST_DATA_UTIL_H_ | 5 #ifndef MEDIA_BASE_TEST_DATA_UTIL_H_ |
| 6 #define MEDIA_BASE_TEST_DATA_UTIL_H_ | 6 #define MEDIA_BASE_TEST_DATA_UTIL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | |
| 13 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 14 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 15 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 16 #include "base/strings/string_split.h" | 15 #include "base/strings/string_split.h" |
| 17 | 16 |
| 18 namespace media { | 17 namespace media { |
| 19 | 18 |
| 20 class DecoderBuffer; | 19 class DecoderBuffer; |
| 21 | 20 |
| 22 // Returns a file path for a file in the media/test/data directory. | 21 // Returns a file path for a file in the media/test/data directory. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 33 // a DecoderBuffer. Use DecoderBuffer vs DataBuffer to ensure no matter | 32 // a DecoderBuffer. Use DecoderBuffer vs DataBuffer to ensure no matter |
| 34 // what a test does, it's safe to use FFmpeg methods. | 33 // what a test does, it's safe to use FFmpeg methods. |
| 35 // | 34 // |
| 36 // |name| - The name of the file. | 35 // |name| - The name of the file. |
| 37 // |buffer| - The contents of the file. | 36 // |buffer| - The contents of the file. |
| 38 scoped_refptr<DecoderBuffer> ReadTestDataFile(const std::string& name); | 37 scoped_refptr<DecoderBuffer> ReadTestDataFile(const std::string& name); |
| 39 | 38 |
| 40 } // namespace media | 39 } // namespace media |
| 41 | 40 |
| 42 #endif // MEDIA_BASE_TEST_DATA_UTIL_H_ | 41 #endif // MEDIA_BASE_TEST_DATA_UTIL_H_ |
| OLD | NEW |