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

Unified Diff: tests/RTConfRegistryTest.cpp

Issue 1538863002: Enable NVPR with command buffer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years 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 | « src/ports/SkOSEnvironment.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/RTConfRegistryTest.cpp
diff --git a/tests/RTConfRegistryTest.cpp b/tests/RTConfRegistryTest.cpp
index 84ce942bf69d02ff1c0a9fa80ece9ef2a99fc482..be019f70b418507a3df49c7b30f806c33c9c35bc 100644
--- a/tests/RTConfRegistryTest.cpp
+++ b/tests/RTConfRegistryTest.cpp
@@ -6,28 +6,19 @@
*/
#include "SkRTConf.h"
+#include "SkOSEnvironment.h"
#include "Test.h"
-#include <stdlib.h>
-
// Friended proxy for SkRTConfRegistry::parse()
template <typename T>
bool test_rt_conf_parse(SkRTConfRegistry* reg, const char* key, T* value) {
return reg->parse(key, value);
}
-static void portable_setenv(const char* key, const char* value) {
-#ifdef SK_BUILD_FOR_WIN32
- _putenv_s(key, value);
-#else
- setenv(key, value, 1);
-#endif
-}
-
DEF_TEST(SkRTConfRegistry, reporter) {
SkRTConfRegistry reg;
- portable_setenv("skia_nonexistent_item", "132");
+ sk_setenv("skia_nonexistent_item", "132");
int result = 0;
test_rt_conf_parse(&reg, "nonexistent.item", &result);
REPORTER_ASSERT(reporter, result == 132);
« no previous file with comments | « src/ports/SkOSEnvironment.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698