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

Unified Diff: src/utils/SkRTConf.cpp

Issue 444303002: Migrate SkRTConfRegistry test to DEF_TEST(). (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: mtklein changes Created 6 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 | « include/utils/SkRTConf.h ('k') | tests/RTConfRegistryTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/SkRTConf.cpp
diff --git a/src/utils/SkRTConf.cpp b/src/utils/SkRTConf.cpp
index bb6cb23cb93c366d29f6bc961907b2a83cece592..8ca998109454bc6d4044ce260c45b9d1d834216a 100644
--- a/src/utils/SkRTConf.cpp
+++ b/src/utils/SkRTConf.cpp
@@ -321,30 +321,3 @@ SkRTConfRegistry &skRTConfRegistry() {
static SkRTConfRegistry r;
return r;
}
-
-
-#ifdef SK_SUPPORT_UNITTEST
-
-#ifdef SK_BUILD_FOR_WIN32
-static void sk_setenv(const char* key, const char* value) {
- _putenv_s(key, value);
-}
-#else
-static void sk_setenv(const char* key, const char* value) {
- setenv(key, value, 1);
-}
-#endif
-
-void SkRTConfRegistry::UnitTest() {
- SkRTConfRegistry registryWithoutContents(true);
-
- sk_setenv("skia_nonexistent_item", "132");
- int result = 0;
- registryWithoutContents.parse("nonexistent.item", &result);
- SkASSERT(result == 132);
-}
-
-SkRTConfRegistry::SkRTConfRegistry(bool)
- : fConfs(100) {
-}
-#endif
« no previous file with comments | « include/utils/SkRTConf.h ('k') | tests/RTConfRegistryTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698