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

Unified Diff: ui/gfx/compositor/test/test_compositor.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/compositor/test/test_compositor.cc
diff --git a/ui/gfx/compositor/test/test_compositor.cc b/ui/gfx/compositor/test/test_compositor.cc
deleted file mode 100644
index f3eb7ecfce30af39768a19120820968c7c1ad0b2..0000000000000000000000000000000000000000
--- a/ui/gfx/compositor/test/test_compositor.cc
+++ /dev/null
@@ -1,62 +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/compositor/test/test_compositor.h"
-
-#include "ui/gfx/compositor/test/test_texture.h"
-
-namespace ui {
-
-class TestCompositorDelegate : public ui::CompositorDelegate {
- public:
- TestCompositorDelegate() {}
- virtual ~TestCompositorDelegate() {}
-
- virtual void ScheduleDraw() OVERRIDE {}
-
- private:
- DISALLOW_COPY_AND_ASSIGN(TestCompositorDelegate);
-};
-
-TestCompositor::TestCompositor(CompositorDelegate *owner)
- : Compositor((owner ? owner : new TestCompositorDelegate),
- gfx::Size(100, 100)) {
- if (!owner)
- owned_delegate_.reset(static_cast<TestCompositorDelegate*>(delegate()));
-}
-
-TestCompositor::~TestCompositor() {
-}
-
-ui::Texture* TestCompositor::CreateTexture() {
- return new TestTexture();
-}
-
-void TestCompositor::OnNotifyStart(bool clear) {
-}
-
-void TestCompositor::OnNotifyEnd() {
-}
-
-void TestCompositor::Blur(const gfx::Rect& bounds) {
-}
-
-void TestCompositor::DrawTree() {
-#if !defined(USE_WEBKIT_COMPOSITOR)
- Compositor::DrawTree();
-#endif
-}
-
-bool TestCompositor::ReadPixels(SkBitmap* bitmap, const gfx::Rect& bounds) {
- return false;
-}
-
-ui::Compositor* TestCompositor::Create(ui::CompositorDelegate* owner) {
- return new ui::TestCompositor(owner);
-}
-
-void TestCompositor::OnWidgetSizeChanged() {
-}
-
-} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698