From 8e2fd6047ed7e45a4e091c9a579ce1a11a43f307 Mon Sep 17 00:00:00 2001 From: "pkotwicz@chromium.org" Date: Sat, 7 Apr 2012 18:13:19 +0000 Subject: Add a new executable for building tests for soft gpu As the soft gpu tests would ideally be stateless I added a flag --disable-file-writing to disable the test from writing data Review URL: http://codereview.chromium.org/9722026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131285 0039d316-1c4b-4281-b951-d872f2087c98 --- content/test/gpu/test_switches.cc | 8 ++++++++ content/test/gpu/test_switches.h | 16 ++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 content/test/gpu/test_switches.cc create mode 100644 content/test/gpu/test_switches.h (limited to 'content/test/gpu') diff --git a/content/test/gpu/test_switches.cc b/content/test/gpu/test_switches.cc new file mode 100644 index 0000000..edeb8e68 --- /dev/null +++ b/content/test/gpu/test_switches.cc @@ -0,0 +1,8 @@ +// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "content/test/gpu/test_switches.h" + +// Use hardware gpu, if available, for tests. +const char switches::kUseGpuInTests[] = "use-gpu-in-tests"; diff --git a/content/test/gpu/test_switches.h b/content/test/gpu/test_switches.h new file mode 100644 index 0000000..1b0605e --- /dev/null +++ b/content/test/gpu/test_switches.h @@ -0,0 +1,16 @@ +// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CONTENT_TEST_GPU_TEST_SWITCHES_H_ +#define CONTENT_TEST_GPU_TEST_SWITCHES_H_ + +namespace switches { + +// The switches should be documented alongside the definition of their values +// in the .cc file. +extern const char kUseGpuInTests[]; + +} // namespace switches + +#endif // CONTENT_TEST_GPU_TEST_SWITCHES_H_ -- cgit v1.1