OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef MEDIA_BASE_TEST_DATA_UTIL_H_ |
| 6 #define MEDIA_BASE_TEST_DATA_UTIL_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/basictypes.h" |
| 11 #include "base/scoped_ptr.h" |
| 12 #include "media/base/data_buffer.h" |
| 13 |
| 14 namespace media { |
| 15 |
| 16 // Reads a test file from media/test/data directory and stores it in |
| 17 // a scoped_array. |
| 18 // |
| 19 // |name| - The name of the file. |
| 20 // |buffer| - The contents of the file. |
| 21 // |size| - The size of the buffer. |
| 22 void ReadTestDataFile(const std::string& name, |
| 23 scoped_array<uint8>* buffer, |
| 24 int* size); |
| 25 |
| 26 // Reads a test file from media/test/data directory and stored it in |
| 27 // a Buffer. |
| 28 // |
| 29 // |name| - The name of the file. |
| 30 // |buffer| - The contents of the file. |
| 31 void ReadTestDataFile(const std::string& name, scoped_refptr<Buffer>* buffer); |
| 32 |
| 33 } // namespace media |
| 34 |
| 35 #endif // MEDIA_BASE_TEST_DATA_UTIL_H_ |
OLD | NEW |