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

Unified Diff: tests/RuntimeConfigTest.cpp

Issue 2212473002: SkRTConf: eliminate (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: `git grep SK_CONF` now returns nothing Created 4 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 | « tests/RTConfRegistryTest.cpp ('k') | tests/SkpSkGrTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/RuntimeConfigTest.cpp
diff --git a/tests/RuntimeConfigTest.cpp b/tests/RuntimeConfigTest.cpp
deleted file mode 100644
index b863ee1fd8c224b92375f01da579957b7c53ef5c..0000000000000000000000000000000000000000
--- a/tests/RuntimeConfigTest.cpp
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * Copyright 2013 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-#include "SkRTConf.h"
-#include "Test.h"
-
-SK_CONF_DECLARE(int, c_RTConfTestVariable,
- "test.utils.rtconf.testVariable", 1,
- "This is only a test. Do not be alarmed.");
-// TODO(skia-team): more comprehensive unit tests of the SkRTConf
-// system.
-DEF_TEST(RuntimeConfig, reporter) {
- REPORTER_ASSERT(reporter, 1 == c_RTConfTestVariable);
-
- SK_CONF_SET("test.utils.rtconf.testVariable", 2);
-#ifdef SK_DEBUG
- REPORTER_ASSERT(reporter, 2 == c_RTConfTestVariable);
-#else // not SK_DEBUG
- // Can not change RTConf variables in SK_RELEASE.
- REPORTER_ASSERT(reporter, 1 == c_RTConfTestVariable);
-#endif // SK_DEBUG
-
- // This should not give a warning.
- SK_CONF_TRY_SET("test.utils.rtconf.nonexistentVariable", 7);
-}
« no previous file with comments | « tests/RTConfRegistryTest.cpp ('k') | tests/SkpSkGrTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698