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

Unified Diff: ui/compositor/test/test_context_factory.h

Issue 145293007: ui: No more TestCompositor. Use NullDraw contexts in unit tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: testsnulldraw: Created 6 years, 10 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
« no previous file with comments | « ui/compositor/test/context_factories_for_test.cc ('k') | ui/compositor/test/test_context_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/test/test_context_factory.h
diff --git a/ui/compositor/test/test_context_factory.h b/ui/compositor/test/test_context_factory.h
deleted file mode 100644
index 9b4bd9dc818fcd93b3835dfee7134cf5a8154b63..0000000000000000000000000000000000000000
--- a/ui/compositor/test/test_context_factory.h
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2013 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.
-
-#ifndef UI_COMPOSITOR_TEST_TEST_CONTEXT_FACTORY_H_
-#define UI_COMPOSITOR_TEST_TEST_CONTEXT_FACTORY_H_
-
-#include "ui/compositor/compositor.h"
-
-namespace cc { class TestContextProvider; }
-
-namespace ui {
-
-// The factory that creates test contexts.
-class TestContextFactory : public ContextFactory {
- public:
- TestContextFactory();
- virtual ~TestContextFactory();
-
- // ContextFactory implementation
- virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(
- Compositor* compositor, bool software_fallback) OVERRIDE;
-
- virtual scoped_refptr<Reflector> CreateReflector(
- Compositor* mirrored_compositor,
- Layer* mirroring_layer) OVERRIDE;
- virtual void RemoveReflector(scoped_refptr<Reflector> reflector) OVERRIDE;
-
- virtual scoped_refptr<cc::ContextProvider>
- OffscreenCompositorContextProvider() OVERRIDE;
- virtual scoped_refptr<cc::ContextProvider>
- SharedMainThreadContextProvider() OVERRIDE;
- virtual void RemoveCompositor(Compositor* compositor) OVERRIDE;
- virtual bool DoesCreateTestContexts() OVERRIDE;
-
- private:
- scoped_refptr<cc::TestContextProvider> offscreen_compositor_contexts_;
- scoped_refptr<cc::TestContextProvider> shared_main_thread_contexts_;
-
- DISALLOW_COPY_AND_ASSIGN(TestContextFactory);
-};
-
-} // namespace ui
-
-#endif // UI_COMPOSITOR_TEST_TEST_CONTEXT_FACTORY_H_
« no previous file with comments | « ui/compositor/test/context_factories_for_test.cc ('k') | ui/compositor/test/test_context_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698