Revert "Enable DMP for system Chromium WebView on Android"
[chromium-blink-merge.git] / media / base / test_data_util.h
blob8d51e96c736160f3ba0e7c9d91097d2427483791
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
3 // found in the LICENSE file.
5 #ifndef MEDIA_BASE_TEST_DATA_UTIL_H_
6 #define MEDIA_BASE_TEST_DATA_UTIL_H_
8 #include <string>
10 #include "base/basictypes.h"
11 #include "base/files/file_path.h"
12 #include "base/memory/ref_counted.h"
13 #include "base/memory/scoped_ptr.h"
15 namespace media {
17 class DecoderBuffer;
19 // Returns a file path for a file in the media/test/data directory.
20 base::FilePath GetTestDataFilePath(const std::string& name);
22 // Reads a test file from media/test/data directory and stores it in
23 // a DecoderBuffer. Use DecoderBuffer vs DataBuffer to ensure no matter
24 // what a test does, it's safe to use FFmpeg methods.
26 // |name| - The name of the file.
27 // |buffer| - The contents of the file.
28 scoped_refptr<DecoderBuffer> ReadTestDataFile(const std::string& name);
30 } // namespace media
32 #endif // MEDIA_BASE_TEST_DATA_UTIL_H_