diff options
author | halcanary <halcanary@google.com> | 2016-08-03 15:30:37 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-03 15:30:37 -0700 |
commit | ef59974708dade6fa72fb0218d4f8a9590175c47 (patch) | |
tree | 4aa9e35661de6345a5d05f38f08e981c84fd308e /tests/RTConfRegistryTest.cpp | |
parent | 19a9720978700a24efed8dda7e0935ea2b7338c4 (diff) |
SkRTConf: reduce functionality to what we use, increase simplicity
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2212473002
DOCS_PREVIEW= https://skia.org/?cl=2212473002
CQ_INCLUDE_TRYBOTS=master.client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot
[mtklein]
TBR=reed@google.com
Only removing unused public API.
Review-Url: https://codereview.chromium.org/2212473002
Diffstat (limited to 'tests/RTConfRegistryTest.cpp')
-rw-r--r-- | tests/RTConfRegistryTest.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/tests/RTConfRegistryTest.cpp b/tests/RTConfRegistryTest.cpp deleted file mode 100644 index be019f70b4..0000000000 --- a/tests/RTConfRegistryTest.cpp +++ /dev/null @@ -1,25 +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 "SkOSEnvironment.h" -#include "Test.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); -} - -DEF_TEST(SkRTConfRegistry, reporter) { - SkRTConfRegistry reg; - - sk_setenv("skia_nonexistent_item", "132"); - int result = 0; - test_rt_conf_parse(®, "nonexistent.item", &result); - REPORTER_ASSERT(reporter, result == 132); -} |