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

Unified Diff: include/utils/SkRTConf.h

Issue 23174002: Fix crash when querying a runtime config that is defined in environment (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gyp/tests.gyp ('k') | src/utils/SkRTConf.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/utils/SkRTConf.h
diff --git a/include/utils/SkRTConf.h b/include/utils/SkRTConf.h
index ea6e99ed891ec35e17b091f08d9f2e31e2100617..dc1f461b110a417f75113305ff26ebfa097e5e01 100644
--- a/include/utils/SkRTConf.h
+++ b/include/utils/SkRTConf.h
@@ -73,6 +73,9 @@ public:
void possiblyDumpFile() const;
void validate() const;
template <typename T> void set(const char *confname, T value);
+#ifdef SK_SUPPORT_UNITTEST
+ static void UnitTest();
+#endif
private:
template<typename T> friend class SkRTConf;
@@ -82,6 +85,9 @@ private:
SkTDArray<SkString *> fConfigFileKeys, fConfigFileValues;
typedef SkTDict< SkTDArray<SkRTConfBase *> * > ConfMap;
ConfMap fConfs;
+#ifdef SK_SUPPORT_UNITTEST
+ SkRTConfRegistry(bool);
+#endif
};
// our singleton registry
« no previous file with comments | « gyp/tests.gyp ('k') | src/utils/SkRTConf.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698