aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2015-07-10 14:14:03 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-07-10 14:14:03 -0700
commit398920532291cb47d44b992fa2e56dd37f8ec195 (patch)
tree790e866693cfc7e76d76ac0641821d76931ed577 /tests
parentd0f4173fb04def5f864519a49c421a7b19df72b7 (diff)
remove some unused stuff
Diffstat (limited to 'tests')
-rw-r--r--tests/GrTBSearchTest.cpp40
1 files changed, 0 insertions, 40 deletions
diff --git a/tests/GrTBSearchTest.cpp b/tests/GrTBSearchTest.cpp
deleted file mode 100644
index d05780778b..0000000000
--- a/tests/GrTBSearchTest.cpp
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Copyright 2014 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-// This is a GPU-backend specific test
-#if SK_SUPPORT_GPU
-
-#include "Test.h"
-
-// If we aren't inheriting these as #defines from elsewhere,
-// clang demands they be declared before we #include the template
-// that relies on them.
-static bool LT(const int& elem, int value) {
- return elem < value;
-}
-static bool EQ(const int& elem, int value) {
- return elem == value;
-}
-
-#include "GrTBSearch.h"
-
-DEF_TEST(GrTBSearch, reporter) {
- const int array[] = {
- 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 22, 33, 44, 55, 66, 77, 88, 99
- };
-
- for (int n = 0; n < static_cast<int>(SK_ARRAY_COUNT(array)); ++n) {
- for (int i = 0; i < n; i++) {
- int index = GrTBSearch<int, int>(array, n, array[i]);
- REPORTER_ASSERT(reporter, index == (int) i);
- index = GrTBSearch<int, int>(array, n, -array[i]);
- REPORTER_ASSERT(reporter, index < 0);
- }
- }
-}
-
-#endif