Chromium Code Reviews| Index: chrome/test/test_launcher_utils.cc |
| =================================================================== |
| --- chrome/test/test_launcher_utils.cc (revision 65684) |
| +++ chrome/test/test_launcher_utils.cc (working copy) |
| @@ -2,8 +2,10 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| +#include "app/app_switches.h" |
| #include "base/command_line.h" |
| #include "base/environment.h" |
| +#include "base/logging.h" |
| #include "base/path_service.h" |
| #include "base/scoped_ptr.h" |
| #include "chrome/common/chrome_paths.h" |
| @@ -53,4 +55,9 @@ |
| return success; |
| } |
| +void OverrideGLImplementation(CommandLine* command_line, |
| + const char* implementation_name) { |
| + DCHECK(!command_line->HasSwitch(switches::kUseGL)); |
|
Paweł Hajdan Jr.
2010/11/11 10:24:52
Can we avoid DCHECKs in test code? How about makin
apatrick_chromium
2010/11/11 23:28:33
Done.
|
| + command_line->AppendSwitchASCII(switches::kUseGL, implementation_name); |
| +} |
|
Paweł Hajdan Jr.
2010/11/11 10:24:52
nit: Add empty line below.
apatrick_chromium
2010/11/11 23:28:33
Done.
|
| } // namespace test_launcher_utils |