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

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

Issue 8404041: Revert 107563 - Fix up compositor mocking. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
« no previous file with comments | « ui/gfx/compositor/compositor.gyp ('k') | ui/gfx/compositor/compositor_test_support.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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, 13 // Called by programs that want to use a real compositor,
14 // but skip the typical initialization of browser_main.cc. 14 // but skip the typical initialization of browser_main.cc.
15 static void Initialize(); 15 static void Initialize();
16 static void Terminate(); 16 static void Terminate();
17
18 // Called by tests that want to use a mocked compositor.
19 static void SetupMockCompositor();
17 }; 20 };
18 21
19 } // namespace ui 22 } // namespace ui
20 23
21 #endif // UI_GFX_COMPOSITOR_TEST_SUPPORT_H_ 24 #endif // UI_GFX_COMPOSITOR_TEST_SUPPORT_H_
OLDNEW
« no previous file with comments | « ui/gfx/compositor/compositor.gyp ('k') | ui/gfx/compositor/compositor_test_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698