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

Side by Side Diff: chrome/test/base/test_launcher_utils.cc

Issue 23703017: Enable GPU control lists in tests on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge up to r228383 Created 7 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 "chrome/test/base/test_launcher_utils.h" 5 #include "chrome/test/base/test_launcher_utils.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/environment.h" 8 #include "base/environment.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 29 matching lines...) Expand all
40 command_line->AppendSwitchASCII(switches::kEnableLogging, "stderr"); 40 command_line->AppendSwitchASCII(switches::kEnableLogging, "stderr");
41 if (!command_line->HasSwitch(switches::kLoggingLevel)) 41 if (!command_line->HasSwitch(switches::kLoggingLevel))
42 command_line->AppendSwitchASCII(switches::kLoggingLevel, "0"); // info 42 command_line->AppendSwitchASCII(switches::kLoggingLevel, "0"); // info
43 43
44 // Disable safebrowsing autoupdate. 44 // Disable safebrowsing autoupdate.
45 command_line->AppendSwitch(switches::kSbDisableAutoUpdate); 45 command_line->AppendSwitch(switches::kSbDisableAutoUpdate);
46 46
47 // Don't install default apps. 47 // Don't install default apps.
48 command_line->AppendSwitch(switches::kDisableDefaultApps); 48 command_line->AppendSwitch(switches::kDisableDefaultApps);
49 49
50 #if !defined(OS_WIN)
50 // Don't collect GPU info, load GPU blacklist, or schedule a GPU blacklist 51 // Don't collect GPU info, load GPU blacklist, or schedule a GPU blacklist
51 // auto-update. 52 // auto-update on non-Win bots for now (http://crbug.com/304833).
52 command_line->AppendSwitch(switches::kSkipGpuDataLoading); 53 command_line->AppendSwitch(switches::kSkipGpuDataLoading);
54 #endif
53 55
54 #if defined(USE_AURA) 56 #if defined(USE_AURA)
55 // Disable window animations under Ash as the animations effect the 57 // Disable window animations under Ash as the animations effect the
56 // coordinates returned and result in flake. 58 // coordinates returned and result in flake.
57 command_line->AppendSwitch( 59 command_line->AppendSwitch(
58 views::corewm::switches::kWindowAnimationsDisabled); 60 views::corewm::switches::kWindowAnimationsDisabled);
59 #endif 61 #endif
60 62
61 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_CHROMEOS) 63 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_CHROMEOS)
62 // Don't use the native password stores on Linux since they may 64 // Don't use the native password stores on Linux since they may
(...skipping 27 matching lines...) Expand all
90 // Note: we use an environment variable here, because we have to pass the 92 // Note: we use an environment variable here, because we have to pass the
91 // value to the child process. This is the simplest way to do it. 93 // value to the child process. This is the simplest way to do it.
92 scoped_ptr<base::Environment> env(base::Environment::Create()); 94 scoped_ptr<base::Environment> env(base::Environment::Create());
93 success = success && env->SetVar("XDG_CACHE_HOME", user_data_dir.value()); 95 success = success && env->SetVar("XDG_CACHE_HOME", user_data_dir.value());
94 #endif 96 #endif
95 97
96 return success; 98 return success;
97 } 99 }
98 100
99 } // namespace test_launcher_utils 101 } // namespace test_launcher_utils
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698