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

Unified Diff: chrome/test/test_launcher_utils.cc

Issue 4784001: Removed --use-gl=osmesa as default for ui and browser tests.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« chrome/test/test_launcher_utils.h ('K') | « chrome/test/test_launcher_utils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/test_launcher_utils.cc
===================================================================
--- chrome/test/test_launcher_utils.cc (revision 65835)
+++ 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,14 @@
return success;
}
+bool OverrideGLImplementation(CommandLine* command_line,
+ const char* implementation_name) {
+ if (command_line->HasSwitch(switches::kUseGL))
+ return false;
+
+ command_line->AppendSwitchASCII(switches::kUseGL, implementation_name);
+
+ return true;
+}
+
} // namespace test_launcher_utils
« chrome/test/test_launcher_utils.h ('K') | « chrome/test/test_launcher_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698