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

Side by Side Diff: cc/test/test_common.h

Issue 11361223: cc: Remove cc::settings, move them to LayerTreeSettings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix-unittests Created 8 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 | « cc/test/layer_tree_test_common.cc ('k') | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2012 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.
4
5 #ifndef CC_TEST_TEST_COMMON_H_
6 #define CC_TEST_TEST_COMMON_H_
7
8 #include "cc/settings.h"
9
10 namespace WebKitTests {
11
12 // If you have a test that modifies or uses global settings, keep an instance
13 // of this class to ensure that you start and end with a clean slate.
14 class ScopedSettings {
15 public:
16 ScopedSettings() { cc::Settings::resetForTest(); }
17 ~ScopedSettings() { cc::Settings::resetForTest(); }
18 };
19
20 } // namespace WebKitTests
21
22 #endif // CC_TEST_TEST_COMMON_H_
OLDNEW
« no previous file with comments | « cc/test/layer_tree_test_common.cc ('k') | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698