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

Side by Side Diff: content/public/test/test_launcher_utils.cc

Issue 10984040: Enable gpu crash tests in content (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: refine Created 8 years, 2 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "content/public/test/test_launcher_utils.h"
6
7 #include "base/command_line.h"
8 #include "base/environment.h"
9 #include "base/logging.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "base/path_service.h"
12 #include "base/string_number_conversions.h"
13 #include "content/public/common/content_switches.h"
14 #include "ui/gl/gl_switches.h"
15
16 namespace content {
17
18 void PrepareBrowserCommandLineForTests(CommandLine* command_line) {
19 // Enable warning level logging so that we can see when bad stuff happens.
20 command_line->AppendSwitch(switches::kEnableLogging);
21 command_line->AppendSwitchASCII(switches::kLoggingLevel, "1"); // warning
22
23 // Don't collect GPU info, load GPU blacklist, or schedule a GPU blacklist
24 // auto-update.
25 command_line->AppendSwitch(switches::kSkipGpuDataLoading);
26 }
27
28 bool OverrideGLImplementation(CommandLine* command_line,
29 const std::string& implementation_name) {
30 if (command_line->HasSwitch(switches::kUseGL))
31 return false;
32
33 command_line->AppendSwitchASCII(switches::kUseGL, implementation_name);
34
35 return true;
36 }
37
38 } // namespace test_launcher_utils
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698