21 lines
912 B
C++
21 lines
912 B
C++
$NetBSD$
|
|
|
|
--- content/test/content_test_suite.cc.orig 2020-07-08 21:40:43.000000000 +0000
|
|
+++ content/test/content_test_suite.cc
|
|
@@ -83,6 +83,7 @@ void ContentTestSuite::Initialize() {
|
|
// to initialize GL, so don't do it here.
|
|
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
|
|
bool is_child_process = command_line->HasSwitch(switches::kTestChildProcess);
|
|
+#if !defined(OS_BSD)
|
|
if (!is_child_process) {
|
|
gl::GLSurfaceTestSupport::InitializeNoExtensionsOneOff();
|
|
auto* gpu_feature_info = gpu::GetTestGpuThreadHolder()->GetGpuFeatureInfo();
|
|
@@ -90,6 +91,7 @@ void ContentTestSuite::Initialize() {
|
|
gpu_feature_info->disabled_extensions);
|
|
gl::init::InitializeExtensionSettingsOneOffPlatform();
|
|
}
|
|
+#endif
|
|
testing::TestEventListeners& listeners =
|
|
testing::UnitTest::GetInstance()->listeners();
|
|
listeners.Append(new TestInitializationListener);
|