summaryrefslogtreecommitdiffstats
path: root/tests/unit/updater_test.cpp
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2019-05-22 23:48:35 +0200
committerTianjie Xu <xunchang@google.com>2019-05-22 23:58:28 +0200
commit27556d089f8496c2acb72182ce7add94938eb749 (patch)
tree7fca14e5fe7b8178a996501df0515ddabcfd9ed2 /tests/unit/updater_test.cpp
parentMerge "recovery: report compliant reboot reason" (diff)
downloadandroid_bootable_recovery-27556d089f8496c2acb72182ce7add94938eb749.tar
android_bootable_recovery-27556d089f8496c2acb72182ce7add94938eb749.tar.gz
android_bootable_recovery-27556d089f8496c2acb72182ce7add94938eb749.tar.bz2
android_bootable_recovery-27556d089f8496c2acb72182ce7add94938eb749.tar.lz
android_bootable_recovery-27556d089f8496c2acb72182ce7add94938eb749.tar.xz
android_bootable_recovery-27556d089f8496c2acb72182ce7add94938eb749.tar.zst
android_bootable_recovery-27556d089f8496c2acb72182ce7add94938eb749.zip
Diffstat (limited to 'tests/unit/updater_test.cpp')
-rw-r--r--tests/unit/updater_test.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/unit/updater_test.cpp b/tests/unit/updater_test.cpp
index 81229f50a..8993dd8b7 100644
--- a/tests/unit/updater_test.cpp
+++ b/tests/unit/updater_test.cpp
@@ -85,7 +85,7 @@ static void expect(const char* expected, const std::string& expr_str, CauseCode
}
static void expect(const char* expected, const std::string& expr_str, CauseCode cause_code) {
- Updater updater;
+ Updater updater(std::make_unique<UpdaterRuntime>(nullptr));
expect(expected, expr_str, cause_code, &updater);
}
@@ -133,6 +133,8 @@ static Value* BlobToString(const char* name, State* state,
class UpdaterTestBase {
protected:
+ UpdaterTestBase() : updater_(std::make_unique<UpdaterRuntime>(nullptr)) {}
+
void SetUp() {
RegisterBuiltins();
RegisterInstallFunctions();