diff options
author | Tianjie Xu <xunchang@google.com> | 2019-05-24 10:07:44 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-05-24 10:07:44 +0200 |
commit | bcade69f4556298efcc1e21b83c96e4a7dd22073 (patch) | |
tree | f90829307545807cac68be933bdc26c897d4b68b /tests/unit | |
parent | [automerger skipped] Add misc_writer. am: 35e0f6d290 -s ours (diff) | |
parent | Merge "Some clean ups to the updater" am: 52e61f6995 (diff) | |
download | android_bootable_recovery-bcade69f4556298efcc1e21b83c96e4a7dd22073.tar android_bootable_recovery-bcade69f4556298efcc1e21b83c96e4a7dd22073.tar.gz android_bootable_recovery-bcade69f4556298efcc1e21b83c96e4a7dd22073.tar.bz2 android_bootable_recovery-bcade69f4556298efcc1e21b83c96e4a7dd22073.tar.lz android_bootable_recovery-bcade69f4556298efcc1e21b83c96e4a7dd22073.tar.xz android_bootable_recovery-bcade69f4556298efcc1e21b83c96e4a7dd22073.tar.zst android_bootable_recovery-bcade69f4556298efcc1e21b83c96e4a7dd22073.zip |
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/updater_test.cpp | 4 |
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(); |