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

Side by Side Diff: ui/compositor/test/context_factories_for_test.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 namespace ui { 5 namespace ui {
6 6
7 // Set up the compositor ContextFactory for a test environment. Unit tests 7 // Set up the compositor ContextFactory for a test environment. Unit tests
8 // that do not have a full content environment need to call this before 8 // that do not have a full content environment need to call this before
9 // initializing the Compositor. 9 // initializing the Compositor.
10 // Some tests expect pixel output, and they should pass false for 10 // Some tests expect pixel output, and they should pass true for
11 // |allow_test_contexts|. Most unit tests should pass true. Once this has been 11 // |enable_pixel_output|. Most unit tests should pass false. Once this has been
12 // called, the caller must call TerminateContextFactoryForTests() to clean up. 12 // called, the caller must call TerminateContextFactoryForTests() to clean up.
13 void InitializeContextFactoryForTests(bool allow_test_contexts); 13 void InitializeContextFactoryForTests(bool enable_pixel_output);
14 void TerminateContextFactoryForTests(); 14 void TerminateContextFactoryForTests();
15 15
16 } // namespace ui 16 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698