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

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

Issue 189603007: Let DCHECK in non-official-release build be opt-in with dcheck_always_on=1 only (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For landing Created 6 years, 9 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 | « content/common/gpu/media/video_decode_accelerator_unittest.cc ('k') | mojo/shell/init.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "base/at_exit.h" 5 #include "base/at_exit.h"
6 #include "base/bind.h" 6 #include "base/bind.h"
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/files/memory_mapped_file.h" 9 #include "base/files/memory_mapped_file.h"
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
(...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 } // namespace 739 } // namespace
740 } // namespace content 740 } // namespace content
741 741
742 int main(int argc, char** argv) { 742 int main(int argc, char** argv) {
743 testing::InitGoogleTest(&argc, argv); // Removes gtest-specific args. 743 testing::InitGoogleTest(&argc, argv); // Removes gtest-specific args.
744 CommandLine::Init(argc, argv); 744 CommandLine::Init(argc, argv);
745 745
746 // Needed to enable DVLOG through --vmodule. 746 // Needed to enable DVLOG through --vmodule.
747 logging::LoggingSettings settings; 747 logging::LoggingSettings settings;
748 settings.logging_dest = logging::LOG_TO_SYSTEM_DEBUG_LOG; 748 settings.logging_dest = logging::LOG_TO_SYSTEM_DEBUG_LOG;
749 settings.dcheck_state =
750 logging::ENABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS;
751 CHECK(logging::InitLogging(settings)); 749 CHECK(logging::InitLogging(settings));
752 750
753 CommandLine* cmd_line = CommandLine::ForCurrentProcess(); 751 CommandLine* cmd_line = CommandLine::ForCurrentProcess();
754 DCHECK(cmd_line); 752 DCHECK(cmd_line);
755 753
756 CommandLine::SwitchMap switches = cmd_line->GetSwitches(); 754 CommandLine::SwitchMap switches = cmd_line->GetSwitches();
757 for (CommandLine::SwitchMap::const_iterator it = switches.begin(); 755 for (CommandLine::SwitchMap::const_iterator it = switches.begin();
758 it != switches.end(); 756 it != switches.end();
759 ++it) { 757 ++it) {
760 if (it->first == "test_stream_data") { 758 if (it->first == "test_stream_data") {
761 content::test_stream_data = it->second.c_str(); 759 content::test_stream_data = it->second.c_str();
762 continue; 760 continue;
763 } 761 }
764 if (it->first == "v" || it->first == "vmodule") 762 if (it->first == "v" || it->first == "vmodule")
765 continue; 763 continue;
766 LOG(FATAL) << "Unexpected switch: " << it->first << ":" << it->second; 764 LOG(FATAL) << "Unexpected switch: " << it->first << ":" << it->second;
767 } 765 }
768 766
769 base::ShadowingAtExitManager at_exit_manager; 767 base::ShadowingAtExitManager at_exit_manager;
770 768
771 return RUN_ALL_TESTS(); 769 return RUN_ALL_TESTS();
772 } 770 }
OLDNEW
« no previous file with comments | « content/common/gpu/media/video_decode_accelerator_unittest.cc ('k') | mojo/shell/init.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698