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

Side by Side Diff: media/test/ffmpeg_tests/ffmpeg_tests.cc

Issue 7352006: Rename CommandLine::GetArgs(), update callers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename CommandLine::GetArgs(), update callers. Created 9 years, 5 months 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
« no previous file with comments | « courgette/courgette_tool.cc ('k') | media/tools/media_bench/media_bench.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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 // Software qualification test for FFmpeg. This test is used to certify that 5 // Software qualification test for FFmpeg. This test is used to certify that
6 // software decoding quality and performance of FFmpeg meets a mimimum 6 // software decoding quality and performance of FFmpeg meets a mimimum
7 // standard. 7 // standard.
8 8
9 #include <iomanip> 9 #include <iomanip>
10 #include <iostream> 10 #include <iostream>
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 void LeaveTimingSection() { 64 void LeaveTimingSection() {
65 } 65 }
66 #endif 66 #endif
67 67
68 int main(int argc, const char** argv) { 68 int main(int argc, const char** argv) {
69 base::AtExitManager exit_manager; 69 base::AtExitManager exit_manager;
70 70
71 CommandLine::Init(argc, argv); 71 CommandLine::Init(argc, argv);
72 const CommandLine* cmd_line = CommandLine::ForCurrentProcess(); 72 const CommandLine* cmd_line = CommandLine::ForCurrentProcess();
73 73
74 const std::vector<CommandLine::StringType>& filenames = cmd_line->args(); 74 const CommandLine::StringVector& filenames = cmd_line->GetArgs();
75 75
76 if (filenames.empty()) { 76 if (filenames.empty()) {
77 std::cerr << "Usage: " << argv[0] << " MEDIAFILE" << std::endl; 77 std::cerr << "Usage: " << argv[0] << " MEDIAFILE" << std::endl;
78 return 1; 78 return 1;
79 } 79 }
80 80
81 // Initialize our media library (try loading DLLs, etc.) before continuing. 81 // Initialize our media library (try loading DLLs, etc.) before continuing.
82 // We use an empty file path as the parameter to force searching of the 82 // We use an empty file path as the parameter to force searching of the
83 // default locations for necessary DLLs and DSOs. 83 // default locations for necessary DLLs and DSOs.
84 if (media::InitializeMediaLibrary(FilePath()) == false) { 84 if (media::InitializeMediaLibrary(FilePath()) == false) {
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 } __except(EXCEPTION_EXECUTE_HANDLER) { 492 } __except(EXCEPTION_EXECUTE_HANDLER) {
493 *log_out << " Exception:" << std::setw(11) << GetExceptionCode() 493 *log_out << " Exception:" << std::setw(11) << GetExceptionCode()
494 << " " << in_path.value() << std::endl; 494 << " " << in_path.value() << std::endl;
495 return 1; 495 return 1;
496 } 496 }
497 #endif 497 #endif
498 CommandLine::Reset(); 498 CommandLine::Reset();
499 return 0; 499 return 0;
500 } 500 }
501 501
OLDNEW
« no previous file with comments | « courgette/courgette_tool.cc ('k') | media/tools/media_bench/media_bench.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698