Drive: Add BatchableRequest subclass.
[chromium-blink-merge.git] / ui / compositor / test / context_factories_for_test.h
blobe54d20639d24d6fc0a753569b5a42a432fafcbeb
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 namespace ui {
7 class ContextFactory;
9 // Set up the compositor ContextFactory for a test environment. Unit tests
10 // that do not have a full content environment need to call this before
11 // initializing the Compositor.
12 // Some tests expect pixel output, and they should pass true for
13 // |enable_pixel_output|. Most unit tests should pass false. Once this has been
14 // called, the caller must call TerminateContextFactoryForTests() to clean up.
15 // TODO(sky): this should return a scoped_ptr and then nuke
16 // TerminateContextFactoryForTests().
17 ui::ContextFactory* InitializeContextFactoryForTests(bool enable_pixel_output);
18 void TerminateContextFactoryForTests();
20 } // namespace ui