summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
Diffstat (limited to 'base')
-rw-r--r--base/test_suite.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/base/test_suite.h b/base/test_suite.h
index 03937d5..5424925 100644
--- a/base/test_suite.h
+++ b/base/test_suite.h
@@ -23,6 +23,8 @@
#if defined(OS_WIN)
#include <windows.h>
+#elif defined(OS_LINUX)
+#include <gtk/gtk.h>
#endif
class TestSuite {
@@ -31,6 +33,9 @@ class TestSuite {
base::EnableTerminationOnHeapCorruption();
CommandLine::Init(argc, argv);
testing::InitGoogleTest(&argc, argv);
+#if defined(OS_LINUX)
+ gtk_init_check(&argc, &argv);
+#endif
// Don't add additional code to this constructor. Instead add it to
// Initialize(). See bug 6436.
}