Commit c41a8710 authored by zmo@google.com's avatar zmo@google.com

Call util function instead of duplicate the code in gpu_feature_browsertest.cc

BUG=
TEST=GpuFeatureBrowsertest
R=jbates
Review URL: http://codereview.chromium.org/8816027

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113298 0039d316-1c4b-4281-b951-d872f2087c98
parent 9dd39b83
......@@ -11,6 +11,7 @@
#include "chrome/browser/ui/browser.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/test_launcher_utils.h"
#include "chrome/test/base/tracing.h"
#include "chrome/test/base/ui_test_utils.h"
#include "content/browser/gpu/gpu_blacklist.h"
......@@ -39,9 +40,9 @@ class GpuFeatureTest : public InProcessBrowserTest {
// This enables DOM automation for tab contents.
EnableDOMAutomation();
#if !defined(OS_MACOSX)
CHECK(!command_line->HasSwitch(switches::kUseGL)) <<
CHECK(test_launcher_utils::OverrideGLImplementation(
command_line, gfx::kGLImplementationOSMesaName)) <<
"kUseGL must not be set by test framework code!";
command_line->AppendSwitchASCII(switches::kUseGL, "osmesa");
#endif
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment