summaryrefslogtreecommitdiffstats
path: root/cc/test/paths.h
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-10 23:05:01 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-10 23:05:01 +0000
commite51444acccf0aeeeed78d0a9795016e26013e1a1 (patch)
tree358fba3fd6a996a2de9814bd5fd78ab204b5cd7a /cc/test/paths.h
parenta269ade545f74e075b8fff7ca5b7f2edf32369d0 (diff)
downloadchromium_src-e51444acccf0aeeeed78d0a9795016e26013e1a1.zip
chromium_src-e51444acccf0aeeeed78d0a9795016e26013e1a1.tar.gz
chromium_src-e51444acccf0aeeeed78d0a9795016e26013e1a1.tar.bz2
cc: Add PRESUBMIT rule to ban using cc:: inside of namespace cc {...}
This also makes cc/ PRESUBMIT clean for the new check. The most invasive changes were: 1. Moving the cc/test/paths.h enum into a CCPaths class (named with CC prefix to clarify this path is for CC since the enum is extending an enum from base/. 2. Merge ResourcePool::Resource up into ScopedResource which was the same thing basically. R=enne BUG= Review URL: https://codereview.chromium.org/109263003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239904 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/paths.h')
-rw-r--r--cc/test/paths.h22
1 files changed, 12 insertions, 10 deletions
diff --git a/cc/test/paths.h b/cc/test/paths.h
index 07b7a64..f48177e 100644
--- a/cc/test/paths.h
+++ b/cc/test/paths.h
@@ -7,18 +7,20 @@
namespace cc {
-enum {
- PATH_START = 5000,
-
- // Valid only in development and testing environments.
- DIR_TEST_DATA,
-
- PATH_END
+class CCPaths {
+ public:
+ enum {
+ PATH_START = 5000,
+
+ // Valid only in development and testing environments.
+ DIR_TEST_DATA,
+ PATH_END
+ };
+
+ // Call once to register the provider for the path keys defined above.
+ static void RegisterPathProvider();
};
-// Call once to register the provider for the path keys defined above.
-void RegisterPathProvider();
-
} // namespace cc
#endif // CC_TEST_PATHS_H_