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

Unified Diff: chrome/test/gpu/gpu_feature_browsertest.cc

Issue 21052007: aura: Clean up compositor initialization/destruction. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanupcompositor: No LOG(INFO)s Created 7 years, 5 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
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

Powered by Google App Engine
This is Rietveld 408576698