diff options
-rw-r--r-- | media/filters/file_data_source_unittest.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/media/filters/file_data_source_unittest.cc b/media/filters/file_data_source_unittest.cc index 311b6cd..7555cb9 100644 --- a/media/filters/file_data_source_unittest.cc +++ b/media/filters/file_data_source_unittest.cc @@ -77,13 +77,13 @@ TEST(FileDataSourceTest, OpenFile) { // Use the mock filter host to directly call the Read and GetPosition methods. TEST(FileDataSourceTest, ReadData) { - MediaFormat url_format;
+ MediaFormat url_format; int64 position; int64 size; - char ten_bytes[10];
- std::string url = TestFileURL();
- url_format.SetAsString(MediaFormat::kMimeType, media::mime_type::kURL);
- url_format.SetAsString(MediaFormat::kURL, url);
+ char ten_bytes[10]; + std::string url = TestFileURL(); + url_format.SetAsString(MediaFormat::kMimeType, media::mime_type::kURL); + url_format.SetAsString(MediaFormat::kURL, url); MockFilterHost<FileDataSource, std::string> mock_host(&url_format, url); EXPECT_TRUE(mock_host.filter()->GetSize(&size)); |