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

Unified Diff: gpu/gles2_conform_support/gles2_conform_test.cc

Issue 474523003: Enable command line arguments for GLES2 CTS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased with arg change Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | gpu/gles2_conform_support/native/main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/gles2_conform_support/gles2_conform_test.cc
diff --git a/gpu/gles2_conform_support/gles2_conform_test.cc b/gpu/gles2_conform_support/gles2_conform_test.cc
index 1bfac909c0b30a8147d7c5945263e2a6c74f6b05..9b714462626fd46e2cc35ed2c829f6b39000fe33 100644
--- a/gpu/gles2_conform_support/gles2_conform_test.cc
+++ b/gpu/gles2_conform_support/gles2_conform_test.cc
@@ -63,7 +63,10 @@ bool RunGLES2ConformTest(const char* path) {
base::FilePath program(test_path.Append(FILE_PATH_LITERAL(
"gles2_conform_test_windowless")));
+ CommandLine* currentCmdLine = CommandLine::ForCurrentProcess();
CommandLine cmdline(program);
+ cmdline.AppendArguments(*currentCmdLine, false);
+ cmdline.AppendSwitch(std::string("--"));
cmdline.AppendArg(std::string("-run=") + path);
std::string output;
@@ -82,6 +85,7 @@ bool RunGLES2ConformTest(const char* path) {
int main(int argc, char** argv) {
base::AtExitManager exit_manager;
+ CommandLine::Init(argc, argv);
#if defined(OS_MACOSX)
base::mac::ScopedNSAutoreleasePool pool;
#endif
« no previous file with comments | « no previous file | gpu/gles2_conform_support/native/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698