diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-07 19:21:48 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-07 19:21:48 +0000 |
commit | a732916421eb01c3a06187bf3e077e8ce0dd5912 (patch) | |
tree | 4981b7c3ceb04be445f093c1a7689107725f736e /content/common/gpu/media | |
parent | 2dec8ec385e65c80571c5723dc572264a934b7c9 (diff) | |
download | chromium_src-a732916421eb01c3a06187bf3e077e8ce0dd5912.zip chromium_src-a732916421eb01c3a06187bf3e077e8ce0dd5912.tar.gz chromium_src-a732916421eb01c3a06187bf3e077e8ce0dd5912.tar.bz2 |
Use base namespace for FilePath in chrome/common and content/common.
Review URL: https://codereview.chromium.org/12210058
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181350 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/gpu/media')
-rw-r--r-- | content/common/gpu/media/h264_parser_unittest.cc | 4 | ||||
-rw-r--r-- | content/common/gpu/media/video_decode_accelerator_unittest.cc | 17 |
2 files changed, 11 insertions, 10 deletions
diff --git a/content/common/gpu/media/h264_parser_unittest.cc b/content/common/gpu/media/h264_parser_unittest.cc index fdcd569..7c2a757 100644 --- a/content/common/gpu/media/h264_parser_unittest.cc +++ b/content/common/gpu/media/h264_parser_unittest.cc @@ -13,13 +13,13 @@ using content::H264Parser; using content::H264NALU; -const FilePath::CharType* test_stream_filename = +const base::FilePath::CharType* test_stream_filename = FILE_PATH_LITERAL("content/common/gpu/testdata/test-25fps.h264"); // Number of NALUs in the stream to be parsed. int num_nalus = 759; TEST(H264ParserTest, StreamFileParsing) { - FilePath fp(test_stream_filename); + base::FilePath fp(test_stream_filename); file_util::MemoryMappedFile stream; CHECK(stream.Initialize(fp)) << "Couldn't open stream file: " << test_stream_filename; diff --git a/content/common/gpu/media/video_decode_accelerator_unittest.cc b/content/common/gpu/media/video_decode_accelerator_unittest.cc index 756a904..8da4da3 100644 --- a/content/common/gpu/media/video_decode_accelerator_unittest.cc +++ b/content/common/gpu/media/video_decode_accelerator_unittest.cc @@ -76,13 +76,13 @@ namespace { // - |profile| is the media::VideoCodecProfile set during Initialization. // An empty value for a numeric field means "ignore". #if defined(OS_MACOSX) -const FilePath::CharType* test_video_data = +const base::FilePath::CharType* test_video_data = FILE_PATH_LITERAL("test-25fps_high.h264:1280:720:250:252:50:100:4"); #else // TODO(fischman): figure out how to support multiple test videos per run (needs // to refactor where ParseTestVideoData is called). For now just make it easy // to replace which file is used by commenting/uncommenting these lines: -const FilePath::CharType* test_video_data = +const base::FilePath::CharType* test_video_data = // FILE_PATH_LITERAL("test-25fps.vp8:320:240:250:250:50:175:11"); FILE_PATH_LITERAL("test-25fps.h264:320:240:250:258:50:175:1"); #endif @@ -90,15 +90,15 @@ const FilePath::CharType* test_video_data = // Parse |data| into its constituent parts and set the various output fields // accordingly. CHECK-fails on unexpected or missing required data. // Unspecified optional fields are set to -1. -void ParseTestVideoData(FilePath::StringType data, - FilePath::StringType* file_name, +void ParseTestVideoData(base::FilePath::StringType data, + base::FilePath::StringType* file_name, int* width, int* height, int* num_frames, int* num_fragments, int* min_fps_render, int* min_fps_no_render, int* profile) { - std::vector<FilePath::StringType> elements; + std::vector<base::FilePath::StringType> elements; base::SplitString(data, ':', &elements); CHECK_GE(elements.size(), 1U) << data; CHECK_LE(elements.size(), 8U) << data; @@ -694,7 +694,7 @@ TEST_P(VideoDecodeAcceleratorTest, TestSimpleDecode) { const int reset_after_frame_num = GetParam().e; const int delete_decoder_state = GetParam().f; - FilePath::StringType test_video_file; + base::FilePath::StringType test_video_file; int frame_width, frame_height; int num_frames, num_fragments, min_fps_render, min_fps_no_render, profile; ParseTestVideoData(test_video_data, &test_video_file, &frame_width, @@ -717,8 +717,9 @@ TEST_P(VideoDecodeAcceleratorTest, TestSimpleDecode) { // Read in the video data. std::string data_str; - CHECK(file_util::ReadFileToString(FilePath(test_video_file), &data_str)) - << "test_video_file: " << FilePath(test_video_file).MaybeAsASCII(); + CHECK(file_util::ReadFileToString(base::FilePath(test_video_file), + &data_str)) + << "test_video_file: " << base::FilePath(test_video_file).MaybeAsASCII(); // Initialize the rendering helper. base::Thread rendering_thread("GLRenderingVDAClientThread"); |