summaryrefslogtreecommitdiffstats
path: root/tests/component/applypatch_test.cpp
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2018-03-01 19:58:27 +0100
committerandroid-build-merger <android-build-merger@google.com>2018-03-01 19:58:27 +0100
commit4249cdfe29491b0ad8c418d8015a50cb37b6ff9b (patch)
treecdf6bc19fb0749ae82402af11aa34ab7db1a6f6e /tests/component/applypatch_test.cpp
parentMerge "Fix the behavior of undefined commands in BlockImageVerify" am: ac4818d6af am: 7b9a92c1e2 (diff)
parentMerge "Add a singleton CacheLocation to replace the hard coded locations" am: 47cd789eed (diff)
downloadandroid_bootable_recovery-4249cdfe29491b0ad8c418d8015a50cb37b6ff9b.tar
android_bootable_recovery-4249cdfe29491b0ad8c418d8015a50cb37b6ff9b.tar.gz
android_bootable_recovery-4249cdfe29491b0ad8c418d8015a50cb37b6ff9b.tar.bz2
android_bootable_recovery-4249cdfe29491b0ad8c418d8015a50cb37b6ff9b.tar.lz
android_bootable_recovery-4249cdfe29491b0ad8c418d8015a50cb37b6ff9b.tar.xz
android_bootable_recovery-4249cdfe29491b0ad8c418d8015a50cb37b6ff9b.tar.zst
android_bootable_recovery-4249cdfe29491b0ad8c418d8015a50cb37b6ff9b.zip
Diffstat (limited to 'tests/component/applypatch_test.cpp')
-rw-r--r--tests/component/applypatch_test.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/component/applypatch_test.cpp b/tests/component/applypatch_test.cpp
index 21c9a52dc..b6d092557 100644
--- a/tests/component/applypatch_test.cpp
+++ b/tests/component/applypatch_test.cpp
@@ -35,6 +35,7 @@
#include "applypatch/applypatch.h"
#include "applypatch/applypatch_modes.h"
#include "common/test_constants.h"
+#include "otautil/cache_location.h"
#include "otautil/print_sha1.h"
static void sha1sum(const std::string& fname, std::string* sha1, size_t* fsize = nullptr) {
@@ -93,14 +94,14 @@ class ApplyPatchCacheTest : public ApplyPatchTest {
protected:
void SetUp() override {
ApplyPatchTest::SetUp();
- cache_temp_source = old_file;
+ CacheLocation::location().set_cache_temp_source(old_file);
}
};
class ApplyPatchModesTest : public ::testing::Test {
protected:
void SetUp() override {
- cache_temp_source = cache_source.path;
+ CacheLocation::location().set_cache_temp_source(cache_source.path);
}
TemporaryFile cache_source;