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

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

Issue 10914268: Change cc files from namespace WebCore to cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 3 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
« no previous file with comments | « cc/test/CCSchedulerTestCommon.h ('k') | cc/test/CCTiledLayerTestCommon.h » ('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 2012 The Chromium Authors. All rights reserved. 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 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 CCTestCommon_h 5 #ifndef CCTestCommon_h
6 #define CCTestCommon_h 6 #define CCTestCommon_h
7 7
8 #include "CCSettings.h" 8 #include "CCSettings.h"
9 9
10 namespace WebKitTests { 10 namespace WebKitTests {
11 11
12 // If you have a test that modifies or uses global settings, keep an instance 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. 13 // of this class to ensure that you start and end with a clean slate.
14 class CCScopedSettings { 14 class CCScopedSettings {
15 public: 15 public:
16 CCScopedSettings() { WebCore::CCSettings::reset(); } 16 CCScopedSettings() { cc::CCSettings::reset(); }
17 ~CCScopedSettings() { WebCore::CCSettings::reset(); } 17 ~CCScopedSettings() { cc::CCSettings::reset(); }
18 }; 18 };
19 19
20 } // namespace WebKitTests 20 } // namespace WebKitTests
21 21
22 #endif // CCTestCommon_h 22 #endif // CCTestCommon_h
OLDNEW
« no previous file with comments | « cc/test/CCSchedulerTestCommon.h ('k') | cc/test/CCTiledLayerTestCommon.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698