Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1298)

Side by Side Diff: trunk/src/media/base/test_data_util.cc

Issue 105823009: Revert 239280 "Move more file_util functions to base namespace." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #include "media/base/test_data_util.h" 5 #include "media/base/test_data_util.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "media/base/decoder_buffer.h" 10 #include "media/base/decoder_buffer.h"
(...skipping 19 matching lines...) Expand all
30 .AppendASCII(name); 30 .AppendASCII(name);
31 31
32 int64 tmp = 0; 32 int64 tmp = 0;
33 CHECK(base::GetFileSize(file_path, &tmp)) 33 CHECK(base::GetFileSize(file_path, &tmp))
34 << "Failed to get file size for '" << name << "'"; 34 << "Failed to get file size for '" << name << "'";
35 35
36 int file_size = static_cast<int>(tmp); 36 int file_size = static_cast<int>(tmp);
37 37
38 scoped_refptr<DecoderBuffer> buffer(new DecoderBuffer(file_size)); 38 scoped_refptr<DecoderBuffer> buffer(new DecoderBuffer(file_size));
39 CHECK_EQ(file_size, 39 CHECK_EQ(file_size,
40 base::ReadFile( 40 file_util::ReadFile(
41 file_path, reinterpret_cast<char*>(buffer->writable_data()), 41 file_path, reinterpret_cast<char*>(buffer->writable_data()),
42 file_size)) << "Failed to read '" << name << "'"; 42 file_size)) << "Failed to read '" << name << "'";
43 43
44 return buffer; 44 return buffer;
45 } 45 }
46 46
47 } // namespace media 47 } // namespace media
OLDNEW
« no previous file with comments | « trunk/src/media/base/container_names_unittest.cc ('k') | trunk/src/media/base/yuv_convert_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698