diff options
author | Tianjie Xu <xunchang@google.com> | 2019-05-24 06:45:43 +0200 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2019-05-24 06:45:43 +0200 |
commit | 52e61f699514dde119e8d4b1b4d2a3d7a9f7869c (patch) | |
tree | b5d3c52ae588e83c2b26a762f01a796da2b5c73f /tests/unit/updater_test.cpp | |
parent | Merge "Move off the Next ZipString overload." (diff) | |
parent | Some clean ups to the updater (diff) | |
download | android_bootable_recovery-52e61f699514dde119e8d4b1b4d2a3d7a9f7869c.tar android_bootable_recovery-52e61f699514dde119e8d4b1b4d2a3d7a9f7869c.tar.gz android_bootable_recovery-52e61f699514dde119e8d4b1b4d2a3d7a9f7869c.tar.bz2 android_bootable_recovery-52e61f699514dde119e8d4b1b4d2a3d7a9f7869c.tar.lz android_bootable_recovery-52e61f699514dde119e8d4b1b4d2a3d7a9f7869c.tar.xz android_bootable_recovery-52e61f699514dde119e8d4b1b4d2a3d7a9f7869c.tar.zst android_bootable_recovery-52e61f699514dde119e8d4b1b4d2a3d7a9f7869c.zip |
Diffstat (limited to 'tests/unit/updater_test.cpp')
-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(); |