summaryrefslogtreecommitdiffstats
path: root/tests/component/applypatch_test.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2016-11-03 19:15:07 +0100
committerGerrit Code Review <noreply-gerritcodereview@google.com>2016-11-03 19:15:07 +0100
commit4011bb161a60fb04fb0d4c4c3e1090d43fcdd9e4 (patch)
treedf496b1d676e1c2e265abbc5777ecba1eb3afddd /tests/component/applypatch_test.cpp
parentMerge "applypatch: Add testcases for applypatch executable." (diff)
parenttests: Set up testdata path for continuous native tests. (diff)
downloadandroid_bootable_recovery-4011bb161a60fb04fb0d4c4c3e1090d43fcdd9e4.tar
android_bootable_recovery-4011bb161a60fb04fb0d4c4c3e1090d43fcdd9e4.tar.gz
android_bootable_recovery-4011bb161a60fb04fb0d4c4c3e1090d43fcdd9e4.tar.bz2
android_bootable_recovery-4011bb161a60fb04fb0d4c4c3e1090d43fcdd9e4.tar.lz
android_bootable_recovery-4011bb161a60fb04fb0d4c4c3e1090d43fcdd9e4.tar.xz
android_bootable_recovery-4011bb161a60fb04fb0d4c4c3e1090d43fcdd9e4.tar.zst
android_bootable_recovery-4011bb161a60fb04fb0d4c4c3e1090d43fcdd9e4.zip
Diffstat (limited to 'tests/component/applypatch_test.cpp')
-rw-r--r--tests/component/applypatch_test.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/tests/component/applypatch_test.cpp b/tests/component/applypatch_test.cpp
index f95ebed5d..1a0b19113 100644
--- a/tests/component/applypatch_test.cpp
+++ b/tests/component/applypatch_test.cpp
@@ -37,9 +37,6 @@
#include "common/test_constants.h"
#include "print_sha1.h"
-static const std::string DATA_PATH = getenv("ANDROID_DATA");
-static const std::string TESTDATA_PATH = "/recovery/testdata";
-
static void sha1sum(const std::string& fname, std::string* sha1, size_t* fsize = nullptr) {
ASSERT_NE(nullptr, sha1);
@@ -72,10 +69,6 @@ static bool file_cmp(const std::string& f1, const std::string& f2) {
return c1 == c2;
}
-static std::string from_testdata_base(const std::string& fname) {
- return DATA_PATH + NATIVE_TEST_PATH + TESTDATA_PATH + "/" + fname;
-}
-
class ApplyPatchTest : public ::testing::Test {
public:
static void SetUpTestCase() {