Index: chrome/test/gpu/gpu_feature_browsertest.cc |
diff --git a/chrome/test/gpu/gpu_feature_browsertest.cc b/chrome/test/gpu/gpu_feature_browsertest.cc |
index f65f799df06d984b1825b9fc7b74f7c4d055f8dc..4e91ad3f2612c19eca30c99627aac941ad47a503 100644 |
--- a/chrome/test/gpu/gpu_feature_browsertest.cc |
+++ b/chrome/test/gpu/gpu_feature_browsertest.cc |
@@ -24,7 +24,6 @@ |
#include "gpu/config/gpu_info.h" |
#include "gpu/config/gpu_test_config.h" |
#include "net/base/net_util.h" |
-#include "ui/compositor/compositor_setup.h" |
#include "ui/gl/gl_switches.h" |
#if defined(OS_MACOSX) |
@@ -51,6 +50,13 @@ class GpuFeatureTest : public InProcessBrowserTest { |
public: |
GpuFeatureTest() : category_patterns_("test_gpu"), gpu_enabled_(false) {} |
+ virtual void SetUp() OVERRIDE { |
+ // We expect to use real GL contexts for these tests. |
+ DoNotUseTestContexts(); |
+ |
+ InProcessBrowserTest::SetUp(); |
+ } |
+ |
virtual void SetUpInProcessBrowserTestFixture() OVERRIDE { |
base::FilePath test_dir; |
ASSERT_TRUE(PathService::Get(chrome::DIR_TEST_DATA, &test_dir)); |
@@ -69,7 +75,6 @@ class GpuFeatureTest : public InProcessBrowserTest { |
gpu_enabled_ = true; |
} |
command_line->AppendSwitch(switches::kDisablePopupBlocking); |
- ui::DisableTestCompositor(); |
command_line->AppendSwitchASCII(switches::kWindowSize, "400,300"); |
} |
@@ -558,4 +563,4 @@ IN_PROC_BROWSER_TEST_F(GpuFeatureTest, IOSurfaceReuse) { |
} |
#endif |
-} // namespace anonymous |
+} // namespace |