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

Side by Side Diff: content/common/gpu/media/video_decode_accelerator_unittest.cc

Issue 803813003: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
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 // The bulk of this file is support code; sorry about that. Here's an overview 5 // The bulk of this file is support code; sorry about that. Here's an overview
6 // to hopefully help readers of this code: 6 // to hopefully help readers of this code:
7 // - RenderingHelper is charged with interacting with X11/{EGL/GLES2,GLX/GL} or 7 // - RenderingHelper is charged with interacting with X11/{EGL/GLES2,GLX/GL} or
8 // Win/EGL. 8 // Win/EGL.
9 // - ClientState is an enum for the state of the decode client used by the test. 9 // - ClientState is an enum for the state of the decode client used by the test.
10 // - ClientStateNotification is a barrier abstraction that allows the test code 10 // - ClientStateNotification is a barrier abstraction that allows the test code
(...skipping 1405 matching lines...) Expand 10 before | Expand all | Expand 10 after
1416 1416
1417 // Needed to enable DVLOG through --vmodule. 1417 // Needed to enable DVLOG through --vmodule.
1418 logging::LoggingSettings settings; 1418 logging::LoggingSettings settings;
1419 settings.logging_dest = logging::LOG_TO_SYSTEM_DEBUG_LOG; 1419 settings.logging_dest = logging::LOG_TO_SYSTEM_DEBUG_LOG;
1420 CHECK(logging::InitLogging(settings)); 1420 CHECK(logging::InitLogging(settings));
1421 1421
1422 const base::CommandLine* cmd_line = base::CommandLine::ForCurrentProcess(); 1422 const base::CommandLine* cmd_line = base::CommandLine::ForCurrentProcess();
1423 DCHECK(cmd_line); 1423 DCHECK(cmd_line);
1424 1424
1425 base::CommandLine::SwitchMap switches = cmd_line->GetSwitches(); 1425 base::CommandLine::SwitchMap switches = cmd_line->GetSwitches();
1426 for (CommandLine::SwitchMap::const_iterator it = switches.begin(); 1426 for (base::CommandLine::SwitchMap::const_iterator it = switches.begin();
1427 it != switches.end(); ++it) { 1427 it != switches.end(); ++it) {
1428 if (it->first == "test_video_data") { 1428 if (it->first == "test_video_data") {
1429 content::g_test_video_data = it->second.c_str(); 1429 content::g_test_video_data = it->second.c_str();
1430 continue; 1430 continue;
1431 } 1431 }
1432 // The output log for VDA performance test. 1432 // The output log for VDA performance test.
1433 if (it->first == "output_log") { 1433 if (it->first == "output_log") {
1434 content::g_output_log = it->second.c_str(); 1434 content::g_output_log = it->second.c_str();
1435 continue; 1435 continue;
1436 } 1436 }
(...skipping 23 matching lines...) Expand all
1460 if (it->first == "v" || it->first == "vmodule") 1460 if (it->first == "v" || it->first == "vmodule")
1461 continue; 1461 continue;
1462 LOG(FATAL) << "Unexpected switch: " << it->first << ":" << it->second; 1462 LOG(FATAL) << "Unexpected switch: " << it->first << ":" << it->second;
1463 } 1463 }
1464 1464
1465 base::ShadowingAtExitManager at_exit_manager; 1465 base::ShadowingAtExitManager at_exit_manager;
1466 content::RenderingHelper::InitializeOneOff(); 1466 content::RenderingHelper::InitializeOneOff();
1467 1467
1468 return RUN_ALL_TESTS(); 1468 return RUN_ALL_TESTS();
1469 } 1469 }
OLDNEW
« no previous file with comments | « content/common/gpu/media/v4l2_video_decode_accelerator.cc ('k') | content/common/input/input_event_stream_validator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698