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

Side by Side Diff: ui/gfx/compositor/compositor_test_support.h

Issue 8240006: Use a mocked compositor for unit tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 9 years, 1 month 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef UI_GFX_COMPOSITOR_TEST_SUPPORT_H_ 5 #ifndef UI_GFX_COMPOSITOR_TEST_SUPPORT_H_
6 #define UI_GFX_COMPOSITOR_TEST_SUPPORT_H_ 6 #define UI_GFX_COMPOSITOR_TEST_SUPPORT_H_
7 #pragma once 7 #pragma once
8 8
9 namespace ui { 9 namespace ui {
10 10
11 class CompositorTestSupport { 11 class CompositorTestSupport {
12 public: 12 public:
13 // Called by programs that want to use a real compositor,
14 // but skip the typical initialization of browser_main.cc.
13 static void Initialize(); 15 static void Initialize();
14 static void Terminate(); 16 static void Terminate();
17
18 // Called by tests that want to use a mocked compositor.
19 static void SetupMockCompositor();
15 }; 20 };
16 21
17 } // namespace ui 22 } // namespace ui
18 23
19 #endif // UI_GFX_COMPOSITOR_TEST_SUPPORT_H_ 24 #endif // UI_GFX_COMPOSITOR_TEST_SUPPORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698