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

Unified Diff: ui/gfx/test/gfx_test_utils.cc

Issue 8805033: Makes tests either use mock compositor or mock WebGraphicsContext3D (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tweaks Created 9 years 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: ui/gfx/test/gfx_test_utils.cc
diff --git a/ui/gfx/test/gfx_test_utils.cc b/ui/gfx/test/gfx_test_utils.cc
deleted file mode 100644
index 1d66ed77cd2ee520ebd64735d0eae5e793bfa7db..0000000000000000000000000000000000000000
--- a/ui/gfx/test/gfx_test_utils.cc
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) 2011 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 "ui/gfx/test/gfx_test_utils.h"
-
-#if defined(VIEWS_COMPOSITOR)
-#include "base/command_line.h"
-#include "ui/gfx/compositor/compositor.h"
-#include "ui/gfx/compositor/test/test_compositor.h"
-#endif
-
-#if defined(VIEWS_COMPOSITOR)
-namespace switches {
-
-const char kDisableTestCompositor[] = "disable-test-compositor";
-
-}
-#endif
-
-namespace ui {
-namespace gfx_test_utils {
-
-void SetupTestCompositor() {
-#if defined(VIEWS_COMPOSITOR)
- if (!CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kDisableTestCompositor)) {
- // Use a mock compositor that noops draws.
- ui::Compositor::set_compositor_factory_for_testing(
- ui::TestCompositor::Create);
- }
-#endif
-}
-
-} // namespace gfx_test_utils
-} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698